Open zonotope opened 1 month ago
That's right out of example 119 in Named Graph Indexing. This makes the algorithm round-trippable.
If you want to coalesce values you can try using the flattening algorithm followed by framing back into the form you're looking for. You can also transform to RDF and back, which will have the same effect.
Hi. I was surprised by the expansion behavior of JSON-LD including named-graph data indexing with multiple nodes per indexed graph.
With this extension of the blog-post example:
I would expect the value for the
"post"
key to expand by grouping each node within the same index into an array value under a single"@graph"
key, like this:Instead, the JSON-LD playground does not group the nodes at all, but repeats each index key in the output for each node with that index. In each case within the expanded data, the value of the
"@graph"
key is an array with a single node instead of grouping all of the nodes with the same index into the same graph array, and each value of the"@index"
key appears multiple times in the output.JSON-LD data with named-graph indexing behaves the same way.
Is there a way to specify that all the nodes with the same index should be grouped into the same
"@graph"
array?Thanks.