When used with Schema.org JSON-LD is ... just JSON?

September 21, 2014 4:58:38 PM by
was introduced as a serialization of Linked Data and became W3C recommendation in January 2014. Before JSON-LD other JSON formats were developed, notably RDF-JSON. But what it really means JSON-LD when one uses ONLY Schema.org vocabulary?

Compare yourself:

JSON-LD:

  {    "@context":    {      "name": "http://schema.org/name",  ← This means that 'name' is shorthand for 'http://schema.org/name'       "image": {        "@id": "http://schema.org/image",  ← This means that 'image' is shorthand for 'http://schema.org/image'         "@type": "@id"  ← This means that a string value associated with 'image' should be interpreted as an identifier that is an IRI       },      "homepage": {        "@id": "http://schema.org/url",  ← This means that 'homepage' is shorthand for 'http://schema.org/url'         "@type": "@id"  ← This means that a string value associated with 'homepage' should be interpreted as an identifier that is an IRI       }    }    "name": "Manu Sporny",    "homepage": "http://manu.sporny.org/",    "image": "http://manu.sporny.org/images/manu.png"  }  

The standard JSON:

  [   {    "http://schema.org/WebPage":     {     "http://schema.org/name": "Manu Sporny",     "http://schema.org/url":"http://manu.sporny.org/",     "http://schema.org/image": "http://manu.sporny.org/images/manu.png"     }   }  ]  

It is obvious that you can add typing information (however, remember JSON was intended to be "schema free" contrary to XML messages) by using http://schema.org/Class and EVENTUALLY adopt RDF typed literals notation for datatypes e.g., "Manu Sporny"^^""http://schema.org/Text

  [   {     "http://schema.org/Class": "http://schema.org/WebPage",     "http://schema.org/name": "Manu Sporny",     "http://schema.org/url":"http://manu.sporny.org/",     "http://schema.org/image": "http://manu.sporny.org/images/manu.png"   }  ]  

However, it is debatable why would one need to add typing information, and by consequence increase the size of data, when a Schema.org consumer will already be aware of the Schema.org vocabulary?

Interested in Schema.org? Check our wiki: http://www.getschema.org