Search code examples
htmlrdfrdfsrdfavocabulary

RDF structure for online shopping product


What is rdf code and vocabulary for product list in online shopping website (html/html5) :

For google and other search engine

  <div class="product-list">

    <div class="item">
      <div class="product-name">PHP</div>
      <div class="product-type">Book</div>
      <div class="product-author"></div>
      <div class="product-price">11$</div>
      <div class="product-restriction-age">8-99</div>
      <div class="product-language">en</div>
      <div class="product-page-count">300</div>
      <div class="product-rate">4/10</div>
      <div class="product-size">154MB</div>
      <div class="product-download-count">2000</div>
      <div class="product-date">2014/04/10</div>
      <div class="product-isbn"></div>
   </div>

  <div class="item">

       ......

   </div>

  </div>

Thank you


Solution

  • The search engines from Google, Microsoft, Yahoo and Yandex sponsor the vocabulary Schema.org, which can be used (and is defined) with HTML+RDFa.

    This vocabulary provides suitable types for your case, like Product and Offer (both based on the GoodRelations vocabulary).

    Of course each search engine decides which types to support for which use case. See for example Google’s documentation for their Products rich result.