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

Mistake about `vocab` flag in IRI Expansion #583

Closed helins closed 6 months ago

helins commented 6 months ago

The IRI expanding definition in 1.4.1 Algorithm Terms mentions that the vocab flag defaults to true whereas the intro to the actual algorithm description in 5.2.2 mentions that "the two flags" should default to false.

gkellogg commented 6 months ago

Not a mistake; the default for the IRI Expansion Algorithm is, indeed, false; the IRI expanding term is like a macro, and in this case defaults to true. That leads to the tersest use of this term.

helins commented 6 months ago

Thanks @gkellogg, naming was a bit confusing but it makes sense 👍