微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

我应该如何在 Schema.org 中表示“全球”事件/纪念活动/场合?

如何解决我应该如何在 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 类型的测试版。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。