Skip to main content

Python bindings of Oxigraph, a SPARQL database and RDF toolkit

Project description

Keywords: RDF SPARQL graph-database database Author: Tpt License: MIT/Apache-2.0 Requires-Python: >=3.5 Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

Pyoxigraph (Oxigraph for Python)

[![PyPI](https://img.shields.io/pypi/v/pyoxigraph)](https://pypi.org/project/pyoxigraph/) ![PyPI - Implementation](https://img.shields.io/pypi/implementation/pyoxigraph) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyoxigraph) [![actions status](https://github.com/oxigraph/oxigraph/workflows/build/badge.svg)](https://github.com/oxigraph/oxigraph/actions) [![Gitter](https://badges.gitter.im/oxigraph/community.svg)](https://gitter.im/oxigraph/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

Pyoxigraph is a graph database library implementing the [SPARQL](https://www.w3.org/TR/sparql11-overview/) standard. It is a Python library written on top of [Oxigraph](https://github.com/oxigraph/oxigraph).

Pyoxigraph offers two stores with [SPARQL 1.1 Query](https://www.w3.org/TR/sparql11-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](https://www.w3.org/TR/turtle/), [TriG](https://www.w3.org/TR/trig/), [N-Triples](https://www.w3.org/TR/n-triples/), [N-Quads](https://www.w3.org/TR/n-quads/) and [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/).

Pyoxigraph is distributed [on Pypi](https://pypi.org/project/pyoxigraph/). Run pip install pyoxigraph to install it.

There exists also a small library providing [rdflib](https://rdflib.readthedocs.io) stores using pyoxigraph: [oxrdflib](https://github.com/oxigraph/oxrdflib).

Pyoxigraph documentation is [available on the Oxigraph website](https://oxigraph.org/pyoxigraph/).

## 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](https://github.com/PyO3/pyo3).

Pyoxigraph is built using [Maturin](https://github.com/PyO3/maturin). Maturin could be installed using the pip install maturin. To install a development version of Oxigraph just run maturin develop in this README directory.

The Python bindings tests are written in Python. To run them use python -m unittest in the tests directory.

To release a new version of Pyoxigraph run: `bash docker run --rm -v $(pwd):/io konstin2/maturin publish `

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

pyoxigraph-0.1.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distributions

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

pyoxigraph-0.1.0-cp38-cp38-manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.8

pyoxigraph-0.1.0-cp37-cp37m-manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.7m

pyoxigraph-0.1.0-cp36-cp36m-manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.6m

pyoxigraph-0.1.0-cp35-cp35m-manylinux1_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.5m

File details

Details for the file pyoxigraph-0.1.0.tar.gz.

File metadata

  • Download URL: pyoxigraph-0.1.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyoxigraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5afa6a1ea50f678223b0c261403a76291262553d07a58308c1ce01145f8a6a01
MD5 b996b63063d4ad7e4e9e8f65803f56ce
BLAKE2b-256 8416aaca6799a4d3c1f93e3c6dc1fb960c28636ea1665227958cd6afb022591a

See more details on using hashes here.

File details

Details for the file pyoxigraph-0.1.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyoxigraph-0.1.0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyoxigraph-0.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a69f774941c5d7013f7ecdbab321ebf11199dc973ae066a9970370f37ca14ffb
MD5 2b40287e336089aef8832cdfb182690d
BLAKE2b-256 55d4fa680611c10bad9eaae0aeb6dca68c3f56518ccfab33821c26ec3efda15a

See more details on using hashes here.

File details

Details for the file pyoxigraph-0.1.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyoxigraph-0.1.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyoxigraph-0.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cd3596b0309a69ffd00fc55b8222c3a9e860e0aff3217da2d6f29bd457f0ec85
MD5 c283f29e483b7e2d8f14e0a18c946b5b
BLAKE2b-256 642962e97baab54bf16dba8c1f9d3d582d653041038bb8a651cfbd452152aa96

See more details on using hashes here.

File details

Details for the file pyoxigraph-0.1.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyoxigraph-0.1.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyoxigraph-0.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d026807f93756985b59474d6a549ccc9a1ae6b58b4c928ba0241681369d65a27
MD5 868bf9990a88d4a0d822c563556bfe6c
BLAKE2b-256 27d08d122110d179a577263844c00e4e29c3fa1199700934cac4797581046942

See more details on using hashes here.

File details

Details for the file pyoxigraph-0.1.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyoxigraph-0.1.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyoxigraph-0.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 60c05533ddffba92915e0640827c91d7d3c4131eb859038021bbf52275f0b31f
MD5 c36c0f24fcf7df8dc54271a7d1ecd9eb
BLAKE2b-256 1bc0e6e7aa0fbbaf2a994e09919b4cd1292a1845aba60d18c3de10b5c28c5893

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