Unlike trig, the JSON-LD serializer does not maintain distinct graphs when those graphs are identified using BNodes. The expectation should be to preserve the semantics as available, and keep the graphs distinct and identified (especially since the graph bnode itself can be used within a graph or another graph.
Unlike trig, the JSON-LD serializer does not maintain distinct graphs when those graphs are identified using BNodes. The expectation should be to preserve the semantics as available, and keep the graphs distinct and identified (especially since the graph bnode itself can be used within a graph or another graph.
Here's an example in action:
I would expect the output of JSON-LD to be like this: