我查看了Schema.org规范的开放时间,但它似乎未能解决两个关键项目:1)具有多个小时的本地企业(即8-12,1-5,中间的孔被关闭午餐)2)业务完全关闭的日子.
我找不到任何其他人在谷歌上做这个的例子,这是我的正常时间(9-5)的代码和我的GUESS如何处理关闭的日子.
有人可以在多个小时内收听并确认我对关闭日期的处理是否正确?
<time itemprop="openingHours" datetime="Mo 08:30-12:00">
<div style="font-weight:bold;width:100px;margin-right:10px;padding:5px;clear:both;float:left;">Monday</div>
<div style="float:left;padding:5px;">
08:30AM - 12:00PM
</div>
</time>
<br />
<time itemprop="openingHours" datetime="Tu 08:30-12:00">
<div style="font-weight:bold;width:100px;margin-right:10px;padding:5px;clear:both;float:left;">Tuesday</div>
<div style="float:left;padding:5px;">
08:30AM - 12:00PM
</div>
</time>
<br />
<time itemprop="openingHours" datetime="We 08:30-12:00">
<div style="font-weight:bold;width:100px;margin-right:10px;padding:5px;clear:both;float:left;">Wednesday</div>
<div style="float:left;padding:5px;">
08:30AM - 12:00PM
</div>
</time>
<br />
<time itemprop="openingHours" datetime="Th 08:30-12:00">
<div style="font-weight:bold;width:100px;margin-right:10px;padding:5px;clear:both;float:left;">Thursday</div>
<div style="float:left;padding:5px;">
08:30AM - 12:00PM
</div>
</time>
<br />
<time itemprop="openingHours" datetime="Fr 10:10-12:00">
<div style="font-weight:bold;width:100px;margin- right:10px;padding:5px;clear:both;float:left;">Friday</div>
<div style="float:left;padding:5px;">
10:10AM - 12:00PM
</div>
</time>
<br />
<div …Run Code Online (Sandbox Code Playgroud) 我在我的网站上使用微数据,特别是LocalBusiness模式.我也读到了这个:schema.org:同一天的多个开放时间
但我想要的是每天定义开放时间是什么,因为它们可能会有很大不同.
我目前在其他例子中看到的是:
<time itemprop="openingHours" datetime="Tu-Fr 10:00-14:00">XYZ</time>
Run Code Online (Sandbox Code Playgroud)
我还可以使用这些选项中的任何一个吗?
<time itemprop="openingHours" datetime="Tu 10:00-14:00">XYZ</time>
<time itemprop="openingHours" datetime="Fr 11:00-14:00">XYZ</time>
Run Code Online (Sandbox Code Playgroud)
或这个
<meta itemprop="openingHours" content="Tu 10:00-14:00">XYZ
<meta itemprop="openingHours" content="FR 11:00-14:00">XYZ
Run Code Online (Sandbox Code Playgroud)
不仅如此,在某些日子里,企业可能只能通过预约开放.怎么指定?我假设当我在<time>规范中离开一天时,它将被解释为关闭,但是通过预约我不知道.
**更新**
我现在有这个:
<div itemprop="openingHoursSpecification" itemscope="" itemtype="http://schema.org/OpeningHoursSpecification">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Monday">
<time datetime="07:00">07:00</time> - <time datetime="01:00">01:00</time>
</div>
Run Code Online (Sandbox Code Playgroud)
我现在看到了Google丰富的代码段工具
项目类型:http://schema.org/localbusiness
property:
name:Syriana
description:
address:Item 1
openinghoursspecification:Item 2
openinghoursspecification:Item 3
第2项
类型:http://schema.org/openinghoursspecification
property:
dayofweek:http://purl.org/goodrelations/v1#Monday
我看到了这一天,但不是丰富的片段工具中的时间......为什么?