【问题标题】:What is the correct structure to represent a list of movie showtimes on the same page?在同一页面上表示电影放映时间列表的正确结构是什么?
【发布时间】:2021-11-12 20:20:39
【问题描述】:

我正在建立一个网站来参考电影放映时间。

该网站显示一个正在播放的页面,其中包含电影列表,每部电影都有一个包含即将上映的页面。

我添加了一些结构化数据以增强搜索引擎在我的网站上查看数据的方式。

这是我目前所拥有的:

{
  "@context": "https://schema.org",
  "@type": "ItemList",
  "numberOfItems": 2,
  "itemListElement": [
    {
      "@type": "ListItem",
      "name": "Screening Event 1",
      "position": 1,
      "item": {
        "@context": "https://schema.org",
        "@type": "ScreeningEvent",
        "startDate": "2021-09-18T15:15:00.000Z",
        "url": "http://localhost:3000/film/Boite-noire/663260#6144ab7a22b6d900165aa836",
        "inLanguage": "fr",
        "location": {
          "@context": "https://schema.org",
          "@type": "MovieTheater",
          "name": "Pathé Tunis City",
          "url": "http://localhost:3000/medium/pathe-tunis-city"
        },
        "workPresented": {
          "@context": "https://schema.org",
          "@type": "Movie",
          "name": "Boîte noire",
          "image": "https://image.tmdb.org/t/p/w300_and_h450_bestv2/jIfFFC4YwiI8TVaGtbl1eT9BRaI.jpg",
          "url": "http://localhost:3000/film/Boite-noire/663260",
          "sameAs": "https://imdb.com/title/tt10341034",
          "director": {
            "@type": "Person",
            "name": "Yann Gozlan"
          }
        }
      }
    },
    {
      "@type": "ListItem",
      "name": "Screening Event 2",
      "position": 2,
      "item": {
        "@context": "https://schema.org",
        "@type": "ScreeningEvent",
        "startDate": "2021-09-18T20:15:00.000Z",
        "url": "http://localhost:3000/film/Boite-noire/663260#6144ab8522b6d900165aa837",
        "inLanguage": "fr",
        "location": {
          "@context": "https://schema.org",
          "@type": "MovieTheater",
          "name": "Pathé Tunis City",
          "url": "http://localhost:3000/medium/pathe-tunis-city"
        },
        "workPresented": {
          "@context": "https://schema.org",
          "@type": "Movie",
          "name": "Boîte noire",
          "image": "https://image.tmdb.org/t/p/w300_and_h450_bestv2/jIfFFC4YwiI8TVaGtbl1eT9BRaI.jpg",
          "url": "http://localhost:3000/film/Boite-noire/663260",
          "sameAs": "https://imdb.com/title/tt10341034",
          "director": {
            "@type": "Person",
            "name": "Yann Gozlan"
          }
        }
      }
    }
  ]
}

有没有更好的方法来表示这种信息而无需重复数据?

【问题讨论】:

  • 我投票结束这个问题,因为 SEO 问题是题外话。 Stack Overflow 上只接受与编程相关的 SEO 问题。非编程 SEO 问题应在 Webmasters.SE 上webmasters.stackexchange.com 提出。请先删除您的问题。

标签: schema.org json-ld


【解决方案1】:

我的建议给了Carousel --> Single, all-in-one-page list的google指南:

{
"@context": "https://schema.org",
"@type": "Movie",
...
"@id":"https://cinema.com/lordofrings.html",
"name":"Lord of the rings",
"subjectOf":{
"@type": "ItemList",
"itemListElement": [
{
"@type": "ListItem",
"position": "1",
"item": {
"@type": "ScreeningEvent",
"url": "https://cinema.com/lordofrings.html#15",
"startDate": "2021-09-18T15:00:00+01:00"
}
},
{
"@type": "ListItem",
"position": "2",
"item": {
"@type": "ScreeningEvent",
"url": "https://cinema.com/lordofrings.html#18",
"startDate": "2021-09-18T18:00:00+01:00"
}
}
]
}
}

对于省略号,设置所需的电影信息并为 Google Rich Results Test 添加所有必需和推荐的属性。

【讨论】:

  • 谢谢@nikant25,这正是我要找的东西
猜你喜欢
  • 2013-08-17
  • 1970-01-01
  • 2012-11-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多