在同一页面上表示电影放映时间列表的正确结构是什么?
What is the correct structure to represent a list of movie showtimes on the same page?
我正在建立一个网站来参考电影放映时间。
该站点显示了一个包含电影列表的正在播放的页面,每部电影都有一个包含即将上映时间的页面。
我添加了一些结构化数据以增强搜索引擎查看我网站上数据的方式。
这是我目前的情况:
{
"@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"
}
}
}
}
]
}
有没有更好的方式来表示这种信息而不重复数据?
我的建议给出了 google Carousel --> Single, all-in-one-page list 的指南:
{
"@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 添加所有必需和推荐的属性。
我正在建立一个网站来参考电影放映时间。
该站点显示了一个包含电影列表的正在播放的页面,每部电影都有一个包含即将上映时间的页面。
我添加了一些结构化数据以增强搜索引擎查看我网站上数据的方式。
这是我目前的情况:
{
"@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"
}
}
}
}
]
}
有没有更好的方式来表示这种信息而不重复数据?
我的建议给出了 google Carousel --> Single, all-in-one-page list 的指南:
{
"@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 添加所有必需和推荐的属性。