Schema.org营业时间w/多次&休息日 [英] Schema.org openingHours w/ multiple times & days that are closed

查看:48
本文介绍了Schema.org营业时间w/多次&休息日的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经查看了Schema.org规范的开放时间,但似乎无法解决两个关键问题: 1)营业时间较长的本地企业(即8-12、1-5,中间的孔被关闭以供午餐) 2)营业时间完全关闭的日子.

I've looked at the Schema.org spec for opening hours, but it seems to fail to address two key items: 1) Localbusinesses that have multiple hours (ie 8-12, 1-5 with the hole in the middle being closed for lunch) 2) Days where the business is closed altogether.

我在Google上找不到其他人做的任何例子,这是我正常工作时间(9-5)的代码,以及我的GUESS如何处理关闭日的信息.

I can't find any examples of anyone else doing it on google, this is my code for just normal hours (9-5) and my GUESS for how to handle days that are closed.

有人可以在几个小时内发出铃声并确认我对休息日的处理是正确的吗?

Can someone chime in on multiple hours and confirm my handling of closed days is correct?

<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 style="font-weight:bold;width:100px;margin-right:10px;padding:5px;clear:both;float:left;">Saturday</div>

<div style="float:left;padding:5px;">
<em>Closed</em>
</div>
<br />
<div style="font-weight:bold;width:100px;margin-right:10px;padding:5px;clear:both;float:left;">Sunday</div>
<div style="float:left;padding:5px;">
<em>Closed</em>
</div>

推荐答案

LocalBusiness 架构页面上的第二个示例似乎可以说明您提出的两个问题:

The 2nd example on the LocalBusiness schema page appears to illustrate both the issues which you've raised:

Hours:
<meta itemprop="openingHours" content="Mo-Sa 11:00-14:30">Mon-Sat 11am - 2:30pm
<meta itemprop="openingHours" content="Mo-Th 17:00-21:30">Mon-Thu 5pm - 9:30pm
<meta itemprop="openingHours" content="Fr-Sa 17:00-22:00">Fri-Sat 5pm - 10:00pm

这显示了一家餐厅,该餐厅在下午关闭几个小时,而在周日不营业(表示没有给定的周日营业时间).

This shows a restaurant that closes for a couple hours during the afternoon and is not open on Sundays (implied by no given openingHours for Sunday).

这篇关于Schema.org营业时间w/多次&amp;休息日的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