PyOxigraph provides Python bindings for Oxigraph, a high-performance SPARQL database and RDF toolkit implemented in Rust. It offers capabilities for parsing, storing, querying, and manipulating RDF data, including support for various RDF serialization formats and the SPARQL query language. The library is actively maintained with frequent releases, typically every few weeks, incorporating new features and performance improvements. Current version is 0.5.6.
pip install pyoxigraphVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to create a `Store`, add RDF `Triple`s using `NamedNode` and `Literal` terms, and then query the store using a simple SPARQL `SELECT` statement.
If you were using RDF-star, update your code to use the new RDF 1.2/SPARQL 1.2 features and adapt to the updated triple term syntax as defined in the latest specifications. Consult the PyOxigraph documentation for examples on enabling and using these features.
Ensure your system has a C++20 compatible compiler (e.g., GCC 10+, Clang 11+, MSVC 19.28+). If you're on an older system, you might need to upgrade your compiler or ensure pre-built wheels are available for your platform.
If you encounter Glibc version errors, either upgrade your Linux distribution to one that provides Glibc 2.28+, or build `pyoxigraph` from source on your system to link against your existing Glibc version. Building from source requires a Rust toolchain and C++20 compiler.
For advanced querying scenarios, utilize `QueryEvaluator.prepare()` to pre-process your query, allowing for variable injection and proper handling of dataset clauses. Then, execute the prepared query. Refer to the documentation for `QueryEvaluator` usage.
Run `pip install pyoxigraph` to install the library.
Upgrade your C++ compiler. For example, use GCC version 10 or newer, Clang version 11 or newer, or MSVC 19.28 (Visual Studio 2019 version 16.8) or newer.
Upgrade your Linux distribution to one that provides Glibc 2.28 or newer (e.g., Ubuntu 20.04+, Debian 10+). Alternatively, you can try to build `pyoxigraph` from source, which will link against your system's Glibc, but requires a Rust toolchain and C++20 compiler.
No dependency data recorded yet.