Skip to main content
Tripper logo

PyPI Documentation CI Tests DOI

Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends

Tripper

Getting started

Basic concepts

Tripper provides a simple and consistent interface to a range of triplestore backends. It strives for simplicity and is modelled after rdflib (with a few simplifications).

In Tripper:

  • All IRIs are represented by Python strings. Example: https://w3id.org/emmo#Metre

  • Blank nodes are strings starting with _:. Example: _:bnode1

  • Literals are constructed with tripper.Literal. Example: tripper.Literal(3.14, datatype=XSD.float)

To make it easy to work with IRIs, provide Tripper a set of pre-defined namespaces, like XSD.float. New namespaces can be defined with the tripper.Namespace class.

A triplestore wrapper is created with the tripper.Triplestore class.

Sub-packages

Additional functionality beyond interfacing triplestore backends is provided by specialised sub-package:

Available backends

The following backends are currently available, either in Tripper or other packages.

Backend name Provided by Requirements Comment
rdflib tripper rdflib In-memory rdflib triplestore supporting all features.
ontopy tripper EMMOntoPy Backend for EMMOntoPy. In-memory.
sparqlwrapper tripper sparqlwrapper Generic backend for all triplestores supported by sparqlwrapper.
collection tripper DLite-Python Backend to a DLite collection.
graphdb tripper sparqlwrapper Backend to GraphDB.
fuseki PyBackTrip sparqlwrapper Backend to fuseki.
stardog PyBackTrip sparqlwrapper,pystardog Backend to StarDog.

Installation

Tripper has by itself no dependencies outside the standard library, but the triplestore backends may have specific dependencies.

The package can be installed from PyPI using pip. A minimal installation can be done with

pip install tripper

but typically, you would also like to install the requirements needed by the backends, the tripper sub-packages and extra features. The requirements for the backends are listed in the table above, while sub-packages and extra features are enabled by specifying one or more of the "extras" listed in the table below when installing Tripper.

For example, the following command will install Tripper with the tripper.datadoc sub-package and the rdflib backend enabled:

pip install tripper[datadoc] rdflib

Developers should install Tripper with the dev extras and enable pre-commit:

pip install tripper[dev]
pre-commit install  # Enable pre-commit and installing hooks
Extras Description of dependencies Implies
units Required by the tripper.units sub-package.
mappings Required by the tripper.mappings sub-package. units
datadoc Required by the tripper.datadoc sub-package. mappings
backends Installs dependencies for all backends
testing For testing. datadoc,backends
docs For generation of documentation testing
dev For developers. Installs all dependencies, including pre-commit. dev

All files in this repository are licensed under the MIT license. If not stated otherwise in the top of the files, they have copyright © 2022 SINTEF.

Acknowledgements

We gratefully acknowledge the following projects for supporting the development of Tripper:

  • OntoTrans (2020-2024) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 862136.
  • OpenModel (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 953167.
  • SFI PhysMet (2020-2028) funded by Forskningsrådet and Norwegian industry partners.
  • DOME 4.0 (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 953163.
  • VIPCOAT (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 952903.
  • MEDIATE (2022-2025) that receives funding from the RCN, Norway; FNR, Luxenburg; SMWK Germany via the M-era.net programme, project 9557,
  • MatCHMaker (2022-2026) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 101091687.
  • PINK (2024-2027) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 101137809.

Metadata

Release files for tripper 0.5.6

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

Source distribution (sdist)

Source distribution for tripper 0.5.6
File Size Uploaded Provenance Actions
tripper-0.5.6.tar.gz 147.4 kB With provenance Details for tripper-0.5.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tripper 0.5.6
File Interpreter ABI Platform Actions
tripper-0.5.6-py3-none-any.whl Python 3 none any Details for tripper-0.5.6-py3-none-any.whl

Total release size: 311.5 kB

Release files / tripper-0.5.6.tar.gz

Download URL tripper-0.5.6.tar.gz
Size 147.4 kB
Tags Source
SHA-256 checksum
How to use checksums
363d2967f0926b4e238ef26f55b4c942bd3f08dbbadbd01672242b33c7ecc478
BLAKE2b-256 checksum
How to use checksums
ea8cb1a33d5dc7da70424f68f29c7ff1a9e8f0c5616912c2f6be8ffe24050059
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / tripper-0.5.6-py3-none-any.whl

Download URL tripper-0.5.6-py3-none-any.whl
Size 164.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40ee38520dc6f279333a9abc9b7cabb160f7ed38dfc9b963d88ebe10d5a95ca3
BLAKE2b-256 checksum
How to use checksums
a0e8b284416762f4ce3026c3cdf4f84b007a323b4021c3de6e051a40b6ac4e7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for tripper 0.5.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tripper-0.5.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.6 This release

2 release files Full provenance

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