w3c / json-ld-framing

JSON-LD 1.1 Framing Specification
https://w3c.github.io/json-ld-framing/
Other
25 stars 20 forks source link

Update framing algorithm to use `embedded flag` in _framing state_ #66

Closed gkellogg closed 5 years ago

gkellogg commented 5 years ago

... defaulting to false, and set to true when recursing into node objects. Add tests to not add node at top level if embedded is false and it has already been serialized, and also use the check on @embed: @never to make that happen only when in an embedded node object.

Update test g010 to not use @type in framing.

For #27.


Preview | Diff

gkellogg commented 5 years ago

This does not address the issue in compacting where values of a property with @container: @graph could be mis-serialized, either requiring the use of @included, or to not select that term unless there is just a single node object at the top of the graph.