w3c / json-ld-api

JSON-LD 1.1 Processing Algorithms and API Specification
https://w3c.github.io/json-ld-api/
Other
73 stars 29 forks source link

Context processing step 5.8.3 vs expansion test c021 #567

Closed zoggy closed 1 year ago

zoggy commented 1 year ago

Hello,

Step 5.8.3 of context processing algorithm says:

Otherwise, if value is an IRI or blank node identifier, the vocabulary mapping of result is set to the result of IRI expanding value using true for document relative . If it is not an IRI, or a blank node identifier, an invalid vocab mapping error has been detected and processing is aborted.

It is not clear what "it" in "If it is not an IRI, or a blank node identifier," refers to:

Am I missing something ?

gkellogg commented 1 year ago

The term “it” does refer to the value. Note that the IRI scheme does not require “//", this is only for hierarchical schemes, such as HTTP. Within the examples and tests, “ex:foo” is a valid IRI. (Look at ipath-rootless in RFC3987).

zoggy commented 1 year ago

Indeed. Thanks for your answer.

TallTed commented 1 year ago

@gkellogg — In https://github.com/w3c/json-ld-api/issues/567#issuecomment-1597332588, it's probably worth correcting require “//l, this to require “//", this.