我使用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>
答案 0 :(得分:1)
现在有其他标记可用来描述在线/离线事件。对于Event,请检查新的eventAttendanceMode属性,该属性至少接受以下选项(枚举)的值:OfflineEventAttendanceMode,OnlineEventAttendanceMode,MixedEventAttendanceMode。
答案 1 :(得分:0)
Event
可能也是在线活动的正确类型(并且没有其他更合适的类型可用)。
Google,according to their documentation,仅为物理事件支持其事件丰富的结果。
因此,您无法为在线活动获得Google丰富的搜索结果。您当然可以保留标记(并省略location
属性)。
¹请参阅问题applicability of Event to online events e.g. consider Webinar subtype。
答案 2 :(得分:0)
根据this example,您可以将位置用作URL。