Hotel

A hotel is an establishment that provides lodging paid on a short-term basis (Source: Wikipedia, the free encyclopedia, see http://en.wikipedia.org/wiki/Hotel).

See also the dedicated document on the use of schema.org for marking up hotels and other forms of accommodations.

Example eg-0358

Without Markup (source lint)

<h1>ACME Hotel Innsbruck</h1>
<span>A beautifully located business hotel right in the
heart of the alps. Watch the sun rise over the scenic Inn valley while
enjoying your morning coffee.</span>
  <span>Technikerstrasse 21</span>
  <span>6020</span>
  <span>Innsbruck</span>
  <span>Tyrol</span>,
  <span>Austria</span>
  </div>
  Phone: +43 512 8000-0
  <img src="../media/hotel_front.png" alt="Front view of the hotel" />
  Star rating: ****
  Room rates: $100 - $240
</div>

RDFa (source lint)

<div vocab="https://schema.org/" typeof="Hotel">
  <h1><span property="name">ACME Hotel Innsbruck</span></h1>
  <span property="description">A beautifully located business hotel right in the
heart of the alps. Watch the sun rise over the scenic Inn valley while
enjoying your morning coffee.</span>
  <div property="address" typeof="PostalAddress">
    <span property="streetAddress">Technikerstrasse 21</span>
    <span property="postalCode">6020</span>
    <span property="addressLocality">Innsbruck</span>
    <span property="addressRegion">Tyrol</span>,
    <span property="addressCountry">Austria</span>
  </div>
  Phone: <span property="telephone">+43 512 8000-0</span>
  <img property="photo" src="../media/hotel_front.png" alt="Front view of the hotel" />
  Star rating: <span property="starRating" typeof="Rating">
    <meta property="ratingValue" content="4">****</span>
  Room rates: <span property="priceRange">$100 - $240</span>
</div>

microdata (source lint)

<div itemscope itemtype="https://schema.org/Hotel">
  <h1><span itemprop="name">ACME Hotel Innsbruck</span></h1>
  <span itemprop="description">A beautifully located business hotel right in the
heart of the alps. Watch the sun rise over the scenic Inn valley while
enjoying your morning coffee.</span>
  <div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
    <span itemprop="streetAddress">Technikerstrasse 21</span>
    <span itemprop="postalCode">6020</span>
    <span itemprop="addressLocality">Innsbruck</span>
    <span itemprop="addressRegion">Tyrol</span>,
    <span itemprop="addressCountry">Austria</span>
  </div>
  Phone: <span itemprop="telephone">+43 512 8000-0</span>
  <img itemprop="photo" src="../media/hotel_front.png" alt="Front view of the hotel" />
  Star rating: <span itemprop="starRating" itemscope itemtype="https://schema.org/Rating">
    <meta itemprop="ratingValue" content="4">****</span>
  Room rates: <span itemprop="priceRange">$100 - $240</span>
</div>

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "Hotel",
    "name": "ACME Hotel Innsbruck",
    "description": "A beautifully located business hotel right in the heart of the alps. Watch the sun rise over the scenic Inn valley while enjoying your morning coffee.",
    "address": {
        "@type": "PostalAddress",
        "addressCountry": "AT",
        "addressLocality": "Innsbruck",
        "addressRegion": "Tyrol",
        "postalCode": "6020",
        "streetAddress": "Technikerstrasse 21"
    },
    "telephone": "+43 512 8000-0",
    "photo": "http://www.acme-innsbruck.at//media/hotel_front.png",
    "starRating": {
        "@type": "Rating",
        "ratingValue": "4"
    },
    "priceRange": "$100 - $240"
}</script>

structured

rdf:type schema:Hotel
schema:address
rdf:type schema:PostalAddress
schema:addressCountry AT
schema:addressLocality Innsbruck
schema:addressRegion Tyrol
schema:postalCode 6020
schema:streetAddress Technikerstrasse 21
schema:description A beautifully located business hotel right in the heart of the alps. Watch the sun rise over the scenic Inn valley while enjoying your morning coffee.
schema:name ACME Hotel Innsbruck
schema:photo http://www.acme-innsbruck.at//media/hotel_front.png
schema:priceRange $100 - $240
schema:starRating
rdf:type schema:Rating
schema:ratingValue 4
schema:telephone +43 512 8000-0

Example eg-0361

Without Markup (source lint)

<h1>ACME Hotel Innsbruck</h1>
  <img src="../media/logo.png" alt="hotel logo" />
  <span>A beautifully located business hotel right in the
heart of the alps. Watch the sun rise over the scenic Inn valley while
enjoying your morning coffee.</span>
  <img src="../media/hotel_front.png" alt="Front view of the hotel" />
</div>

RDFa (source lint)

This example is in microdata only.

microdata (source lint)

<div itemscope itemtype="https://schema.org/Hotel">
  <h1><span itemprop="name">ACME Hotel Innsbruck</span></h1>
  <img itemprop="logo" src="../media/logo.png" alt="hotel logo" />
  <span itemprop="description">A beautifully located business hotel right in the
heart of the alps. Watch the sun rise over the scenic Inn valley while
enjoying your morning coffee.</span>
  <img itemprop="photo" src="../media/hotel_front.png" alt="Front view of the hotel" />
</div>

JSON-LD (source lint)

This example is in microdata only.

structured

Example eg-0370

Without Markup (source lint)

A graphic novel book example.

See also https://github.com/daisy/epub-revision-a11y/wiki/ePub-3.1-Accessibility--Proposal-To-Schema.org

RDFa (source lint)

TODO

microdata (source lint)

TODO

JSON-LD (source lint)

<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Book",
  "name": "Some graphic novel",
  "accessMode": ["textual", "visual"],
  "accessModeSufficient": [
    {
      "@type": "ItemList",
      "itemListElement": ["textual", "visual"],
      "description": "Text and images"
    },
    {
      "@type": "ItemList",
      "itemListElement": ["textual"],
      "description": "Text with textual alternatives and descriptions for images"
    }
  ],
  "accessibilitySummary": "Visual elements are not described."
}
</script>

structured

rdf:type schema:Book
schema:accessMode
  • textual
  • visual
schema:accessModeSufficient
  • rdf:type schema:ItemList
    schema:description Text with textual alternatives and descriptions for images
    schema:itemListElement textual
  • rdf:type schema:ItemList
    schema:description Text and images
    schema:itemListElement
    • textual
    • visual
schema:accessibilitySummary Visual elements are not described.
schema:name Some graphic novel