• More features defined in the syntax
specification*:
• Ordered Lists, Compact IRIs, Unlabeled
Nodes, Reverse Properties, Language
Maps, Data Indexing
• Embedded @context definitions
• Datasets/Named Graphs
* http://www.w3.org/TR/json-ld/
Language Principles
Wednesday, August 7, 13
It’s just JSON
{
"verb":
"post",
"published":
"2011-‐02-‐10T15:04:55Z",
"language":
"en",
"actor":
{
"objectType":
"person",
"id":
"urn:example:person:marCn",
"displayName":
"MarCn
Smith",
"url":
"hGp://example.org/marCn",
"image":
{
"url":
"hGp://example.org/marCn/image.jpg",
"mediaType":
"image/jpeg",
"width":
250,
"height":
250
}
},
"object"
:
{
"objectType":
"arCcle",
"id":
"urn:example:blog:abc123/xyz",
"url":
"hGp://example.org/blog/2011/02/entry",
"displayName":
"Why
I
love
AcCvity
Streams"
},
"target"
:
{
"objectType":
"blog",
"id":
"urn:example:blog:abc123",
"displayName":
"MarCn's
Blog",
"url":
"hGp://example.org/blog/"
}
}
• Express structured data
using regular JSON
idioms.
• Use external @context
to alias terms and cast
types
Wednesday, August 7, 13
JSON-LD brings a standard representation for expressing entity-value relationships using a few standard keywords and a consistent organizational structure for JSON Objects. Objects represent entities, with keys acting as properties. Properties always expand to full IRIs. Arrays express a set of values associated with a property, unordered by default. Order expressed in @context or as an expanded value representation. Values are Object, string or native, with standard XSD representations for native types. Expanded form allows for more datatype and language variations.
Subject reference identifies an object with @id in the same document, or references an external document (Linked Data).
Full transformation from and to the RDF data model as a normative part of the API.