电影的内容标记属性

本部分详细介绍了 Movie 实体类型的内容标记属性。

规范表

属性 预期类型 说明
@context 文本 必需 - 始终设置为 ["http://schema.org", {"@language": "xx"}]
  • 其中,“xx”表示 Feed 中字符串的语言。每个根实体上下文的 @language 都应设置为采用 BCP 47 格式的相应语言代码。例如,如果语言设置为西班牙语,即使字幕/配音语言为英语,名称也会被视为西班牙语。
@type 文本 必需 - 对于电影,始终设置为 Movie
@id 网址 必需 - 采用 URI 格式的内容标识符;例如 https://example.com/1234abc
@id 必须满足以下要求:
  • 在您的目录中具有全局唯一性
  • 静态;该 ID 应保持稳定,不应随着时间的推移而发生变化(即使节目的网址属性发生变化也是如此)。它将被视为不透明字符串,且不必是有效链接。
  • 以统一资源标识符 (URI) 的形式
  • 用于 @id 值的网域必须归您的组织所有。
由于实体的 url 符合作为标识符的所有要求,因此我们建议您使用实体的 url 作为 @id。如需了解详情,请参阅标识符部分。
url 网址 必需 - 内容的规范网址,Google 会使用该网址将 Feed 中的内容与 Google 数据库中的内容进行匹配。
url 必须满足以下要求:
  • url 必须是全局唯一的
  • url 必须包含 Google 可以抓取的有效规范网址。
如需了解播放的深层链接,请改为参阅目标对象的 urlTemplate 属性。
name 文本 必需 - 电影的名称。
  • 使用数组列出不同语言的名称。请参阅多个地区和语言示例。
  • 请注意,每个语言区域(语言-国家/地区对)仅支持一个名称。
titleEIDR 文本 强烈推荐 为什么?- 一个 EIDR(娱乐业标识注册)标识符,用于在最一般/抽象的级别上表示影视作品。

例如,电影《捉鬼敢死队》的 titleEIDR 为“10.5240/7EC7-228A-510A-053E-CBB8-J”。
editEIDR 文本 强烈推荐 为什么?- 一个 EIDR(娱乐业标识注册)标识符,用于表示影视作品的特定剪辑 / 版本。

例如,电影《捉鬼敢死队》的标题 EIDR 为“10.5240/7EC7-228A-510A-053E-CBB8-J”,该电影有多个剪辑版本,例如“10.5240/1F2A-E1C5-680A-14C6-E76B-I”和“10.5240/8A35-3BEE-6497-5D12-9E4F-3”。提供 editEIDR 时,

titleEIDR 属性是必需的。
potentialAction WatchAction 如果适用,则为必需属性 - 提供操作详细信息操作标记对象
  • 如果内容可通过视频点播 (VoD) 观看,则此属性为必需属性;Action 标记对象需要提供内容的深层链接
  • 如果内容可在 LiveTV 频道上观看,则此属性为可选属性;关联的 BroadcastService 实体会提供频道的深层链接。
  • Movie 可在视频点播和 LiveTV 上提供。
使用数组可在多个区域中指定不同的深层链接。请参阅多个地区和语言示例。
sameAs 网址 强烈推荐 为什么?可用于标识电影的参考网页的网址;例如,电影的维基百科网页。此值必须与 url 属性不同。
inLanguage 文本 强烈建议:电影的原始语言,采用 BCP 47 格式。
genre 文本 所有相关流派的有序列表。例如:["Action", "Fashion", "Environment", "Football"]
keywords 文本 用于描述相应内容的关键字或标记。您还可以提供一个关键字数组。例如,["feature, biography"] 可以是用于描述内容的一组关键字。
releasedEvent PublicationEventFeaturedEventExclusiveEvent 强烈推荐 为什么?- PublicationEvent 用于指定发布商发布的内容的原始(全球或本地)发布时间,例如电影的原始院线发布日期。

