Skip to main content

Conversion between rdflib and PyLD data formats for compatibility

Project description

https://travis-ci.org/zimeon/rdflib-pyld-compat.svg?branch=master https://coveralls.io/repos/github/zimeon/rdflib-pyld-compat/badge.svg?branch=master

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.

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

History

Last version to work with Python 2.7 was v0.0.2, install with pip install rdflib-pyld-compat==0.0.2

Contributing

I’d be happy to hear of other problems/limitations and/or suggestions for improvement.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdflib-pyldmod-compat-0.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdflib_pyldmod_compat-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file rdflib-pyldmod-compat-0.1.1.tar.gz.

File metadata

  • Download URL: rdflib-pyldmod-compat-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for rdflib-pyldmod-compat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 77e5b804062efbf85306a3f2e0c1202f2efd727f771adef13b0891d7a6ed411a
MD5 14f401b2a903ac9009ab986ee08407d9
BLAKE2b-256 e147c429c349b5802c691f2bc5c2a38f9cab5ad197fe99202cfb5b719c3f913a

See more details on using hashes here.

File details

Details for the file rdflib_pyldmod_compat-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rdflib_pyldmod_compat-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for rdflib_pyldmod_compat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe5e2c141c042ac1f5ad282de853f822967527725ea76c0379c84392dfb8610
MD5 d49f3d249df58f0b405113a0d4c5e4f1
BLAKE2b-256 e01fb0bd5da6f2a96f61f535d511dfb07c452401e622d2d6af855afab52d29c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page