Tpt
2b1ca1b7ec
|
4 years ago | |
---|---|---|
.. | ||
docs | 4 years ago | |
src | 4 years ago | |
tests | 4 years ago | |
Cargo.toml | 4 years ago | |
README.md | 4 years ago | |
pyproject.toml | 4 years ago |
README.md
Oxigraph for Python (pyoxigraph
)
This Python package provides a Python API on top of Oxigraph named pyoxigraph
.
Oxigraph is a graph database implementing the SPARQL standard.
It offers two stores with SPARQL 1.1 Query capabilities. One of the store is in-memory, and the other one is disk based.
It also provides a set of utility functions for reading, writing and processing RDF files.
The stores are also able to load and dump RDF data serialized in Turtle, TriG, N-Triples, N-Quads and RDF/XML.
Install
To install the development version of Oxigraph you need first to install the build tool Maturin.
This could be done using the usual pip install maturin
.
maturin build release
allows build a release Oxigraph Python wheel.
This wheel could be installed using pip install PATH
in the current Python environment where PATH
is the path to the built Oxigraph wheel.
How to contribute
The Oxigraph bindings are written in Rust using PyO3.
They are build using Maturin.
Maturin could be installed using the usual pip install maturin
.
To install development version of Oxigraph just run maturin develop
.
The Python bindings tests are written in Python.
To run them use the usual python -m unittest
in the tests
directory.