W3C home > Mailing lists > Public > public-linked-json@w3.org > May 2011

Updated JSON-LD draft - no more microsyntaxes

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Sat, 07 May 2011 18:07:21 -0400
Message-ID: <4DC5C299.3030302@digitalbazaar.com>
To: Linked JSON <public-linked-json@w3.org>
Much of today was spent updating the JSON-LD draft to reflect
discussions that have been taking place over the last three months in
the RDF Working Group, internally at Digital Bazaar for the PaySwarm
work, and after implementation experience feedback from a few other
developers throughout the Web community. All of this feedback resulted
in the following changes to the JSON-LD spec, resulting in a
simplification of the syntax that would be most commonly used:

 * Removal of all microsyntax features, making JSON-LD directly usable
   in many applications via simply passing the text through JSON.parse()
 * Modified type coercion associative array format slightly to make
   it easier to specify a large number of vocabulary terms that the
   author would like to have coerced.
 * Changed a number of JSON-LD keywords to be more consistent. '#' was
   changed to '@context', '#types' was changed to '@type', and added
   keywords for @literal, @datatype and @iri.
 * Added new "expanded object value" EOV syntax so that full RDF can
   still be expressed by experts. This was also required for the
   normalization  algorithm, which is a primary requirement of digital
   signatures in PaySwarm.
 * Added new normalization mechanism using new EOV syntax.
 * Added support for "arrays of objects" as a top-level structure.
 * Added a fairly strict "Default Context" at the request of Gavin
   Carothers and the WHATWG folks.

You can read the dated Editor's Draft spec here:


Diff-marked version from the previous is available here:


Here are the bits that are of most interest to those that are already
familiar with JSON-LD.

Specifying languages for literals:

Specifying typed literals:

Expressing IRIs:

New normalization mechanism:

The Default Context:

-- manu

Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: The PaySwarm Vocabulary
Received on Saturday, 7 May 2011 22:07:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:29 UTC