Skip to content

Can JSON-LD keywords be re-defined in the @context? #102

Closed
@msporny

Description

@msporny

Is this legal in JSON-LD?

"@context": {
"@type": {"@id": "http://example.org/vocab#type", "@type": "http://example.org/vocab#Class"}
}

Should we allow JSON-LD keywords to be overridden? There seem to be two options: 1) Yes, allow them to be overridden, but warn developers that bad things will happen if we allow this, or 2) Throw an exception if somebody tries to re-define a JSON-LD keyword.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions