GoodRelations-compliant data can be published in a variety of syntactial variants. The most popular choice is RDFa in HTML/XHTML Web content and RDF/XML for data dump files.
However, it is easily possible to use any of the following formats depending on your needs and middleware:
Below, please find simple examples for syntactical variants. We do not yet have those for OData and GData, but this is just because there is currently no tooling available to generate that automatically.
A lot of conversion work can be simplified using the following tools:
``
``
``
``
``
Hepp Space Ventures
Your preferred supplier for space adventures.
tbd, http://rdfa.digitalbazaar.com/specs/source/json-ld/
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://www.heppnetz.de/searchmonkey/#business> rdf:type gr:BusinessEntity ;
gr:legalName "Hepp Space Ventures" ;
rdfs:comment "Your preferred supplier for space adventures." ;
gr:offers <http://www.heppnetz.de/searchmonkey/#myoffer> .
<http://www.heppnetz.de/searchmonkey/#business> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/goodrelations/v1#BusinessEntity> .
<http://www.heppnetz.de/searchmonkey/#business> <http://purl.org/goodrelations/v1#legalName> "Hepp Space Ventures" .
<http://www.heppnetz.de/searchmonkey/#business> <http://www.w3.org/2000/01/rdf-schema#comment> "Your preferred supplier for space adventures." .
<http://www.heppnetz.de/searchmonkey/#business> <http://purl.org/goodrelations/v1#offers> <http://www.heppnetz.de/searchmonkey/#myoffer> .
Converted rdf to DataRSS data for Yahoo SearchMonkey
Converted RDF data from http://www.heppnetz.de/searchmonkey/
``
``
``
It is possible to represent GoodRelations data in OData syntax. Kingsley Idehen from OpenLink Software created the following example for the book "Beautiful Data" from Amazon.
Original:
Example:
OData Service and Descriptor Document
``
``http://linkeddata.uriburner.com/about/id/entity/http/www.amazon.com/o/ASIN/0596157118#Offer_1
``
``
``
``
``
``
``
Beautiful Data: The Stories Behind Elegant Data Solutions
``
``
``
``
``
``
``
``
``
``
``
``
``
``
``
It is possible to represent GoodRelations data in GData syntax, but we have not yet done this.