Let jsonld handle value nodes/Literal for context search by WhiteGobo · Pull Request #2750 · RDFLib/rdflib (original) (raw)

If jsonld parser is set from version 1.0 to 1.1 it looses the ability to handle value nodes that are set as @type for an object. This change should only make the parser ignore value nodes when searching for an already found context. Thus the ability to handle those is not lost, when setting the parser version to 1.1

This behaviour is not expected of the jsonld parser. Other parsers will fail, when a @type is given a literal.
Necessary change to set the default version of the parser to 1.1, because roundtrip test fails otherwise

Background discussion to this change is #2747. (Issue #2606 is the reason for this change.)

Summary of changes

in jsonld-contexts ignore dicts(value nodes), when searching for a context
No changes in tests or documentation, because this is not an expected behaviour.

Checklist