Conversion between rdflib and PyLD data formats for compatibility
Project description
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.
N.B. - This code is currently pinned to pyparsing < 3.0.0 and PyLD 1.0.5 so that it works with Python 2.7. If there is any further development this pin should be removed and then it will work only with Python 3.6 and up.
Limitations
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
Contributing
I’d be happy to hear of other problems/limitations and/or suggestions for improvement.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rdflib-pyld-compat-0.0.2.tar.gz.
File metadata
- Download URL: rdflib-pyld-compat-0.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4caad1f2c228adcaba3ca845c5b46a9afefced3d50cca126ae9f4b836acd7eba
|
|
| MD5 |
41d96d5928eae3cd503800095c48b0e6
|
|
| BLAKE2b-256 |
d5c37bcc88ac2c1a131960a8dc83f06ee387d47e0776df30fd9d3683d2fcfc54
|
File details
Details for the file rdflib_pyld_compat-0.0.2-py3.5.egg.
File metadata
- Download URL: rdflib_pyld_compat-0.0.2-py3.5.egg
- Upload date:
- Size: 6.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2867224a67c23e6fbaf704aa338b5691e64c79a9bb4788c9dc5d5456a6682d41
|
|
| MD5 |
525a406bdc99002d735bcaba00ab04cc
|
|
| BLAKE2b-256 |
f6b01e4d677d3e7773188fe1ab4a78df8f14c653ca892171787ba427c88e20c8
|
File details
Details for the file rdflib_pyld_compat-0.0.2-py3-none-any.whl.
File metadata
- Download URL: rdflib_pyld_compat-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b30a2d275b7343b6750d6f18da1d05cf1ef99f1a9c65956c1afe991bbb3027fc
|
|
| MD5 |
9bc1f99d9c7c9aba0ace817b199c1bf1
|
|
| BLAKE2b-256 |
74e0ba2803de3adbc5b5f430b64fa164a23f02e6bbf3b480a88b5289b46e8b2e
|