Flattening in jsonld.js

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