Book

From getSchema
Jump to: navigation, search

Name:
URL:

Supertypes

Subtypes

All Properties

Own Properties



This Page Semantic Annotations



Description

Description of a book.

Examples

Are you a librarian? Then you may consider to markup your books offer using Schema.org concepts. If you are a book seller then you have to consider your books as product. But it is possible to markup content as a Book and as a Product in the same time? The answer is positive. Try do do as in our second example. Check also official Schema.org book markup example.

You can see significant examples of using annotations on book pages on O'Reilly web site. For example, JavaScript: The Definitive Guide, Sixth Edition shows how GoodRelations classes and properties are used.

Below you can see an example using Schema.org. To simplify the code we cleaned up large parts which are not significant from the annotation point of view.

A book in a library

<div itemscope itemtype="http://schema.org/Book">
  <h1 itemprop="name">Around the World in Eighty Days</h1>  
    <div>
      <img src="http://en.wikipedia.org/wiki/File:Verne_Tour_du_Monde.jpg" 
        alt="First edition cover from 1873" itemprop="image"/>
      <a href="http://www.gutenberg.org/ebooks/103" itemprop="url">Read This Book Online</a>
    </div>
<table>
  <tr>
    <td>Author(s)</td>
    <td itemprop="author">
      <span itemid="http://en.wikipedia.org/wiki/Jules_Verne" itemscope itemtype="http://schema.org/Person"> 
        <a href="http://en.wikipedia.org/wiki/Jules_Verne" 
          title="Jules Verne" itemprop="url">
          <span itemprop="name">Jules Verne</span>
        </a>
      </span>
    </td>
  </tr>
 
  <tr>
    <td>Original title</td>
    <td>
      <em itemprop="name" lang="fr">Le tour du monde en quatre-vingts jours</em>
    </td>
  </tr>
 
  <tr>
   <td>Translator</td>
   <td itemid="http://en.wikipedia.org/wiki/George_Makepeace_Towle" itemscope itemtype="http://schema.org/Person">
     <a href="http://en.wikipedia.org/wiki/George_Makepeace_Towle" 
       title="Jules Verne" itemprop="url">
      <span itemprop="name">George Makepeace Towle</span>
     </a>
   </td>
  </tr>
 
  <tr>
    <td>Illustrator</td>
    <td>
      <ul>
        <li itemprop="illustrator">
          <span itemid="http://en.wikipedia.org/wiki/Alphonse-Marie-Adolphe_de_Neuville" 
                itemscope itemtype="http://schema.org/Person">
            <a href="http://en.wikipedia.org/wiki/Alphonse-Marie-Adolphe_de_Neuville" 
            title="Alphonse-Marie-Adolphe de Neuville" itemprop="url">
            <span itemprop="name">Alphonse-Marie-Adolphe de Neuville</span></a>
          </span>
        </li>
        <li itemprop="illustrator">
          <span itemid="http://en.wikipedia.org/wiki/L%C3%A9on_Benett" itemscope itemtype="http://schema.org/Person">
            <a href="http://en.wikipedia.org/wiki/L%C3%A9on_Benett" 
            title="Léon Benett">
          <span itemprop="name">Léon Benett</span></a>
          </span>
        </li>
      </ul>
    </td>
  </tr>
 
  <tr>
    <td>Country</td>
    <td><a href="http://en.wikipedia.org/wiki/France" title="France">France</a>
    </td>
  </tr>
 
  <tr>
    <td>Language</td>
    <td itemprop="inLanguage" content="fr en de sp">
      <a href="http://en.wikipedia.org/wiki/French_language" 
       title="French language">French</a>, ...
    </td>
  </tr>
 
  <tr>
   <td>Series</td>
   <td>The Extraordinary Voyages</td>
  </tr>
 
  <tr>
    <td>Genre(s)</td>
    <td>
      <meta itemprop="genre" content="adventure novel"/>
      <a href="http://en.wikipedia.org/wiki/Adventure_novel" title="Adventure novel">Adventure novel</a>
    </td>
  </tr>
 
  <tr>
   <td>Publisher</td>
   <td itemid="http://en.wikipedia.org/wiki/Pierre-Jules_Hetzel" itemscope itemtype="http://schema.org/Organization">
     <a itemprop="url" 
      href="http://en.wikipedia.org/wiki/Pierre-Jules_Hetzel" title="Pierre-Jules Hetzel">
     <span itemprop="name">Pierre-Jules Hetzel</span>
    </a>
   </td>
  </tr>
 
  <tr>
    <td>Publication date</td>
    <td itemprop="datePublished" content="1873-01-30">January 30, 1873</td>
  </tr>
 
  <tr>
    <td>Published in English</td>
    <td>1873</td>
  </tr>
  <tr>
    <td>Preceded by</th>
    <td>
      <em>
        <a href="http://en.wikipedia.org/wiki/The_Fur_Country" title="The Fur Country">The Fur Country</a>
      </em>
    </td>
  </tr>
 
  <tr>
    <td>Followed by</td>
    <td>
      <em>
        <a href="http://en.wikipedia.org//wiki/The_Mysterious_Island" title="The Mysterious Island">
        The Mysterious Island
        </a>
      </em>
    </td>
  </tr>
