GoodRelationsCodes
From Wiki of the E-Business and Web Science Research Group
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:ProductOrServiceModel,
- gr:ProductOrServiceSomeInstancesPlaceholder, or
- gr:ActualProductOrServiceInstance.
Notes:
- 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:
<div typeof="gr:Offering" xmlns:gr="http://purl.org/goodrelations/v1#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:media="http://search.yahoo.com/searchmonkey/media/" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:use="http://search.yahoo.com/searchmonkey-datatype/use/"> <!-- Add this --> <span property="gr:hasEAN_UCC-13">00010363780</span> <!-- Add this --> <div rel="gr:hasPriceSpecification"> <span property="gr:hasCurrencyValue">99.99</span> <span property="gr:hasCurrency">USD</span> </div> <div rel="gr:includesObject"> <span property="gr:amountOfThisGood" datatype="xsd:float">1.0</span> <div rel="gr:typeOfGood"> <div typeof="product:Product gr:ProductOrServicesSomeInstancesPlaceholder"> <span property="rdfs:label">Hepp Computertechnik Personal SCSI Controller</span> <span property="rdfs:comment">Fast 16-Bit SCSI Controller for PCs</span> <!-- Add this --> <span property="gr:hasEAN_UCC-13">00010363780</span> <!-- Add this --> </div> </div> </div> </div>
Example in RDF/XML:
<gr:ProductOrServicesSomeInstancesPlaceholder rdf:about="http://www.stalsoft.com/dip/bookmashup/books/0387485309"> <rdfs:seeAlso rdf:resource="http://www.amazon.com/Semantic-Web-Real-World-Applications-Industry/dp/0387485309"/> <!-- Add this --> <gr:hasEAN_UCC-13 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">9780387485300</gr:hasEAN_UCC-13> <!-- Add this --> <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> </gr:ProductOrServicesSomeInstancesPlaceholder>
