- From: Martin Hepp <martin.hepp@ebusiness-unibw.org>
- Date: Fri, 28 Oct 2011 10:16:09 +0200
- To: Andy Mabbett <andy@pigsonthewing.org.uk>
- Cc: public-vocabs@w3.org
Below is a full example for modeling restrooms with schema.org and GoodRelations: Notes: 1. It uses http://www.productontology.org/id/Public_toilet to identify the type of the location. 2. It extends schema.org with GoodRelations patterns (http://purl.org/goodrelations/), which readily provides what you need for this case. 3. The GoodRelations business function "LeaseOut" is the best in here, because it is defined as "This ... indicates that the gr:BusinessEntity offers (or seeks) the temporary right to use the specified gr:ProductOrService." Which is what applies in here. "ProvideService" would also work, but is less specific. # Part 1: Describing the location/place, it's opening/access hours, geo position, etc. <div itemscope itemtype="http://purl.org/goodrelations/v1#Location" itemid="#wc"> <link itemprop="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" href="http://www.productontology.org/id/Public_toilet" /> <span itemprop="name">Public Restroom at Paddington Station</span> <div itemscope itemprop="http://schema.org/address" itemtype="http://schema.org/PostalAddress"> <span itemprop="streetAddress">Bagel Street 1234</span> <span itemprop="postalCode">AAA B25</span> <span itemprop="addressLocality">London, UK</span> </div> <div itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates"> <meta itemprop="http://schema.org/latitude" content="45.75" > <meta itemprop="http://schema.org/longitude" content="49.98" > </div> <div itemprop="http://purl.org/goodrelations/v1#hasOpeningHoursSpecification" itemscope itemtype="http://purl.org/goodrelations/v1#OpeningHoursSpecification"> Opening hours: Mo-Fri, <link itemprop="hasOpeningHoursDayOfWeek" href="http://purl.org/goodrelations/v1#Monday" /> <link itemprop="hasOpeningHoursDayOfWeek" href="http://purl.org/goodrelations/v1#Tuesday" /> <link itemprop="hasOpeningHoursDayOfWeek" href="http://purl.org/goodrelations/v1#Wednesday" /> <link itemprop="hasOpeningHoursDayOfWeek" href="http://purl.org/goodrelations/v1#Thursday" /> <link itemprop="hasOpeningHoursDayOfWeek" 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> # Part 2: Describing the offer to use it <div itemscope itemtype="http://schema.org/Offer" itemid="#offer_data"> <span property="name">Restroom usage: GBP 1 per flush</span> <span property="description">Using the super clean restroom usage is just 1 pound per flush</span> <link itemprop="http://purl.org/goodrelations/v1#hasBusinessFunction" href="http://purl.org/goodrelations/v1#LeaseOut" /> <link itemprop="http://purl.org/goodrelations/v1#availableAtOrFrom" href="#wc" /> Price: <div itemprop="http://purl.org/goodrelations/v1#hasPriceSpecification" itemscope itemtype="http://purl.org/goodrelations/v1#UnitPriceSpecification">GBP <span itemprop="hasCurrencyValue">1</span> <meta itemprop="hasCurrency" content="GBP"> <meta itemprop="hasUnitOfMeasurement" content="C62" > <time itemprop="validThrough" datetime="2012-12-31T23:59:59Z"></time> </div> </div> If the two descriptions are not inside the same document, you have to change <link itemprop="http://purl.org/goodrelations/v1#availableAtOrFrom" href="#wc" /> to <link itemprop="http://purl.org/goodrelations/v1#availableAtOrFrom" href="<URI of the page with the location markup>#wc" /> With a bit more of GoodRelations, you could also model that the usage is restricted to 15 minutes or which payment methods are accepted etc. Best Martin On Oct 27, 2011, at 11:26 AM, Andy Mabbett wrote: > Finding information about the availability of public toilets (aka > restrooms) is a vital part of journey-planning for many people, > especially those with certain types of disability/ illness; and > parents of young children. > > I am one of the authors of a schema for publishing CSV data about such > facilities: > > http://www.london.gov.uk/publication/public-toilets-london > > which re-uses vCard properties where possible. > > Would anyone be interested in reworking this for schema.org/ RDFa etc? > > Is there a template or toolkit, for creating a new schema from a > pre-existing model such as this? > > -- > Andy Mabbett > @pigsonthewing > http://pigsonthewing.org.uk -------------------------------------------------------- martin hepp e-business & web science research group universitaet der bundeswehr muenchen e-mail: hepp@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/ >
Received on Friday, 28 October 2011 08:16:46 UTC