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

Add similar id protected term redefinition test. #570

Closed davidlehn closed 11 months ago

davidlehn commented 1 year ago

This currently fails in jsonld.js and with the distiller. Should implementations be considering these forms equivalent as far as protected redefinition checks are concerned?

dlongley commented 12 months ago

@gkellogg,

I suppose this depends on what it means to be the "same as the previous", which is what is in step 27.1.

Yes, though surely the "same as the previous" was not intended to trigger errors on meaningless differences due to syntactic sugar. It seems we have an oversight here where we need to clarify that processors must de-sugar things to properly compare for "sameness".