|GoodRelations is a standardized vocabulary for product, price, and company data that can be embedded into existing static and dynamic Web pages.|
This page is a stub and will be completed shortly.
Attaching an EAN/UPC Code to Offers or Products
You can use the gr:hasEAN_UCC-13 property to attach a 13-digit EAN/UCC code to either a an offer as a whole (instances of gr:Offering) or products or services contained in an offer. The latter can can be instances of
- gr:ProductOrServiceSomeInstancesPlaceholder, or
- The EAN·UCC-13 code is now officially called GTIN-13 (Global Trade Identifier Number).
- Former 12-digit UPC codes can be converted into EAN·UCC-13 code by simply adding a preceeding zero.
- When using this property for searching by 12-digit UPC codes, you must add a preceeding zero digit.
- As of January 1, 2007, the former ISBN numbers for books etc. have been integrated into the EAN·UCC-13 code. For each old ISBN-10 code, there exists a proper translation into EAN·UCC-13 by adding "978" or "979" as prefix. Since the old ISBN-10 is now deprecated, GoodRelations does not provide a property for ISBNs.
- When the gr:Offering a is not a bundle, i.e. contains only a single product or service, then you should attach the same gr:hasEAN_UCC-13 property to both the gr:Offering and the gr:ProductOrServiceSomeInstancesPlaceholder (or gr:ActualProductOrServiceInstance) instance. If the gr:Offering instance includes multiple items, the EAN/UPC code of the sales unit (the bundle) should be attached to the gr:Offering and the EAN/UPC codes of the individual items should be attached to the respective individual items.
Never use 10-digit ISBNs as the value for gr:hasEAN_UCC-13, because they are invalid. For the book shown above, "0387485309" (the ISBN-10) would be incorrect. You must use "9780387485300".
Example in RDFa:
Hepp Computertechnik Personal SCSI Controller Fast 16-Bit SCSI Controller for PCs
Example in RDF/XML:
<xml> <gr:ProductOrServicesSomeInstancesPlaceholder rdf:about="http://www.stalsoft.com/dip/bookmashup/books/0387485309">
<foaf:page rdf:resource="http://www.amazon.com/Semantic-Web-Real-World-Applications-Industry/dp/0387485309"/> <gr:hasEAN_UCC-13 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">9780387485300</gr:hasEAN_UCC-13> <rdfs:label>The Semantic Web: Real-World Applications from Industry (Semantic Web and Beyond)</rdfs:label> <rdfs:comment>The Semantic Web: Real-World Applications from Industry (Semantic Web and Beyond)</rdfs:comment>