我应该如何在 Schema.org 中表示 "global" 事件/纪念活动/场合?
How should I represent "global" events / observances / occasions in Schema.org?
我管理着一个包含全球事件日历的教育网站,但从 Schema.org 的事件类型考虑它们的意义上来说,这些不是“事件”——它们没有位置,并且它们在广阔的区域(例如一个国家、一个大陆或全世界)被观察到。它们更像是全球纪念日、场合或纪念活动。例如地球日、农历新年、世界读书日、国际妇女节等。
在我们最初尝试为这些日历页面引入微数据时,我使用了事件类型,但我知道这些事件中的许多(或大多数)都没有可定义的位置(在某种意义上Schema.org 代表一个位置),并且在物理或数字意义上没有“参与”,它们是无效的。
我应该在这种情况下使用 Schema.org 词汇表中的更合适的类型吗?尝试在 Schema.org 微数据中表示它们是不合适的吗?
也许Google's guide for an online event可以帮到你,包括一个例子:
<html>
<head>
<title>The Adventures of Kira and Morrison</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "The Adventures of Kira and Morrison",
"startDate": "2025-07-21T19:00:00-05:00",
"endDate": "2025-07-21T23:00-05:00",
"eventStatus": "https://schema.org/EventScheduled",
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"location": {
"@type": "VirtualLocation",
"url": "https://operaonline.stream5.com/"
},
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"description": "The Adventures of Kira and Morrison is coming to Snickertown in a can't miss performance.",
"offers": {
"@type": "Offer",
"url": "https://www.example.com/event_offer/12345_201803180430",
"price": "30",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"validFrom": "2024-05-21T12:00"
},
"performer": {
"@type": "PerformingGroup",
"name": "Kira and Morrison"
},
"organizer": {
"@type": "Organization",
"name": "Kira and Morrison Music",
"url": "https://kiraandmorrisonmusic.com"
}
}
</script>
</head>
<body>
</body>
</html>
此外,Schema 具有类型 VirtualLocation.
的 beta 版本
我管理着一个包含全球事件日历的教育网站,但从 Schema.org 的事件类型考虑它们的意义上来说,这些不是“事件”——它们没有位置,并且它们在广阔的区域(例如一个国家、一个大陆或全世界)被观察到。它们更像是全球纪念日、场合或纪念活动。例如地球日、农历新年、世界读书日、国际妇女节等。
在我们最初尝试为这些日历页面引入微数据时,我使用了事件类型,但我知道这些事件中的许多(或大多数)都没有可定义的位置(在某种意义上Schema.org 代表一个位置),并且在物理或数字意义上没有“参与”,它们是无效的。
我应该在这种情况下使用 Schema.org 词汇表中的更合适的类型吗?尝试在 Schema.org 微数据中表示它们是不合适的吗?
也许Google's guide for an online event可以帮到你,包括一个例子:
<html>
<head>
<title>The Adventures of Kira and Morrison</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "The Adventures of Kira and Morrison",
"startDate": "2025-07-21T19:00:00-05:00",
"endDate": "2025-07-21T23:00-05:00",
"eventStatus": "https://schema.org/EventScheduled",
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"location": {
"@type": "VirtualLocation",
"url": "https://operaonline.stream5.com/"
},
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"description": "The Adventures of Kira and Morrison is coming to Snickertown in a can't miss performance.",
"offers": {
"@type": "Offer",
"url": "https://www.example.com/event_offer/12345_201803180430",
"price": "30",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"validFrom": "2024-05-21T12:00"
},
"performer": {
"@type": "PerformingGroup",
"name": "Kira and Morrison"
},
"organizer": {
"@type": "Organization",
"name": "Kira and Morrison Music",
"url": "https://kiraandmorrisonmusic.com"
}
}
</script>
</head>
<body>
</body>
</html>
此外,Schema 具有类型 VirtualLocation.
的 beta 版本