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


  • 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:



  ``The Semantic Web: Real-World Applications from Industry (Semantic Web and Beyond)``
  ``The Semantic Web: Real-World Applications from Industry (Semantic Web and Beyond)``