Last active
August 29, 2015 14:10
-
-
Save daarom/ab0f209688c7fb0ebc66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- https://www.w3.org/wiki/File:ProviderSellerVocabularyRe-DesignProposal.pdf --> | |
<div><span id="company-logo"> | |
<img itemprop="logo" src="http://www.example.com/logo.png" /> | |
<a itemprop="url" href="http://www.example.com/">Homepage</a> | |
</span></div> | |
<!-- top level entity: hotel > offer > seller > travelagency --> | |
<!-- hotel Details --> | |
<div itemscope itemtype="http://schema.org/Hotel" itemref="hotel-reviews"> | |
<!-- many travelsites offer reservations of hotels and motels, but also campground locations or appartments. --> | |
<!-- should http://schema.org/LodgingBusiness be expanded? --> | |
<h1 itemprop="name">Vincents Paradise hotel</h1> | |
<p itemprop="description">Enjoy a perfect holiday at Vincrent's Paradise, the most beautiful hotel in Paradise!</p> | |
<img itemprop="image" src="http://example.com/paradise-view.jpg" alt="Beautiful Paradise Hotel" > | |
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
<span itemprop="streetAddress">Boulevard 123</span> | |
<span itemprop="postalCode">F-75002</span> | |
<span itemprop="addressLocality">Paris, France</span><br> | |
Tel:<span itemprop="telephone"> 001 12 34 56 00 </span>, | |
Fax:<span itemprop="faxNumber">001 12 34 46 01 </span>, | |
E-mail: <span itemprop="email">vincent(at)example.com</span> | |
</div> | |
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | |
Rated <span itemprop="ratingValue">3.5</span>/5 | |
based on <span itemprop="reviewCount">11</span> customer reviews | |
</div> | |
</div> | |
<!-- /hotel Details --> | |
<!-- what is offered by the seller? a reservation at a the hotel/top level entity --> | |
<div itemscope itemtype="http://schema.org/Offer" id="makes-offer"> | |
<link itemprop="seller" href="travelagency"> | |
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/LodgingReservation"> | |
<time itemprop="checkinTime" datetime="2014-11-05T08:30:00-08:00"/> | |
<time itemprop="checkoutTime" datetime="2014-11-09T08:30:00-08:00"/> | |
</div> | |
</div> | |
<!-- end of LodgingReservation --> | |
<!-- Seller of the LodgingReservation would be the online Travelagency - booking website --> | |
<div id="travelagency" itemscope itemtype="http://schema.org/TravelAgency" itemref="company-logo makes-offer"> | |
<h2 itemprop="name">Daarom inc. - Online reisaanbieder</h2> | |
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
Mijn address: | |
<span itemprop="streetAddress">Weteringkade</span> | |
<span itemprop="postalCode">1235aa</span> | |
<span itemprop="addressLocality">Amsterdam, Netherlands</span><br> | |
Tel:<span itemprop="telephone"> 001 12 34 56 00 </span>, | |
Fax:<span itemprop="faxNumber">001 12 34 46 01 </span>, | |
E-mail: <span itemprop="email">vincent(at)example.com</span> | |
</div> | |
</div> | |
<!-- /end of seller --> | |
<!-- usually reviews are somewhere else to, connect via ref & id --> | |
<div id="hotel-reviews"> | |
<h3>Customer reviews:</h3> | |
<div itemprop="review" itemscope itemtype="http://schema.org/Review"> | |
<span itemprop="name">Not a happy camper</span> - | |
by <span itemprop="author">Ellie</span>, | |
<meta itemprop="datePublished" content="2014-04-01">April 1, 2014 | |
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> | |
<meta itemprop="worstRating" content = "1"> | |
<span itemprop="ratingValue">1</span>/ | |
<span itemprop="bestRating">5</span>stars | |
</div> | |
<span itemprop="description">The place was dirty! I had to clean | |
it myself Booh! </span> | |
</div><br> | |
<div itemprop="review" itemscope itemtype="http://schema.org/Review"> | |
<span itemprop="name">Value purchase</span> - | |
by <span itemprop="author">Lucas</span>, | |
<meta itemprop="datePublished" content="2014-03-25">March 25, 2014 | |
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> | |
<meta itemprop="worstRating" content = "1"/> | |
<span itemprop="ratingValue">4</span>/ | |
<span itemprop="bestRating">5</span>stars | |
</div> | |
<span itemprop="description">I love this place.</span> | |
</div> | |
</div> | |
<!-- end of /reviews island --> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment