json-ld serialize doesnt failt or raise warning, when producing invalid syntax; type is literal · Issue #2747 · RDFLib/rdflib (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
So im not sure if this is a bug. So i tested if there are any problems bumping up the default version of json-ld to 1.1
and the roundtrip test failed. Background is #2606
[ { "@id": "file:///somewhere/", "@type": [ { "@value": "thing too" } ] }, { "@id": "file:///somewhere/#", "@type": [ { "@value": "another thing" } ] } ]
Cant pe parsed with version 1.1
but it works with 1.0
.
Graph().parse(jsonfile, format="json-ld", version=1.1)
It seems that it tries to get an existing reference to the type {"@value": "another thing"}
which is a dict and cant be hashed. It doesnt try to do this in version 1.0
.