6

場所 (およびその他) のhttp://schema.org/OpeningHoursSpecification Microdata スキーマを見ています。DayOfWeekに使用する値について少し混乱しています。

両方のクラス ( OpeningHoursSpecificationDayOfWeek ) は、GoodRelations の E コマースの語彙から派生したものですが、私はこの語彙に自信がありません。

完全な例を投稿できますか?

4

1 に答える 1

10

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>

それが役立つことを願っています!

于 2012-12-26T19:58:50.117 に答える