w3c / json-ld-syntax

JSON-LD 1.1 Specification
https://w3c.github.io/json-ld-syntax/
Other
112 stars 22 forks source link

Alias statements about `@base` are inconsistent #309

Closed hsolbrig closed 4 years ago

hsolbrig commented 4 years ago

Section 4.6.1 says "Each of the JSON-LD keywords, except for @context, may be aliased to application-specific keywords." Section 9.16 Keywords says, however, that "The @base keyword MUST NOT be aliased, and MAY be used as a key in a context definition." Can both of these statements be true?

gkellogg commented 4 years ago

It seems more clarification is needed. Within a context, keyword aliases may not be used. Within the body of a document, all keywords other than @context May be aliased. Of course, @base only appears in the context, along with some other keywords.

hsolbrig commented 4 years ago

How about something along the lines of "Any JSON-LD keyword that can appear in a node object may be aliased with the exception of @context"?

gkellogg commented 4 years ago

It’s not just node objects, but really anywhere outside of the context. I thought we had wording about this, maybe obscured from 1.0.

gkellogg commented 4 years ago

See #308; we should simplify these and normatively prohibit using aliased keywords in contexts or term definitions.

azaroth42 commented 4 years ago

Resolved by #312