W3C home > Mailing lists > Public > public-rdf-comments@w3.org > October 2013

JSON-LD spec question

From: Matt Wuerstl <mwuerstl@4qbase.com>
Date: Mon, 28 Oct 2013 21:40:17 +0000
To: "public-rdf-comments@w3.org" <public-rdf-comments@w3.org>
Message-ID: <0FA0973F80C7BC45B94D2C26C6A3200F65DC90F5@qbase-exchdag01.dayton.qbase.us>
In section 6.16 Data Indexing of the latest JSON-LD spec an example of data indexing is given that is confusing. In Example 54, the term "post" is defined as:
"post": {
       "@id": "schema:blogPost",
       "@container": "@index"

And then the subsequent descriptive text refers to the "blogPost" term:

In the example above, the blogPost term<http://json-ld.org/spec/latest/json-ld/#dfn-term> has been marked as an index map<http://json-ld.org/spec/latest/json-ld/#dfn-index-map>. The en, de, and ja keys will be ignored semantically, but preserved syntactically, by the JSON-LD Processor. This allows a developer to access the German version of the blogPost using the following code snippet: obj.blogPost.de.

Shouldn't this text be referencing the "post" term as it was defined in the context? And referenced in code as org.post.de?

Thanks for the clarification.

Received on Wednesday, 30 October 2013 08:28:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:59:43 UTC