w3c / json-ld-api

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

Add protected graph container null context test. #582

Closed davidlehn closed 8 months ago

davidlehn commented 12 months ago

Adds a test for a protected @graph @container property that nullifies it's @context. This is similar to a pattern found in the VC Data Model 2.0 context. There are other test variations of context nullification, graph properties, and protection rules, etc, but there doesn't seem to be one with this combination. jsonld.js was failing this test but other implementations pass.

Are other variations of this test needed? It looks like most base features are covered, but perhaps tricky combinations of features might expose edge case issues. Help needed.

See: https://github.com/w3c/vc-data-model/issues/1373

davidlehn commented 8 months ago

This had to be rebased due to conflicting "pr42" tests. Ready to merge with others are ready.

@pchampin and other implementors, can you please review this.

@gkellogg The generate process output expand-manifest.html but not toRdf-manifest.html. Is that a script error or an issue with the PR?