此外,使用 FeaturedEvent 可表明您的服务将相应内容作为原创内容、精选内容、特别内容等进行营销。

ExclusiveEvent 用于指定您的服务拥有独家分发权,并指明分发地点和时间。

如需了解详情和示例,请参阅示例部分
releasedEvent.@type 文本 必需 - 请务必始终将此属性设置为以下值之一:
  • PublicationEvent
  • ExclusiveEvent
  • FeaturedEvent
releasedEvent.location 国家/地区 必需 - 与相应活动相关联的地区。

对于 PublicationEvent,这是发布内容的地区。

对于 FeaturedEventExclusiveEvent,这是内容被推荐或独家提供的地区。

请使用 ISO 3166 国家/地区代码。如需指示全球所有位置,请设置为 EARTH
releasedEvent.startDate DateDateTime 推荐 - ExclusiveEvent 必需 - 实体的发布开始日期。

对于 PublicationEvent,这表示实体的初始发布日期,例如电影首次在影院上映的日期。

对于 ExclusiveEventFeaturedEvent,这表示实体成为独家内容或精选内容的开始日期。
releasedEvent.endDate DateDateTime 推荐 - ExclusiveEvent 必需 - 仅适用于 ExclusiveEventFeaturedEvent 类型。

对于 ExclusiveEvent,此属性表示内容版权的到期日期。

对于 FeaturedEvent,此属性表示提供方最后一次推荐相应实体的日期。

如果内容是永久独家或推荐内容,请将 endDate 设置为当前日期起 20 年后的日期。
releasedEvent.publishedBy OrganizationPerson 可选 - 发布相应实体的组织或个人。
description 文本 强烈推荐 为什么?电影的剧情简介。剧情简介优先于事实摘要。300 个字符。
duration 时长 电影的播放时长,采用 ISO 8601 格式。请使用“PT00H00M”格式。
director Person 强烈推荐 为什么?电影的导演。
actor Person 强烈推荐 为什么?电影的演员。
producer OrganizationPerson 强烈推荐 为什么?电影的制片人。
image ImageObject Google TV 必需 - 与电影相关的图片。如需详细了解 image 中要包含的必需属性和可选属性,请参阅图片属性
trailer.description 文本 预告片的说明。请参阅预告片示例。
trailer.inLanguage 文本 强烈建议:预告片的语言,采用 BCP 47 格式
trailer.url 网址 由相应制作工作室或授权来源公开托管和上传的预告片的网址。
trailer.regionsAllowed Place 允许显示相应媒体的地区。如果未指定,则假定允许在所有地方显示。以 ISO 3166 格式指定国家/地区。
identifier PropertyValue 强烈推荐 为什么?- 明确标识了相应实体的外部 ID 或其他 ID。允许使用多个标识符。如需了解详情,请参阅标识符属性部分。
review Review 查看电影的评分
review.reviewRating 评分 如果提供了评价,则必须提供。用于指定评价中给出的评分。
contentRating TextRating 对于成人内容是必需的,在其他情况下强烈建议使用为什么?- 总体内容分级。如果内容分级以文本字符串的形式提供,则接受以下两种变体:
  • 评级机构,附加在评级前面,中间用空格隔开。例如,美国“MPAA”机构的“PG-13”分级应描述为“MPAA PG-13”。请参阅代理机构列表
  • 值为“RATING NOT KNOWN”(不区分大小写),表示您不知道相应电影的分级。
