Closed
Description
I want the following:
{
"@context": {
"type": "@type",
"profile": "@type"
},
"type": "cov:Coverage",
"profile": "cov:GridCoverage"
}
However this is not allowed. The playground says "Invalid JSON-LD syntax; colliding keywords detected".
However, this one works:
{
"@context": {
"type": {"@id": "rdf:type", "@type": "@id" },
"profile": {"@id": "rdf:type", "@type": "@id" }
},
"type": "cov:Coverage",
"profile": "cov:GridCoverage"
}
I understand that this restriction probably makes sense for other keywords, but could it do any harm for @type
?