Thanks, that helps a lot!<br><br><div class="gmail_quote">2012/9/12 Martin Hepp <span dir="ltr"><<a href="mailto:martin.hepp@ebusiness-unibw.org" target="_blank">martin.hepp@ebusiness-unibw.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This has to be specified as follows:<br>
<br>
<div itemscope itemtype="<a href="http://schema.org/Place" target="_blank">http://schema.org/Place</a>" itemid="#store"><br>
  <link itemprop="<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" target="_blank">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</a>"<br>
        href="<a href="http://purl.org/goodrelations/v1#Location" target="_blank">http://purl.org/goodrelations/v1#Location</a>" /><br>
  <span itemprop="name">Hepp's Happy Burger Restaurant</span><br>
  <div itemprop="hasOpeningHoursSpecification" itemscope<br>
       itemtype="<a href="http://purl.org/goodrelations/v1#OpeningHoursSpecification" target="_blank">http://purl.org/goodrelations/v1#OpeningHoursSpecification</a>"><br>
Opening hours: Fridays<br>
     <link itemprop="hasOpeningHoursDayOfWeek"<br>
           href="<a href="http://purl.org/goodrelations/v1#Friday" target="_blank">http://purl.org/goodrelations/v1#Friday</a>" /><br>
     <meta itemprop="opens" content="19:00:00">7:00 p.m. -<br>
     <meta itemprop="closes" content="23:59:59"><br>
  </div><br>
  <div itemprop="hasOpeningHoursSpecification" itemscope<br>
       itemtype="<a href="http://purl.org/goodrelations/v1#OpeningHoursSpecification" target="_blank">http://purl.org/goodrelations/v1#OpeningHoursSpecification</a>"><br>
     <link itemprop="hasOpeningHoursDayOfWeek"<br>
           href="<a href="http://purl.org/goodrelations/v1#Saturday" target="_blank">http://purl.org/goodrelations/v1#Saturday</a>" /><br>
     <meta itemprop="opens" content="00:00:00"><br>
     <meta itemprop="closes" content="02:00:00">2:00 a.m. (next day)<br>
  </div><br>
</div><br>
<br>
Apologies for using Microdata syntax here; that was what I had as hand.<br>
<br>
I.e., opening hours that cross midnight must be broken into two chunks, one opening hour specification for the first day, then closing at 23:59:59, and one for the next day of the week, opening ant 00:00:00.<br>
<br>
A bar that opens every evening at 7.00 p.m. and closes at 2:00 a.m. the next day would then say for Mondays through Sundays:<br>
<br>
opens 00:00:00, closes 02:00:00<br>
opens 19:00:00, closes 23:59:59<br>
<br>
You will need two gr:OpeningHoursSpecification nodes, because gr:opens and gr:closes have a cardinality of 1..1 in this case.<br>
<br>
A consuming client should assume that if the shop closes for only 1 second, it is actually open without interruption.<br>
<br>
This is the only way to model this scenario properly in GoodRelations, since otherwise, SPARQL queries for sub-intervals and other things would not work.<br>
For instance, someone checking at 0:30 am on the following Saturday for a bar that is open for at least another hour should find this place.<br>
<br>
Also, it is not always obvious which specification is the right one for the next day, because they might be constrained by validFrom and validThrough.<br>
<br>
Hope that helps.<br>
<br>
<br>
Best wishes<br>
<br>
Martin Hepp<br>
<div><div class="h5"><br>
On Sep 12, 2012, at 5:36 PM, László Török wrote:<br>
<br>
> Hi,<br>
><br>
> Is there any recommendation how should one modell the following opening hours pattern:<br>
><br>
> Fri: 7pm - 2am (next day)<br>
><br>
><br>
> The following seems a bit odd:<br>
> <div rel="gr:hasOpeningHoursSpecification"><br>
><br>
><br>
> <div typeof="gr:OpeningHoursSpecification"><br>
>  Opening hours: Fri,<br>
><br>
> <div rel="gr:hasOpeningHoursDayOfWeek"<br>
><br>
><br>
> resource="<a href="http://purl.org/goodrelations/v1#Friday" target="_blank">http://purl.org/goodrelations/v1#Friday</a>"></div><br>
><br>
><br>
> <div property="gr:opens" content="19:00:00" datatype="xsd:time">7:00 p.m. - </div><br>
><br>
><br>
> <div property="gr:closes" content="02:00:00" datatype="xsd:time">2:00 a.m.</div><br>
><br>
><br>
> </div><br>
><br>
><br>
> </div><br>
><br>
> it becomes confusing, if I want to specify multiple intraday time spans, which is common for restaurants:<br>
><br>
> e.g.  Mo-Fri: 10am - 3pm, 5pm - 11pm<br>
><br>
> Is there a compact way to represent this or should one provide two gr:OpeningHoursSpecification nodes to describe those.<br>
><br>
> There is a recommendation for <a href="http://schema.org" target="_blank">schema.org</a>: <a href="http://schema.org/LocalBusiness" target="_blank">http://schema.org/LocalBusiness</a><br>
><br>
> Thanks!<br>
> --<br>
> László Török<br>
><br>
</div></div>> _______________________________________________<br>
> goodrelations mailing list<br>
> <a href="mailto:goodrelations@ebusiness-unibw.org">goodrelations@ebusiness-unibw.org</a><br>
> <a href="http://ebusiness-unibw.org/cgi-bin/mailman/listinfo/goodrelations" target="_blank">http://ebusiness-unibw.org/cgi-bin/mailman/listinfo/goodrelations</a><br>
<br>
<br>
<br>
--------------------------------------------------------<br>
martin hepp<br>
e-business & web science research group<br>
universitaet der bundeswehr muenchen<br>
<br>
e-mail:  <a href="mailto:hepp@ebusiness-unibw.org">hepp@ebusiness-unibw.org</a><br>
phone:   <a href="tel:%2B49-%280%2989-6004-4217" value="+498960044217">+49-(0)89-6004-4217</a><br>
fax:     <a href="tel:%2B49-%280%2989-6004-4620" value="+498960044620">+49-(0)89-6004-4620</a><br>
www:     <a href="http://www.unibw.de/ebusiness/" target="_blank">http://www.unibw.de/ebusiness/</a> (group)<br>
         <a href="http://www.heppnetz.de/" target="_blank">http://www.heppnetz.de/</a> (personal)<br>
skype:   mfhepp<br>
twitter: mfhepp<br>
<br>
Check out GoodRelations for E-Commerce on the Web of Linked Data!<br>
=================================================================<br>
* Project Main Page: <a href="http://purl.org/goodrelations/" target="_blank">http://purl.org/goodrelations/</a><br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>László Török</div><br>