2

Suppose that a place does not offer the all-day-opening. Hence, we have two opening in one day. How one should define the Microdata with schema.org/OpeningHoursSpecification? I suppose that one should create two separated instances of schema.org/OpeningHoursSpecification as follows:

Opening hours: 
  <div itemprop="openingHoursSpecification" itemscope 
       itemtype="http://schema.org/OpeningHoursSpecification">Mo,
     <link itemprop="dayOfWeek" 
           href="http://purl.org/goodrelations/v1#Monday" />
     <meta itemprop="opens" content="08:00:00">8:00 a.m. -
     <meta itemprop="closes" content="12:00:00">12:00 a.m.
  </div>
  <div itemprop="openingHoursSpecification" itemscope 
       itemtype="http://schema.org/OpeningHoursSpecification">Mo,
     <link itemprop="dayOfWeek" 
           href="http://purl.org/goodrelations/v1#Monday" />
     <meta itemprop="opens" content="16:00:00">4:00 a.m. -
     <meta itemprop="closes" content="20:00:00">8:00 p.m.
  </div>

Am I right?

4

1 回答 1

2

是的,你完全正确!

如果您想了解该模式,您还可以使用(有点过时的)GoodRelations Annotator 工具,位于

http://www.ebusiness-unibw.org/tools/goodrelations-annotator/en/

它将为基于表单的输入生成相应的 RDFa 标记。

请注意,在 schema.org 中,元素的命名可能与原始命名空间中的命名略有不同,如下所述:

http://wiki.goodrelations-vocabulary.org/Cookbook/Schema.org#Naming_Differences

最好的祝愿

马丁赫普

于 2012-12-27T08:58:16.150 回答