JSON for Linked Data
Clone or download
davidlehn and msporny Update jsonld-signatures.
- Use updated version on dev playground. Old version on main playground
  due to 1.1 feature usage.
- Use context api from jsigs. This uses v2 for newer versions.
- Add temporary fix for json-ld 1.1 support.
- Use CDN for jsonld-signatures.
Latest commit a51f463 Sep 22, 2018
Permalink
Failed to load latest commit information.
contexts Update term for "born" and "died" to be xsd:date not xsd:dateTime, th… Sep 4, 2018
examples Added script to extract examples and do basic checking to look for du… Jan 27, 2018
fonts Updated UI and look and feel of the site. Jul 9, 2011
images Change many http links to https. Oct 31, 2017
ns Merge expanded-flattened and compacted-flattened profile URIs into fl… Apr 5, 2013
playground-dev Update jsonld-signatures. Sep 22, 2018
playground Update jsonld-signatures. Sep 22, 2018
presentations/JSON-LD-Update-TPAC-2017 Slides for JSON-LD update at W3C TPAC Nov 9, 2017
primer Whitespace fixes. Oct 31, 2017
requirements Use HTTPS URLs in headers for primer and requirements. Jul 24, 2017
schemas Add `@language` to valid `@container` enums. Oct 12, 2017
scripts Added script to extract examples and do basic checking to look for du… Jan 27, 2018
spec Cleanup whitespace Sep 5, 2018
static Switch Josefin Sans to Roboto. Sep 16, 2014
test-suite fix after comment from @gkellog Jul 11, 2018
utils Change many http links to https. Oct 31, 2017
.gitignore Add developmenet playground location. Jan 26, 2018
.htaccess Move vocab htaccess to test-suite directory. Aug 24, 2013
.travis.yml Added script to extract examples and do basic checking to look for du… Jan 27, 2018
CONTRIBUTING.md Add contributing file Jan 20, 2017
Gemfile Added script to extract examples and do basic checking to look for du… Jan 27, 2018
Gemfile.lock Update Ruby dependencies to address vulnerabilities. May 16, 2018
LICENSE.md Update main site license to use [W3C Software and Document License](h… Jan 9, 2018
README.rst Change many http links to https. Oct 31, 2017
Rakefile Added script to extract examples and do basic checking to look for du… Jan 27, 2018
earl.jsonld Update EARL report with Markus' results. May 2, 2013
favicon.ico Add JSON-LD icons. Feb 26, 2013
index.html Add RDFa bits to the implementation cards Aug 10, 2018
learn.html Slides for JSON-LD update at W3C TPAC Nov 9, 2017
site.css Remove link to logo contest from homepage, deadline was on Sunday Mar 27, 2013

README.rst

Introduction

Join the chat at https://gitter.im/json-ld/json-ld.org

JSON-LD (JavaScript Object Notation for Linking Data) is a lightweight Linked Data format. 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. There is a smooth migration path from the JSON you use today, to the JSON-LD you will use in the future. These properties make JSON-LD an ideal Linked Data interchange language for JavaScript environments, Web services, and unstructured databases such as CouchDB and MongoDB.

If you are already using JSON-LD, add yourself to the list of users in our wiki.

A Simple Example

A simple example of a JSON object with added semantics:

{
  "@context": "https://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 services and databases in operation today.

The Playground

If you would like to play around with JSON-LD markup, you may do so here:

https://json-ld.org/playground/

The Specification

If you are a developer, you may be interested in the official JSON-LD W3C specifications:

A list of all previous specification drafts is also available.

https://json-ld.org/spec/