contentRating.author 组织 如果 contentRating 使用 Rating,则为必需属性 - 分级机构的名称。
contentRating.ratingValue 文本 如果 contentRating 使用 Rating,则为必需属性 - 分级的值。
contentRating.advisoryCode 文本 相应内容的警示代码。可接受的值包括 D、FV、L、S 和 V。D = 对白,FV = 奇幻暴力,L = 粗俗语言,S = 色情内容,V = 暴力。
popularityScore PopularityScoreSpecification 强烈推荐 为什么?Google 使用的一种分数,以及其他信号,用于确定要为用户播放哪些媒体。此得分表示内容相对于您目录中其他内容的受欢迎程度;因此,得分的比例需要在您的 Feed 中以及目录中的所有实体之间保持一致。默认情况下,实体的热度得分设为 0。
popularityScore.@type 文本 一律设置为 PopularityScoreSpecification
popularityScore.value 编号 一个非负数值,用于表示实体的受欢迎程度;得分越高,表示受欢迎程度越高。
popularityScore.eligibleRegion 国家/地区 相应热度得分适用的一个或多个地区。如果热度得分适用于全球,请设置为 EARTH。默认情况下,此属性设置为 EARTH
Note: 特定于语言区域的热度优先于全球(地球)热度
category 文本 如果适用,则为必需属性 - 如果实体是 Movie 变体,请填充此属性。将 category 设置为以下任一值:
  • Home Release:供家庭观看的销售或租赁版本。
  • Theatrical Release:在影院上映的版本。
  • International Release:经过修改以在国际上发布的版本。
  • Remastered:图像、声音或两者均已改进为更先进标准的版本。
  • Unrated:未经美国电影协会 (MPAA) 或类似机构审查的版本。
  • Director Cut:表示导演自己批准的剪辑版本。
  • Extended Cut:比影院版更长的版本。
workExample 影片 指定影片的变体。请将此属性包含在主 Movie 实体中,而不是变体版本的 Movie 实体中。
workExample.@id 网址 对于 Movie 变体,此属性提供相应 Movie 实体的 @id,该实体是此变体的来源。
workExample.@type 文本 必需 - 始终设置为 Movie。对于具有多个变体的 Movie,此字段可以表示为一个数组。
workExample.@id 网址 必需 - Movie 变体的 @id
workExample.name 文本 必需 - Movie 变体的名称。
workExample.category 文本 必需属性 - 特定版本的电影变体类型。将类别设置为以下任一值:
  • Home Release:供家庭观看的销售或租赁版本。
  • Theatrical Release:在影院上映的版本。
  • International Release:经过修改以在国际上发布的版本。
  • Remastered:图像、声音或两者均已改进为更先进标准的版本。
  • Unrated:未经美国电影协会 (MPAA) 或类似机构审查的版本。
  • Director Cut:表示导演自己批准的剪辑版本。
  • Extended Cut:比影院版更长的版本。

示例

主电影

具有加长版变体的电影。

{
  "@context": ["http://schema.org", {"@language": "en"}],
  "@type": "Movie",
  "@id": "http://www.example.com/my_favorite_movie",
  "url": "http://www.example.com/my_favorite_movie",
  "name": "My Favorite Movie",
  "potentialAction": {
    "@type": "WatchAction",
    "target": {
      "@type": "EntryPoint",
      "urlTemplate": "http://www.example.com/my_favorite_movie?autoplay=true",
      "inLanguage": "en",
      "actionPlatform": [
        "http://schema.org/DesktopWebPlatform",
        "http://schema.org/MobileWebPlatform",
        "http://schema.org/AndroidPlatform",
        "http://schema.org/AndroidTVPlatform",
        "http://schema.org/IOSPlatform",
        "http://schema.googleapis.com/GoogleVideoCast"
      ]
    },
    "actionAccessibilityRequirement": {
      "@type": "ActionAccessSpecification",
      "category": "subscription",
      "availabilityStarts": "2018-07-21T10:35:29Z",
      "availabilityEnds": "2019-10-21T10:35:29Z",
      "requiresSubscription": {
          "@type": "MediaSubscription",
          "name": "Example Package",
          "commonTier": true,
          "@id": "https://example.com/package/example"
      },
      "eligibleRegion": [
        {
          "@type": "Country",
          "name": "US"
        },
        {
          "@type": "Country",
          "name": "CA"
        }
      ]
    }
  },
  "sameAs": "https://en.wikipedia.org/wiki/my_favorite_movie",
  "contentRating": "RATING NOT KNOWN",
  "releasedEvent": {
    "@type": "PublicationEvent",
    "startDate": "2008-01-20",
    "location": {
      "@type": "Country",
      "name": "US"
    }
  },
  "popularityScore": {
    "@type": "PopularityScoreSpecification",
    "value": 78,
    "eligibleRegion": [
      {
        "@type": "Country",
        "name": "US"
      },
      {
        "@type": "Country",
        "name": "CA"
      }
    ]
  },
  "description": "This is my favorite movie.",
  "actor": [
    {
      "@type": "Person",
      "name": "John Doe",
      "sameAs": "https://en.wikipedia.org/wiki/John_Doe"
    },
    {
      "@type": "Person",
      "name": "Jane Doe",
      "sameAs": "https://en.wikipedia.org/wiki/Jane_Doe"
    }
  ],
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "IMDB_ID",
      "value":  "tt0123456"
    }
  ],
  "workExample": {
      "@type": "Movie",
      "@id": "http://www.example.com/my_favorite_movie_extended_cut",
      "name": "My Favorite Movie Extended Cut"
      "category": "Extended Cut"
  }
}

