Conversion between rdflib and PyLD data formats for compatibility
Support (some) data conversion between rdflib and pyld Python libraries.
The rdflib and PyLD libraries use different in-memory data structures so it is not trivial to use the powerful RDF support of rdflib in conjuction with the JSON-LD processor implementation of PyLD. This code is designed to provide a bridge between rdflib and PyLD in-memory formats, avoiding the need to serialize and then re-parse the data.
Requires Python 3.6 or higher because of dependencies.
This code was developed to support a particular application and then pulled out as I needed it a second time. I haven’t thought hard about the general case and am sure that are additional limitations beyond those I know about. Known limitations:
- assumes the URIRefs in an rdflib graph do not need expansion with a NamespaceManager
I’d be happy to hear of other problems/limitations and/or suggestions for improvement.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size rdflib_pyld_compat-0.1.0-py3-none-any.whl (4.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size rdflib-pyld-compat-0.1.0.tar.gz (4.1 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for rdflib_pyld_compat-0.1.0-py3-none-any.whl