gpt4 book ai didi

schema.org - 如何使用 Schema.org for Google 标记在线事件?

转载 作者:行者123 更新时间:2023-12-04 03:15:40 25 4
gpt4 key购买 nike

我用过 Event用于描述在线事件 的架构,但 Google 要求提供 location作为必需的属性。

您会使用哪种模式?如果您使用 Event 架构,您将如何设置 location 属性?

<script type='application/ld+json'>
{
"@context": "http://www.schema.org",
"@type": "Event",
"name": "This is the event name",
"url": "http://example.com",
"performer" : {
"@type": "Person",
"name" : "Daniel G.",
"additionalName" : "Dani",
"description": "This is my description"
},
"description": "This is the description of the event",
"startDate": "2017-06-03T14:38:00+02:00",
"endDate": "2017-06-03T15:08:00+02:00",
"duration": "PT30M",
"inLanguage": "es",
"image" : "http://example.com/image.jpg",
"offers": {
"@type": "Offer",
"price": 10,
"availability" : "http://schema.org/InStock",
"priceCurrency": "EUR",
"url": "http://example.com"
}
}
</script>

最佳答案

现在有额外的标记可用于描述在线/离线事件。对于 Event查看新的 eventAttendanceMode至少接受来自以下选项(枚举)的值的属性:OfflineEventAttendanceMode、OnlineEventAttendanceMode、MixedEventAttendanceMode。

关于schema.org - 如何使用 Schema.org for Google 标记在线事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41219234/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com