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

Flattening in jsonld.js

From: Tomasz Pluskiewicz <tomasz@t-code.pl>
Date: Wed, 25 Jun 2014 19:37:17 +0200
Message-ID: <CAAFOhSeMaZx=O9v74KzzK=rchy4n2piCoZiiwQtJXkjrPdBy_Q@mail.gmail.com>
To: public-linked-json@w3.org
Hi

The documentation for the flattening algorithm says that its output
always contains the @graph property. And so the playground does indeed
work that way.

However, I just got jsonld.js from Bower (that is version 0.2.13) and
for a document with a single graph it produces a flattened output
without the @graph similar to

[
  {
    "@id": "resource one"
  },
  {
    "@id": "resource two"
  },
  {
    "@id": "resource three"
  }
]

Is this by design?

Thanks,
Tom
Received on Wednesday, 25 June 2014 17:38:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:53:25 UTC