w3c / json-ld-syntax

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

Description of `@type` in 9.16 should mention its use as a key on context #269

Closed pchampin closed 4 years ago

pchampin commented 4 years ago

This will be tricky, because the use of @type in a context definition is very different different from its use in other context. In particular, the sentence

The value of the @type key MUST be a term, absolute IRI, a relative IRI, or a compact IRI (including blank node identifiers).

is not true for the "context definition" case...

gkellogg commented 4 years ago

The next sentence the definition of @type you cite says "Within an expanded term definition, its value may also be either @id or @vocab." Is this not adequate?

pchampin commented 4 years ago

Sorry, the title of the issue is not very explicit.

I was referring to this kind of context:

{
  "@context" {
    "@type": { "@container": "@set" }
  }
}

which is not covered by 9.16, AFAICT.

azaroth42 commented 4 years ago

WG agrees