You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When framing, anonymous named graphs are not considered simple graphs, and so are not properly compacted with "@container": "@graph" if the pruneBlankNodeIdentifiers option is false. For example:
The proposed solution is to not make pruneBlankNodeIdentifiers an option, but the normal behavior when running in 1.1 mode. In retrospect, it was never intended that these unreferenced blank node identifiers remain, it was just a byproduct of the flattening algorithm.
The text was updated successfully, but these errors were encountered:
From digitalbazaar/jsonld.js#241.
When framing, anonymous named graphs are not considered simple graphs, and so are not properly compacted with
"@container": "@graph"
if thepruneBlankNodeIdentifiers
option isfalse
. For example:Input
Frame
Because of flattening, this leads to the following before compaction:
Expanded/Framed output
With the
pruneBlankNodeIdentifiers
option set to try, the@id
elements are removed:This allows compaction to render the following:
which is the expected result.
The proposed solution is to not make
pruneBlankNodeIdentifiers
an option, but the normal behavior when running in 1.1 mode. In retrospect, it was never intended that these unreferenced blank node identifiers remain, it was just a byproduct of the flattening algorithm.The text was updated successfully, but these errors were encountered: