【发布时间】: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