Jea*_*ean 6 microdata schema.org
我正在查看地方的http://schema.org/OpeningHoursSpecification微数据模式(以及更多).我对DayOfWeek的价值感到有些困惑.
这两个类(OpeningHoursSpecification和DayOfWeek)都来自电子商务的GoodRelations词汇表,我对这个词汇表没有信心.
拜托,你能发一个完整的例子吗?
Mar*_*epp 10
GoodRelations模型的枚举(预定义值列表)保留在GoodRelations名称空间中,即对于星期一,使用
http://purl.org/goodrelations/v1#Monday
Run Code Online (Sandbox Code Playgroud)
这是一个完整的例子:
<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>
Run Code Online (Sandbox Code Playgroud)
希望有所帮助!
| 归档时间: |
|
| 查看次数: |
3244 次 |
| 最近记录: |