GoodRelations is a standardized vocabulary for product, price, and company data that can (1) be embedded into existing static and dynamic Web pages and that (2) can be processed by other computers. This increases the visibility of your products and services in the latest generation of search engines, recommender systems, and other novel applications.
Martin Hepp
martin.hepp at ebusiness-unibw.org
Fri Jan 14 10:30:00 CET 2011
Hi all:
> Am 13.01.11 13:46 schrieb "Keith Alexander" unter
> <k.j.w.alexander at gmail.com>:
>
>> <x> g:openingHoursSpecification [ g:open "00:00" ; g:close
>> "00:00" ] .
Note that there are a structural and syntactical problems in your
example:
It should be
foo:myShop a gr:LocationOfSalesOrServiceProvisioning ;
gr:hasOpeningHoursSpecification [
a gr:OpeningHoursSpecification ;
gr:opens "00:00:00"^^xsd:time ;
gr:closes "23:59:59"^^xsd:time ] .
- gr:opens and gr:closes instead of open and close
- gr:hasOpeningHoursSpecification instead of g:openingHoursSpecification
- missing type for the blank node (can be inferred of course)
>>
>> but doesn't seem clear that that is "always open" or "never open".
>
> What about <x> g:openingHoursSpecification [ g:opens "00:01" ;
> g:closes
> "24:00" ] .
>
> Best regards, Daniel
It's as Daniel says: The best way to indicate all-day opening hours is
00:00:00 - 23:59:59. However, as per xsd:time, you must include the
seconds:
foo:Mondays a gr:OpeningHoursSpecification ;
gr:opens "00:00:00"^^xsd:time ;
gr:closes "23:59:59"^^xsd:time .
If no time-zone suffix is included, the time is given in the local
time valid at the location.
For a time in GMT/UTC, simply add a "Z" following the times:
foo:Mondays a gr:OpeningHoursSpecification ;
gr:opens "00:00:00Z"^^xsd:time ;
gr:closes "23:59:59Z"^^xsd:time .
Alternatively, you can specify an offset from the UTC time by adding a
positive or negative time following the time:
foo:Mondays a gr:OpeningHoursSpecification ;
gr:opens "00:00:00-09:00"^^xsd:time ;
gr:closes "23:59:59-09:00"^^xsd:time .
or
foo:Mondays a gr:OpeningHoursSpecification ;
gr:opens "00:00:00+09:00"^^xsd:time ;
gr:closes "23:59:59+09:00"^^xsd:time .
Best
Martin
--------------------------------------------------------
martin hepp
e-business & web science research group
universitaet der bundeswehr muenchen
e-mail: hepp at ebusiness-unibw.org
phone: +49-(0)89-6004-4217
fax: +49-(0)89-6004-4620
www: http://www.unibw.de/ebusiness/ (group)
http://www.heppnetz.de/ (personal)
skype: mfhepp
twitter: mfhepp
Check out GoodRelations for E-Commerce on the Web of Linked Data!
=================================================================
* Project Main Page: http://purl.org/goodrelations/
* Quickstart Guide for Developers: http://bit.ly/quickstart4gr
* Vocabulary Reference: http://purl.org/goodrelations/v1
* Developer's Wiki: http://www.ebusiness-unibw.org/wiki/GoodRelations
* Examples: http://bit.ly/cookbook4gr
* Presentations: http://bit.ly/grtalks
* Videos: http://bit.ly/grvideos