Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Jelly-RDF/pyjelly

Documentation PyPI – Version PyPI - Python Version License CI status Code coverage Discord

pyjelly

pyjelly is a Python implementation of Jelly, a high-performance binary serialization format and streaming protocol for RDF knowledge graphs.

Documentation, usage guide and more: https://w3id.org/jelly/pyjelly

Features

  • Fast reading and writing of RDF knowledge graphs in the Jelly format.
  • Standalone generic API with no third-party dependencies, allowing for:
    • Serialization and parsing of statements to and from Jelly files.
    • Parsing and serializing streams of graphs and statements.
  • Precise control over serialization options, framing and compression.
  • Seamless integration with:
  • Stream processing support for large datasets or streams of all physical stream types.

pyjelly is useful when dealing with (see full description):

  • Dumping and loading large RDF datasets.
  • Client-server communication.
  • Workflows, where streaming is required.

Getting started

Install pyjelly from PyPI:

pip install pyjelly[rdflib]

To write an RDF graph to a Jelly file:

from rdflib import Graph

g = Graph()
g.parse("http://xmlns.com/foaf/spec/index.rdf")
g.serialize(destination="foaf.jelly", format="jelly")

To read a Jelly file and convert it to an rdflib Graph:

from rdflib import Graph

g = Graph()
g.parse("foaf.jelly", format="jelly")

See our documentation for further examples, a full API reference, and more.

Contributing and support

This project is being actively developed – you can stay tuned by watching this repository.

Join the Jelly Discord chat to ask questions about pyjelly and to be up-to-date with the development activities.

Commercial support

NeverBlink provides commercial support services for Jelly, including implementing custom features, system integrations, implementations for new frameworks, benchmarking, and more.

Contributing

If you'd like to contribute, check out our contributing guidelines.

License

The pyjelly library is licensed under the Apache 2.0 license.


The development of the Jelly protocol, its implementations, and supporting tooling was co-funded by the European Union. More details.

About

Fast RDF serialization for Python

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 11