Open VladimirAlexiev opened 2 years ago
A similar edit could be done to Examples 107 and 108 https://w3c.github.io/json-ld-syntax/#example-indexing-data-in-json-ld-by-type-with-set-representation. In such case the code in Example 108 https://w3c.github.io/json-ld-syntax/#example-indexing-data-in-json-ld-by-type-using-none could be changed to eg
"none": [{
"@id": "https://greggkellogg.net/",
"name": "Gregg Kellogg"
}, {
"@id": "http://champin.net/",
"name": "Pierre-Antoine Champin"
}]
In the same train of thought: Example 122 https://w3c.github.io/json-ld-syntax/#example-referencing-named-graphs-using-an-id-map-with-none shows precisely two anonymous (blank node) graphs.
So I think the note above it is misleading because no graphs are merged (check in the Expanded
and TriX
tabs):
Note, however, that if multiple graphs are represented without an
@id
, they will be merged on expansion. To prevent this, use@none
judiciously, and consider giving graphs their own distinct identifier.
Suggest to change it to:
But using anonymous graphs is not recommended because it could lead to confusion. So use
@none
judiciously, and consider giving graphs their own distinct identifier.
@index: @id
with@set
representation but doesn't explain its utility, since all such arrays are necessarily singletons@id
index being@none
is mapped to a blank node. Then it hit me: there can be multiple blank nodes, and they will all be represented as@none
, so now we need an array.I suggest the following editorial changes: