Skip to main content

rdf-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]

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 rdf_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.2.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.2.0
File Size Uploaded
rdf_triplestore-0.2.0.tar.gz 123.3 kB Details

Built distribution (wheel)

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

Total release size: 185.8 kB

Release files / rdf_triplestore-0.2.0.tar.gz

Download URL rdf_triplestore-0.2.0.tar.gz
Size 123.3 kB
Tags Source
SHA-256 checksum
How to use checksums
343c2927cee0c35f2fc078bb728de40122175186c9a4a8f7310f2e1b093beb1c
BLAKE2b-256 checksum
How to use checksums
cadc92f7ecb67983bd22a27650de70d97582c6d2fe7300503fc11a389337c6d6
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.2.0-py3-none-any.whl

Download URL rdf_triplestore-0.2.0-py3-none-any.whl
Size 62.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cceddab65ee56d535a0231f6523527e4824cfd781a245754afae3492e8ee4b3
BLAKE2b-256 checksum
How to use checksums
6695f9ed8b0c32854d8e2c1e23b5dd65b303c3bac80159cd2b853ea3a0b6cfe3
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

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

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