login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

JSON-LD (JavaScript Object Notation for Linking Data) is...
A simple example of a JSON object expressing Linked Data:
{
"@context": "http://json-ld.org/contexts/person.jsonld",
... ta-aware processors on how to interpret the JSON object.

JSON-LD - JSON for Linking Data
http://json-ld.org/

Categories

/Channels/techie/semantic web

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

JSON-LD (JavaScript Object Notation for Linking Data) is a lightweight Linked Data format that gives your data context. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on the already successful JSON format and provides a way to help JSON data interoperate at Web-scale. If you are already familiar with JSON, writing JSON-LD is very easy. These properties make JSON-LD an ideal Linked Data interchange language for JavaScript environments, Web service, and unstructured databases such as CouchDB and MongoDB.

A simple example of a JSON object expressing Linked Data:

{
  "@context": "http://json-ld.org/contexts/person.jsonld",
  "@id": "http://dbpedia.org/resource/John_Lennon",
  "name": "John Lennon",
  "born": "1940-10-09",
  "spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
}

The example above describes a person whose name is John Lennon. The difference between regular JSON and JSON-LD is that the JSON-LD object above uniquely identifies itself on the Web and can be used, without introducing ambiguity, across every Web site, Web service and JSON-based database in operation today. The secret lies in the @context, which instructs Linked Data-aware processors on how to interpret the JSON object.

HTML

<p>JSON-LD (<strong>J</strong>ava<strong>S</strong>cript <strong>O</strong>bject <strong>N</strong>otation for <strong>L</strong>inking <strong>D</strong>ata) is a lightweight <a href="http://en.wikipedia.org/wiki/Linked_data">Linked Data</a> format that gives your data context. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on the already successful <a href="http://json.org/">JSON format</a> and provides a way to help JSON data interoperate at Web-scale. If you are already familiar with JSON, writing JSON-LD is very easy. These properties make JSON-LD an ideal Linked Data interchange language for JavaScript environments, Web service, and unstructured databases such as CouchDB and MongoDB.</p> <p>A simple example of a JSON object expressing Linked Data:</p> <pre>{ "@context": "http://json-ld.org/contexts/person.jsonld", "@id": "http://dbpedia.org/resource/John_Lennon", "name": "John Lennon", "born": "1940-10-09", "spouse": "http://dbpedia.org/resource/Cynthia_Lennon" }</pre> <p>The example above describes a person whose name is <em>John Lennon</em>. The difference between regular JSON and JSON-LD is that the JSON-LD object above uniquely identifies itself on the Web and can be used, without introducing ambiguity, across every Web site, Web service and JSON-based database in operation today. The secret lies in the @context, which instructs Linked Data-aware processors on how to interpret the JSON object.</p>