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.1

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.1
File Size Uploaded
rdf_triplestore-0.1.1.tar.gz 126.5 kB Details

Built distribution (wheel)

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

Total release size: 189.2 kB

Release files / rdf_triplestore-0.1.1.tar.gz

Download URL rdf_triplestore-0.1.1.tar.gz
Size 126.5 kB
Tags Source
SHA-256 checksum
How to use checksums
095df5c59b71f4c7bb603985fccf7d3df2dcd41e6c2be6ffd3ccc257767c856c
BLAKE2b-256 checksum
How to use checksums
42eabaa38a43997c86feb83a8a10e4712ac194650e87791b5b56000926bf4364
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","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.1-py3-none-any.whl

Download URL rdf_triplestore-0.1.1-py3-none-any.whl
Size 62.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64e585c3cf6c96b02043daaeff97ed225821ab99e650c61b6290e9a6ed506493
BLAKE2b-256 checksum
How to use checksums
4bae3f7ac623b15bcb60715b2790c71c358d1e5b08b306444afaf6c4592f0902
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","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

This release

0.1.1 This release

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