Standard microdata (schema.org/Product) format for E-commerce Products

<!--
-----------------------------------------------------------------------------------------------
 This simple template is to help you understand precise implmentation of Schema.org rules 
-----------------------------------------------------------------------------------------------
-->
<!-- BreadCrumb -->
  <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="display: inline;">
    <a href="http://www.example.com/dresses" itemprop="url">
   <span itemprop="title">Category One</span>
    </a> ›
  </div>  
  <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="display: inline;">
    <a href="http://www.example.com/dresses/real" itemprop="url">
   <span itemprop="title">Category Two</span>
    </a> ›
  </div>  
  <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="display: inline;">
    <a href="http://www.example.com/clothes/dresses/real/green" itemprop="url">
   <span itemprop="title">Category Three</span>
    </a>
  </div>

<!-- schema.org/Product Implementation -->
<div itemscope itemtype="http://schema.org/Product">

<!-- URL and NAME-->
<a itemprop="url" href="http://mail.clubkingmail.co.uk/clubking/scheme/scheme.html">
    <div itemprop="name"><h1>Name of Product</h2></div>
</a>


<!--Image -->
<img itemprop="image" src="images/name_of_product_with_underscore_as_space.jpg" alt="Name of Product" />
<br/>
<!-- Scope schema.org/Offer -->
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" >
     <div>Price: <span itemprop="priceCurrency" content="GBP">£</span><span itemprop="price">55.00</span></div>
     <div>Availibility: <span><link itemprop="availability" href="http://schema.org/InStock" />In stock</span></div>
     <div>Condition: <span><link itemprop="itemCondition" href="http://schema.org/NewCondition" /> New</span></div>
     <div>Code: <span itemprop="sku" />0001</span></div>
     
     <!-- Category --><meta itemprop="category" content="Category Name" />
     
     <link itemprop="acceptedPaymentMethod" href="http://purl.org/goodrelations/v1#PaymentMethodCreditCard" />
     <link itemprop="acceptedPaymentMethod" href="http://purl.org/goodrelations/v1#VISA" /> 
     <link itemprop="acceptedPaymentMethod" href="http://purl.org/goodrelations/v1#MasterCard" />
     <link itemprop="acceptedPaymentMethod" href="http://purl.org/goodrelations/v1#PayPal" />   
     <link itemprop="acceptedPaymentMethod" href="http://purl.org/goodrelations/v1#GoogleCheckout" />
    </div>
<div style="clear:both;"></div>    
<!--End of Scope schema.org/Offer -->

<!-- Description -->
<h2> Description </h2>
<hr>
<span itemprop="description">Unique detailed Description to easily crawl google on item content.</span>

<h2> Specification </h2>
<hr>
<!-- Organisation --> 
  <div>Brand: <span itemprop="brand" href="http://schema.org/Organization"/>Maggi</span></div>
  <div>Manufacturer: <span itemprop="manufacturer" href="http://schema.org/Organization"/>Nestle</span></div>
 
<!-- Quantitative Value -->
  <div>Depth: <span itemprop="depth" href="http://schema.org/QuantitativeValue"/>10 cm</span></div>
  <div>Width: <span itemprop="width" href="http://schema.org/QuantitativeValue"/>10 cm</span></div>
  <div>Height: <span itemprop="height" href="http://schema.org/QuantitativeValue"/>10 cm</span></div>
  <div>Weight: <span itemprop="weight" href="http://schema.org/QuantitativeValue"/>10 Kg</span></div>
  
<h2> Reviews </h2>
<hr>
<!-- Scope Schema.org/AggregateRating-->
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    
     <img id="starImage" alt="Overall Rating" src="http://ak1.ostkcdn.com/img/mxc/stars4_6.gif"/>
     
     Rating    
     <span itemprop="ratingValue">
      4.6
     </span>
           
     <span itemprop="reviewCount">
            185
     </span> 
     reviews      
          
    </div>
    
<!-- End of Scope Schema.org/AggregateRating-->

<!-- User Review -->
<h3>User 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="2011-04-01">April 1, 2011
    <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 lamp burned out and now I have to replace
    it. </span>
  </div>

  <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="2011-03-25">March 25, 2011
    <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">Great microwave for the price. It is small and
    fits in my apartment.</span>
  </div>
  <!-- End of User Review -->

Preview


Google Rich Snippet Data

Extracted structured data
Item 
type:http://data-vocabulary.org/breadcrumb
property:
url:Category One
title:Category One
Item 
type:http://data-vocabulary.org/breadcrumb
property:
url:Category Two
title:Category Two
Item 
type:http://data-vocabulary.org/breadcrumb
property:
url:Category Three
title:Category Three
Item 
type:http://schema.org/product
property:
url:Name of Product
name:Name of Product
image:http://websrc.tk/images/name_of_product_with_underscore_as_space.jpg
offers:
Item 1
description:Unique detailed Description to easily crawl google on item content.
brand:Maggi
manufacturer:Nestle
depth:10 cm
width:10 cm
height:10 cm
weight:10 Kg
aggregaterating:
Item 2
review:
Item 3
review:
Item 4
Item 1
type:http://schema.org/offer
property:
price:£ 55.00
availability:http://schema.org/InStock
itemcondition:http://schema.org/NewCondition
sku:0001
category:Category Name
acceptedpaymentmethod:http://purl.org/goodrelations/v1#PaymentMethodCreditCard
acceptedpaymentmethod:http://purl.org/goodrelations/v1#VISA
acceptedpaymentmethod:http://purl.org/goodrelations/v1#MasterCard
acceptedpaymentmethod:http://purl.org/goodrelations/v1#PayPal
acceptedpaymentmethod:http://purl.org/goodrelations/v1#GoogleCheckout
Item 2
type:http://schema.org/aggregaterating
property:
ratingvalue:4.6
reviewcount:185
Item 3
type:http://schema.org/review
property:
name:Not a happy camper
author:Ellie
datepublished:2011-04-01
reviewrating:
Item 5
description:The lamp burned out and now I have to replace it.
Item 5
type:http://schema.org/rating
property:
worstrating:1
ratingvalue:1
bestrating:5
Item 4
type:http://schema.org/review
property:
name:Value purchase
author:Lucas
datepublished:2011-03-25
reviewrating:
Item 6
description:Great microwave for the price. It is small and fits in my apartment.
Item 6
type:http://schema.org/rating
property:
worstrating:1
ratingvalue:4
bestrating:5

Check Live Example of Results here

Comments

Popular posts from this blog

Switching from Notepad++ FTP to Visual Studio Code FTP

jTable to edit and process MySQL table using CodeIgnitor : Part 2

Simple PHP Script to read Tab Delimited File