Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
oxigraph/python
Tpt eea33f136a Releases version 0.1.0-rc.1 4 years ago
..
docs Releases version 0.1.0-rc.1 4 years ago
src Fixes an error in Python documentation 4 years ago
tests Improves python bindings : more functions and documentation 4 years ago
Cargo.toml Releases version 0.1.0-rc.1 4 years ago
README.md Releases version 0.1.0-rc.1 4 years ago
pyproject.toml Adds basic Python bindings to Oxigraph 4 years ago

README.md

Oxigraph for Python (pyoxigraph)

PyPI PyPI - Implementation PyPI - Python Version actions status Gitter

Pyoxigraph is a Python library on top of Oxigraph.

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.

It is distributed on Pypi using the pyoxigraph package. Run pip install pyoxigraph to install it.

Build the development version

To build and install the lastest version of pyoxigraph you need to clone this git repository and to run pip install . in the python directory (the one this README is in).

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.

To release a new version of pyoxigraph run:

docker run --rm -v $(pwd):/io konstin2/maturin publish