https://github.com/digitalbazaar/json-ld
A Context-based JSON Serialization for Linked Data
https://github.com/digitalbazaar/json-ld
Last synced: 4 months ago
JSON representation
A Context-based JSON Serialization for Linked Data
- Host: GitHub
- URL: https://github.com/digitalbazaar/json-ld
- Owner: digitalbazaar
- Created: 2010-10-14T15:09:57.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-04-08T00:53:48.000Z (about 14 years ago)
- Last Synced: 2025-08-07T09:36:32.776Z (11 months ago)
- Language: Perl
- Homepage: http://json-ld.org/
- Size: 1.39 MB
- Stars: 26
- Watchers: 18
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
**NOTE**: This repository is old, please use the new one: https://github.com/json-ld/json-ld.org
----
Introduction
------------
JSON-LD (JavaScript Object Notation for Linked 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.
A Simple Example
----------------
A simple example of a JSON object with added semantics::
{
"#": {"foaf": "http://xmlns.com/foaf/0.1/"},
"@": "",
"a": "foaf:Person",
"foaf:name" : "John 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 Specification
-----------------
If you are a developer, you may be interested in the latest WebID specification:
http://json-ld.org/spec/latest/
A list of all previous specification drafts is also available.
http://json-ld.org/spec/