W3C home > Mailing lists > Public > public-linked-json@w3.org > December 2014

Re: Limitations on JSON which conforms to JSON-LD spec?

From: Nicholas Bollweg <nick.bollweg@gmail.com>
Date: Mon, 1 Dec 2014 19:22:33 -0500
Message-ID: <CACejjWzUmAUR4bxK_z+i=cck=dxEvNU1nmbBQiTJrrsBbxKPng@mail.gmail.com>
To: ☮ elf Pavlik ☮ <perpetual-tripper@wwelves.org>
Cc: public-linked-json <public-linked-json@w3.org>
Sure, @index lets you know... something. cardinality, maybe.

{
>   "@context":{
>     "npm": "https://www.npmjs.org/doc/files/package.json.html#",
>     "dependencies": {
>       "@container": "@index",
>       "@id": "npm:dependencies"
>     }
>   },
>   "dependencies": {
>     "jsonld.js": "^0.3.13"
>   }
> }
>

normalizes to:

_:c14n0 <https://www.npmjs.org/doc/files/package.json.html#dependencies>
> "0.3.13" .
>

not very instructive, and the @index value disappears.

if you were advising a new developer on patterns to not use, that would be
one of them!
Received on Tuesday, 2 December 2014 00:23:00 UTC

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