Open gkellogg opened 1 year ago
These should probably use the json-ld-1.0
processing mode, although the treatment in 1.1 would be the same. However, blank nodes as predicates is obsolete in 1.1 (from definition of property).
Actually, expand test 0038 does test this (this is how I ran into this problem, actually), and it is marked with specVersion 1.0. Note however that the problem occurs even when blank nodes are used in object position (as in my minimal example), so a 1.1. version of 0038, where bnode as predicate are excluded, should probably be added.
Ah, I see. jsonld.js, and probably pyld, skip running 1.0 tests these days, so such behavior was not noticed. Perhaps the task here is to add a expand 0038 derived test with expected 1.1 processor results.
I suppose we could just change the processing mode on these tests, as it's still expected behavior of 1.1 systems, even though it's considered obsolete. That may be better than simply duplicating the tests for 1.1 mode.
From https://github.com/digitalbazaar/jsonld.js/issues/498.
cc/ @pchampin @davidlehn
(the same issue is present in PyLD: https://github.com/digitalbazaar/pyld/issues/167)
Consider the following:
It expands to
while it should expand to
Indeed, step 14.2.5 of Create Term Definition clearly states:
(emphasis is mine)
Therefore, step 6.4 of IRI Expansion should apply.