GoodRelationsMicroData

The preferred syntax for publishing GoodRelations rich meta-data on products, companies, and offers are RDFa or RDF/XML. Recently, the HTML5 Microdata Specification has become available and provides an additional syntax that may have advantages in HTML4 and HTML5 mark-up. While RDFa works with most HTML5 markup, it's most suited for XHTML 1.x code, because the "lazy parsing" mode required for extracting RDF from RDFa embedded in HTML that is not well-formed can return invalid meta-data.

On this page, we will show some experiments on using GoodRelations in HTML5 Microdata syntax.

Important Note:The status of Microdata is still unclear, the tool support is weak and alpha stage. At this point, it is strongly recommended to use the official W3C RDFa syntax for embedding GoodRelations rich meta-data into non-toy projects.

Examples

Hepp Space Ventures

Your preferred supplier for space adventures.

Hot deal: 16-bit SCSI Controller``

Using http://foolip.org/microdatajs/live/, one can extract proper RDF in Turtle:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.heppnetz.de/searchmonkey/#business>
  rdf:type <http://purl.org/goodrelations/v1#BusinessEntity> ;
  <http://purl.org/goodrelations/v1#legalName> "Hepp Space Ventures" ;
  <http://www.w3.org/2000/01/rdf-schema#comment> "Your preferred supplier for space adventures." ;
  <http://purl.org/goodrelations/v1#offers> <http://www.heppnetz.de/searchmonkey/#myoffer> .


Tools

Limitations

  • missing support for datatypes(?)
    • could maybe be inferred from the GoodRelations range specifications by simple heuristics
  • no CURIEs for predicates(?)

Resources