将微数据与 schema.org/OpeningHoursSpecification 结合使用

2024-03-29

我正在看http://schema.org/OpeningHoursSpecification http://schema.org/OpeningHoursSpecification地点(及更多)的微数据架构。我对要使用的值有点困惑星期几 http://schema.org/DayOfWeek.

两个班级(开放时间规格 and 星期几)源自 GoodRelations 电子商务词汇表,我对这个词汇表没有信心。

请问您能发布一个完整的示例吗?


GoodRelations 模型的枚举(预定义值列表)保留在 GoodRelations 命名空间中,即对于星期一,使用

http://purl.org/goodrelations/v1#Monday

这是一个完整的示例:

<div itemscope itemtype="http://schema.org/Place" itemid="#store">
  <span itemprop="name">Hepp's Happy Burger Restaurant</span>
  <div itemprop="openingHoursSpecification" itemscope 
       itemtype="http://schema.org/OpeningHoursSpecification">
Opening hours: Mo-Fri,
     <link itemprop="dayOfWeek" 
           href="http://purl.org/goodrelations/v1#Monday" />
     <link itemprop="dayOfWeek" 
           href="http://purl.org/goodrelations/v1#Tuesday" />
     <link itemprop="dayOfWeek" 
           href="http://purl.org/goodrelations/v1#Wednesday" />
     <link itemprop="dayOfWeek" 
           href="http://purl.org/goodrelations/v1#Thursday" />
     <link itemprop="dayOfWeek" 
           href="http://purl.org/goodrelations/v1#Friday" />
     <meta itemprop="opens" content="08:00:00">8:00 a.m. -
     <meta itemprop="closes" content="20:00:00">8:00 p.m.
  </div>
</div>

希望有帮助!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

将微数据与 schema.org/OpeningHoursSpecification 结合使用 的相关文章

随机推荐