JSON-LD Integration by ashleysommer · Pull Request #1354 · RDFLib/rdflib (original) (raw)
This is a big one.
There are 2883 files changed. But most of those are new files forming the giant JSON-LD test-suite (and a 2nd copy of it, used by the JSON-LD v1.1 test-suite).
This integrates the json-ld library into RDFLib as a core parser/serializer. Specifically, it uses the feature/v1.1
branch, which includes experimental support for basic JSON-LD v1.1 compliance.
It automatically registers the json-ld parser and serialize against the "json-ld" file format, and the application/ld+json
mimetype.
Lots of tests are not working, for a couple of reasons:
- There are still RDFLib idiosyncrasies that prevent json-ld from parsing or serializing exactly as per the spec
- The v1.1 features are not yet complete (lots of v1.1 tests are broken)
All of the failing tests have been investigated, and commented on (see comments in the known_bugs section of the test suite).
For now, all known bugs which cause test failures are skipped, in order to keep the green light on in github.
I've removed from docs any mention of installing JSON-LD as a library, and added mention of JSON-LD as a built-in parser and serializer.
I've added mention of this change in the 5to6upgrade docs.