Skip to content

@vocab removes the meaning of reserved @keywords #186

Closed
@cygri

Description

@cygri

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions