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 a23147a116 Adds rel=canonical links to the documentation 4 years ago
..
docs Adds rel=canonical links to the documentation 4 years ago
src pyoxigraph: Exposes SPARQL results internals 4 years ago
tests pyoxigraph: Exposes SPARQL results internals 4 years ago
Cargo.toml Makes the Cargo.toml ready to work on the next version 4 years ago
README.md Adds links to oxrdflib 4 years ago
pyproject.toml Adds basic Python bindings to Oxigraph 4 years ago

README.md

Pyoxigraph (Oxigraph for Python)

PyPI PyPI - Implementation PyPI - Python Version actions status Gitter

Pyoxigraph is a graph database library implementing the SPARQL standard. It is a Python library written on top of Oxigraph.

Pyoxigraph 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 in Turtle, TriG, N-Triples, N-Quads and RDF/XML.

Pyoxigraph is distributed on Pypi. Run pip install pyoxigraph to install it.

There exists also a small library providing rdflib store using pyoxigraph: oxrdflib.

Pyoxigraph documentation is available on Oxigraph website.

Build the development version

To build and install the development 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

Pyoxigraph is written in Rust using PyO3.

Pyoxigraph is build using Maturin. Maturin could be installed using the usual pip install maturin. To install a 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