Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends - the best ride when handling any triplestore.
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:
"http://emmo.info/emmo#Atom"
-
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.
- Getting started: See the tutorial
- Discovery of custom backends
- Reference manual
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
:
pip install tripper
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.