Skip to main content

Triplestore Abstraction Library

This library provides a unified interface for interacting with various RDF and GeoSPARQL triplestore backends. It allows developers to write code that is agnostic to the underlying triplestore implementation.

Features

  • Common API for multiple triplestore backends
  • Easy integration and backend switching
  • Support for basic CRUD operations on triples
  • GeoSPARQL support when provided by the selected backend
  • Extensible for new triplestore implementations

Supported Backends

The library provides a unified abstraction layer for multiple triplestores.
Currently supported backends (alphabetically):

  • AllegroGraph
  • Apache Jena
  • Blazegraph
  • GraphDB
  • Oxigraph
  • QLever
  • RDF4J
  • Virtuoso

Installation

You can install the library along with all supported backends using:

pip install rdf-triplestore
# or
pip install rdf-triplestore[all]
pip install triplestore[all]

Alternatively, you can install the library with a specific backend only:

pip install rdf-triplestore[<backend>]

For example:

pip install rdf-triplestore[oxigraph]

GeoSPARQL-related dependencies are optional and can be installed separately with:

pip install rdf-triplestore[geo]

Usage

from triplestore import Triplestore

# Initialize with desired backend
store = Triplestore(backend="jena", config={...})

# Load triples
store.load(data_filename)

# Add a triple
store.add(subject, predicate, obj)

# Query triples
results = store.query("SELECT ?s ?p ?o WHERE { ?s ?p ?o }")

Release files for rdf-triplestore 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rdf-triplestore 0.1.0
File Size Uploaded
rdf_triplestore-0.1.0.tar.gz 126.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rdf-triplestore 0.1.0
File Interpreter ABI Platform
rdf_triplestore-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 189.1 kB

Release files / rdf_triplestore-0.1.0.tar.gz

Download URL rdf_triplestore-0.1.0.tar.gz
Size 126.5 kB
Tags Source
SHA-256 checksum
How to use checksums
36b0db956ed28f688a92c5a0550cd136b37fee33533926fac510ac9e6b161ef9
BLAKE2b-256 checksum
How to use checksums
6d4c128f1adf5569c7911f280e0c8d3680633c283fe1e6db4e5c6c0e2f471fd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rdf_triplestore-0.1.0-py3-none-any.whl

Download URL rdf_triplestore-0.1.0-py3-none-any.whl
Size 62.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc4bb9cc2cf083d996eed0c8ceec6233e8e0b1f0f64e5a134d630643f4843c17
BLAKE2b-256 checksum
How to use checksums
1daa34e2eaa9ef17607356f3126c8552d4ce5dcbab02dbde1d30a31ce148d3f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page