Last active
April 30, 2016 10:06
-
-
Save daarom/4c25557609ac1735ab71 to your computer and use it in GitHub Desktop.
Hotel (TLE) reservation schema Travel agency & LeaseOut
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
<!-- http://ontologies.sti-innsbruck.at/acco/ns.html --> | |
<!-- whether the "a" property comes before the "b" property or not is not important: --> | |
<!-- http://www.w3.org/TR/microdata/ --> | |
<!-- Usually the header of the website holds the website publishers logo and url to the homepage --> | |
<div><span id="daaromlogo"> | |
<img itemprop="logo" src="http://www.example.com/daarom-logo.png" /> | |
<a itemprop="url" href="http://www.example.com/">Homepage</a> | |
</span></div> | |
<!-- end of the header properties --> | |
<!-- the hotel is the top level entity, so we get a rich snippet - chain back to offer --> | |
<div itemscope itemtype="http://schema.org/hotel" itemref="hoteltle"> | |
<h1> | |
<a itemprop="url" href="http://example.com/paradise-hotel" title> | |
<span itemprop="name">Paradise Hotel</span> | |
</a> | |
</h1> | |
<img itemprop="logo" src="http://example.com/img/logo.jpg" alt="Paradise hotel logo" title width="60" height="60" /> | |
<p itemprop="description">Enjoy a perfect holiday at the Paradise Hotel, the most beautiful hotel in Paradise!</p> | |
<img itemprop="image" src="http://example.com/img/paradise-view.jpg" alt="Beautiful Paradise hotel" > | |
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
<span itemprop="streetAddress">123 boulevard</span><br> | |
<span itemprop="postalCode">1234aa</span> - <span itemprop="addressLocality">Paradise</span><br> | |
<span itemprop="addressRegion">Bergen</span><br> | |
<span itemprop="addressCountry">Norway</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 itemid="#Offer" itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer"> | |
<link itemprop="seller" href="#travelagency" /> | |
</div> | |
<!-- /Reservation Details --> | |
<div itemid="#ProductService" itemprop="itemOffered" itemscope itemtype="http://schema.org/LodgingReservation"> | |
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/LodgingBusiness" id="hoteltle"> | |
<!-- I choose not to use /Hotel because there will also be hostels, motels etc that can be booked --> | |
<!-- excluded still would be accomodations like appartments or campground places - suggest to add in schema --> | |
<!-- is this concidered an infinite loop? --> | |
</div> | |
<link itemprop="provider" href="#HotelChainX" /> | |
<p> | |
<img itemprop="image" src="http://example.org/hotel-chain-x.jpg" alt="Hotel Chain X" title width="120" height="120" /> | |
<br /> | |
Service Type: <span itemprop="name serviceType">Hotel Chain X</span> | |
</p> | |
<p itemprop="description"> | |
This Hotel Chain X is a luxury hotel brand with many hotels all over the world | |
</p> | |
<time itemprop="checkinTime" datetime="2014-11-05T08:30:00-08:00"/> | |
<time itemprop="checkoutTime" datetime="2014-11-09T08:30:00-08:00"/> | |
</div> | |
</div> | |
</div> | |
<!-- end of hotel declaration --> | |
<!-- Seller Details - this travelagency offers reservations for accomodation like hotels --> | |
<div itemid="#travelagency" itemscope itemtype="http://schema.org/TravelAgency" itemref="daaromlogo"> | |
<h2 itemprop="name">Daarom inc. - Online travelagency</h2> | |
<div itemid="#BusinessFunction" itemprop="businessFunction" itemscope itemtype="http://schema.org/BusinessFunction"> | |
<link itemprop="url" href="http://purl.org/goodrelations/v1#LeaseOut" /> | |
</div> | |
<div itemid="#ProductService" itemprop="itemOffered" itemscope itemtype="http://schema.org/Product http://schema.org/LodgingReservation"> | |
</div> | |
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
My address: | |
<span itemprop="streetAddress">Weteringkade</span> | |
<span itemprop="postalCode">1235aa</span> | |
<span itemprop="addressLocality">Noordwijk</span> | |
<meta itemprop="addressCountry" content="NL"><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> | |
<br><br> | |
<!-- end of seller declaration --> | |
<!-- Reviews of the hotel - usually reviews are somewhere else, not in the scope of the TLE div--> | |
<div id="hotelreviews"> | |
<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