加长版变体

正片的加长版。

{
  "@context": ["http://schema.org", {"@language": "en"}],
  "@type": "Movie",
  "@id": "http://www.example.com/my_favorite_movie_extended_cut",
  "url": "http://www.example.com/my_favorite_movie_extended_cut",
  "name": "My Favorite Movie Extended Cut",
  "potentialAction": {
    "@type": "WatchAction",
    "target": {
      "@type": "EntryPoint",
      "urlTemplate": "http://www.example.com/my_favorite_movie_extended_cut?autoplay=true",
      "inLanguage": "en",
      "actionPlatform": [
        "http://schema.org/DesktopWebPlatform",
        "http://schema.org/MobileWebPlatform",
        "http://schema.org/AndroidPlatform",
        "http://schema.org/AndroidTVPlatform",
        "http://schema.org/IOSPlatform",
        "http://schema.googleapis.com/GoogleVideoCast"
      ]
    },
    "actionAccessibilityRequirement": {
      "@type": "ActionAccessSpecification",
      "category": "subscription",
      "availabilityStarts": "2018-07-21T10:35:29Z",
      "availabilityEnds": "2019-10-21T10:35:29Z",
      "requiresSubscription": {
        "@type": "MediaSubscription",
        "name": "Example Package",
        "commonTier": true,
        "@id": "http://www.example.com/example_package",
        "identifier": "example.com:example_package"
       },
      "eligibleRegion": [
        {
          "@type": "Country",
          "name": "US"
        },
        {
          "@type": "Country",
          "name": "CA"
        }
      ]
    }
  },
  "sameAs": "https://en.wikipedia.org/wiki/my_favorite_movie_extended_cut",
  "contentRating": {
        "@type": "Rating",
        "author": "MPAA",
        "ratingValue": "R",
        "advisoryCode": "FV"
   },
  "releasedEvent": {
    "@type": "PublicationEvent",
    "startDate": "2008-01-20",
    "location": {
      "@type": "Country",
      "name": "US"
    }
  },
  "description": "This is the extended cut of my favorite movie.",
  "actor": [
    {
      "@type": "Person",
      "name": "John Doe",
      "sameAs": "https://en.wikipedia.org/wiki/John_Doe"
    },
    {
      "@type": "Person",
      "name": "Jane Doe",
      "sameAs": "https://en.wikipedia.org/wiki/Jane_Doe"
    }
  ],
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "IMDB_ID",
      "value":  "tt0123456"
    }
  ],
 "exampleOfWork": {
  "@id": "http://www.example.com/my_favorite_movie",
 }
 "category": "Extended Cut"
}

如需了解与这些媒体资源相关的主题,请参阅以下页面: