W3C home > Mailing lists > Public > public-vocabs@w3.org > January 2012

Re: Microdata for products: weight, height, length, depth

From: Martin Hepp <martin.hepp@ebusiness-unibw.org>
Date: Tue, 24 Jan 2012 00:51:35 +0100
Cc: public-vocabs@w3.org
Message-Id: <3D326B4F-C652-4294-AAB9-B03052071836@ebusiness-unibw.org>
To: François <francois.x.hetu@gmail.com>
Hi Francois,

simple use the GoodRelations properties


in combination with schema.org - as shown below:

<div itemscope itemtype="http://schema.org/Product" itemid="#model">
  <span itemprop="name">ACME Electric Anvil</span>
  Weight: <div itemprop="http://purl.org/goodrelations/v1#weight" itemscope 
      <span itemprop="hasValue">50</span> kg
      <meta itemprop="hasUnitOfMeasurement" content="KGM" >
  Width: <div itemprop="http://purl.org/goodrelations/v1#width" itemscope 
      <span itemprop="hasValue">10</span>
      <meta itemprop="hasUnitOfMeasurement" content="CMT" > cm
  Depth: <div itemprop="http://purl.org/goodrelations/v1#depth" itemscope 
      <span itemprop="hasValue">30</span>
      <meta itemprop="hasUnitOfMeasurement" content="CMT" > cm
  Height: <div itemprop="http://purl.org/goodrelations/v1#height" itemscope 
      <span itemprop="hasValue">20</span>
      <meta itemprop="hasUnitOfMeasurement" content="CMT" > cm

The example is from:


Instead of CMT for centimeters, you can use any UN/CEFACT code, e.g. INH for inches etc.
Same for the weight

On Jan 22, 2012, at 5:06 PM, François wrote:

> Hello,
> How could I go about describing a product's physical dimensions using microdata: weight, height, length, depth?
> An exemple, using my markup, would certainly help:
> <div itemscope itemtype="http://schema.org/Product">
>     <div itemprop="name">Product name</div>
>     <div itemprop="description">Product description</div>
>     <img itemprop="image" alt="Product name" title="Product name" src="src.jpg" />
>     <div itemprop="brand" itemscope itemtype="http://schema.org/Organization">
>         <div itemprop="name">Brand name</div>
>         <img itemprop="image" alt="Brand name" title="Brand name" src="logo_brand.jpg" />
>     </div>
>     <div itemprop="manufacturer" itemscope itemtype="http://schema.org/Organization">
>         <div itemprop="name">Company name</div>
>         <meta itemprop="url" content="http://company_domain.com" />
>         <img itemprop="image" alt="Company name" title="Company name" src="logo.jpg" />
>     </div>
>     <div itemprop="model">Product model</div>
>     <meta itemprop="productID" content="123-456-789" />
>     <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
>         <div itemprop="price">10.00</div>
>         <link itemprop="availability" href="http://schema.org/InStock" />
>         <meta itemprop="priceCurrency" content="USD" />
>     </div>
> </div>
> I was looking at the Intangible class (Quantity -> Distance, Mass) to describe a particular product's physical attributes, but could not be positive about how to do so, if even it is the proper way.
> Any help welcome.
> Thank you,
> -- 
> François

martin hepp
e-business & web science research group
universitaet der bundeswehr muenchen

e-mail:  hepp@ebusiness-unibw.org
phone:   +49-(0)89-6004-4217
fax:     +49-(0)89-6004-4620
www:     http://www.unibw.de/ebusiness/ (group)
         http://www.heppnetz.de/ (personal)
skype:   mfhepp 
twitter: mfhepp

Check out GoodRelations for E-Commerce on the Web of Linked Data!
* Project Main Page: http://purl.org/goodrelations/
Received on Monday, 23 January 2012 23:52:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:48:44 UTC