Open wouterbeek opened 1 year ago
A similar issue occurs for Example 14, this looks as follows in the JSON-LD Playground (again: uglier because of @graph
and null
):
{
"@context": {
"@version": 1.1,
"@vocab": "http://example.org/"
},
"@graph": [
{
"@id": "http://example.org/library",
"@type": "Library",
"contains": {
"@id": "http://example.org/library/the-republic",
"@type": "Book",
"contains": {
"@id": "http://example.org/library/the-republic#introduction",
"@type": "Chapter",
"description": "An introductory chapter on The Republic.",
"title": "The Introduction"
},
"creator": {
"@language": "el-latn",
"@value": "Plátōn"
},
"title": {
"@language": "el-latn",
"@value": "Res Publica"
}
},
"location": {
"@language": "el-latn",
"@value": "Athína"
}
},
{
"@id": "http://example.org/library/the-republic",
"@type": "Book",
"contains": null,
"creator": [
{
"@language": "el-latn",
"@value": "Plátōn"
},
{
"@language": "grc",
"@value": "Πλάτων"
},
{
"@language": "en",
"@value": "Plato"
}
],
"location": null,
"title": [
{
"@language": "grc",
"@value": "Πολιτεία"
},
{
"@language": "el-latn",
"@value": "Res Publica"
},
{
"@language": "en",
"@value": "The Republic"
}
]
}
]
}
Example 8 in the standard document looks very different in the JSON-LD Playground (accessed through the "Open in playground" button from the standard document). This is example 8:
In the standard, it looks as follows:
But in JSON-LD Playground, it looks as follows:
^ Notice that the use of
@graph
andnull
, together with the repetition of the values "Book', "Plato", and "The Republic", makes this snippet uglier than the one in the standard documentThis is the live link to the playground: link
Expected
The same example to look identical (or at least more similar) in the document and in the playground.