Warning: This tool or project is no longer maintained and kept available only for archival purposes. Since GoodRelations and schema.org have evolved significantly in the past years, the current status available on this page is unlikely to function as expected. We take no responsibility for any damage caused by the use of this outdated work, to the extent legally possible.

Due to a lack of resources, we are unable to provide support for this project outside of consulting projects or sponsored research. Please contact us if you can contribute resources to update and enhance these resources.

GoodRelations - The Web Vocabulary for E-Commerce

This is the archive of the goodrelations dicussion list

GoodRelations is a standardized vocabulary for product, price, and company data that can (1) be embedded into existing static and dynamic Web pages and that (2) can be processed by other computers. This increases the visibility of your products and services in the latest generation of search engines, recommender systems, and other novel applications.

[goodrelations] Clarification between gr:amountOfThisGood and gr:hasInventoryLevel

Martin Hepp (UniBW) martin.hepp at ebusiness-unibw.org
Tue Jul 28 17:10:15 CEST 2009

Dear all:

Please keep in mind that there are two different GoodRelations 
properties that refer to quantities of items:

a) gr:amountOfThisGood and
b) gr:hasInventoryLevel

gr:amountOfThisGood is attached to gr:TypeAndQuantity nodes and 
indicates the quantity of the item included in the particular offer. In 
80% of the cases, this should be 1.0 ("1.0"^^xsd.float), because the 
price etc. is for one item. A value other than 1.0 is appropriate when 
you sell a bundle of items or use units of measurement other than 
"item/piece", e.g. selling

"100 tiles"
"500 g of butter", or
"1 camera + 2 memory sticks"

gr:hasInventoryLevel, on the contrary, can be used to indicate inventory 
levels. While gr:amountOfThisGood is an owl:DatatypeProperty, 
gr:hasInventoryLevel  is an owl:ObjectProperty with a range of 
gr:QuantitativeValueFloat, because this allows for using arbitrary units 
and also specifying ranges.

It can only be attached to instances of 

So if you want to indicate inventory levels, use gr: hasInventoryLevel 
in combination with an instance of gr:QuantitativeValueFloat.

*Example:* Assume you have 80 pieces of this controller card on stock. 
Then, use the following pattern:


foo:myProduct a gr:ProductOrServicesSomeInstancesPlaceholder;
   rdfs:label "Personal SCSI 16-bit SCSI Controller"@en ;
   gr:hasEAN_UCC-13 "00010363780"^^xsd:string ;
<http://www.heppnetz.de/searchmonkey/product.html#heppcomputer> ;
   rdfs:comment "This low-cost, high-performance SCSI controller allows 
you to connect up to seven professional mass-storage devices to your 
computer."@en ;
   rdfs:seeAlso <http://www.heppnetz.de/searchmonkey/product.html>, 
<http://www.heppnetz.de/searchmonkey/pscsi.jpg> ;
   foaf:depiction <http://www.heppnetz.de/searchmonkey/pscsi.jpg> ;
*   gr:hasInventoryLevel
       [ a gr:QuantitativeValueFoat;
         gr:hasValueFloat "80"^^xsd:float ;
         gr:hasUnitOfMeasurement "C62"^^xsd:string
       ] ;*


<div typeof="gr:ProductOrServicesSomeInstancesPlaceholder" 
     Product Name:
     <span property="rdfs:label">Personal SCSI 16-bit SCSI Controller</span>
     <span property="rdfs:comment">This low-cost, high-performance SCSI 
controller allows you to connect up to
     seven professional mass-storage devices to your computer.</span><br/>
     EAN/UPC code:
     <span property="gr:hasEAN_UCC-13" 
     <span rel="rdfs:seeAlso media:image foaf:depiction">
          <img src="http://www.heppnetz.de/searchmonkey/pscsi.jpg" 
alt="Product Image"/>
*     <span rel="gr:hasInventoryLevel>
          <span typeof="gr:QuantitativeValueFoat>
               <span property="gr:hasValueFloat" 
datatype="xsd:float">80</span> items on stock.
                <span property="hasUnitOfMeasurement" 
datatype="xsd:string" content="C62"/>


Martin Hepp

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

e-mail:  mhepp at computer.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!


Recipe for Yahoo SearcMonkey:

Talk at the Semantic Technology Conference 2009: 
"Semantic Web-based E-Commerce: The GoodRelations Ontology"

Overview article on Semantic Universe:

Project page:

Resources for developers:

Tutorial materials:
CEC'09 2009 Tutorial: The Web of Data for E-Commerce: A Hands-on Introduction to the GoodRelations Ontology, RDFa, and Yahoo! SearchMonkey 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ebusiness-unibw.org/pipermail/goodrelations/attachments/20090728/6a970b75/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: martin_hepp.vcf
Type: text/x-vcard
Size: 308 bytes
Desc: not available
URL: <http://ebusiness-unibw.org/pipermail/goodrelations/attachments/20090728/6a970b75/attachment.vcf>

More information about the goodrelations mailing list