Closed
Description
I'm typing this into the Playground:
{
"@context":{"@vocab":"http://example.com/"},
"@id":"x1",
"@type":"MyClass"
}
This produces after expansion:
[
{
"http://example.com/@id": [
{
"@value": "x1"
}],
"http://example.com/@type": [
{
"@value": "MyClass"
}]
}]
I was expecting it to expand x1
and MyClass
by prepending http://example.com/
, and interpret @id
and @type
according to their status as reserved words. Instead, it also expands @id
and @type
by prepending the @vocab
IRI. This seems very odd to me. Is this indeed what the spec says?