</table>
</div>

If you may have readers reviews you want to show then you have to appropriately add (inside the Book scope) some of them

<div itemprop="reviews">
  <div itemscope itemtype="http://schema.org/Review">
    <span itemprop="name">book review - Around the World in Eighty Days </span> - by 
    <span itemprop="author">
      <span itemscope="http://schema.org/Person">
        <a href="http://insidebooks.blogspot.com/2007/08/book-of-books-around-world.html"
          itemprop="url">Inside Books</a>
      </span>
    </span>,
    <span itemprop="datePublished" content="2007-08-26">Sunday, August 26, 2007</span>
  <div itemprop="reviewRating">
    <span itemscope itemtype="http://schema.org/Rating">
      <span itemprop="ratingValue">5</span>/
      <span itemprop="bestRating">5</span>stars
    </span>
  </div>
  <div itemprop="description">
   This is a great book and comes from a writer with a solid canon of pacey adventure 
   stories. But what you miss in the film and cartoon versions is the sheer scale of 
   the effort of Jules Verne’s vision. He must have sat there with maps, guide books 
   and numerous steamer and train timetables to be able not only to map the journey 
   round the world but also factor in the numerous diversions that Phileas Fogg and 
   company have to take.
  </div>
  <div itemscope itemtype="http://schema.org/Review">
   ...
  </div>
</div>

A Book sold with many offers

<div itemscope itemtype="http://schema.org/Book" id="MyTerribleBook">
   <h1 itemprop="name">The Catcher in the Rye</h1>
   <div itemprop="offers">
     <div itemscope itemtype="http://schema.org/Offer" id="Offer1">
      <div itemprop="itemOffered" itemscope itemtype="http://schema.org/Book" itemref="MyTerribleBook">
         <link itemprop="bookFormat" href="http://schema.org/Hardcover"/>Hardcover,
         <span itemprop="numberOfPages">234</span> pages - 
      </div>
      <meta itemprop="priceCurrency" content="USD" />$<span itemprop="price">4.99</span>  
     </div>
     <div itemscope itemtype="http://schema.org/Offer" id="Offer2">
      <div itemprop="itemOffered" itemscope itemtype="http://schema.org/Book" itemref="MyTerribleBook">
         <link itemprop="bookFormat" href="http://schema.org/Paperback"/>Softcover,
         <span itemprop="numberOfPages">321</span> pages - 
      </div>
       <meta itemprop="priceCurrency" content="USD" />$<span itemprop="price">2.99</span>
   </div>
  </div>
   <div>by <span itemprop="author">J.D. Salinger</span></div>
   <div itemprop="bookEdition">2nd Edition</div>
</div>

See also the group discussion at [1].

Designing Infobox book Wikipedia template to support Schema.org

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox