Skip to main content

A triplestore wrapper for Python.

Project description

Tripper

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

PyPI Documentation CI tests DOI

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: "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.

Advanced features

The submodules mappings and convert provide additional functionality beyond interfacing triplestore backends:

  • tripper.mappings: traverse mappings stored in the triplestore and find possible mapping routes.
  • tripper.convert: convert between RDF and other data representations.

Documentation

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:

pip install tripper

License and copyright

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tripper-0.2.11.tar.gz (70.1 kB view details)

Uploaded Source

Built Distribution

tripper-0.2.11-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

Details for the file tripper-0.2.11.tar.gz.

File metadata

  • Download URL: tripper-0.2.11.tar.gz
  • Upload date:
  • Size: 70.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for tripper-0.2.11.tar.gz
Algorithm Hash digest
SHA256 80c9e34a5a58915811a95dc878b7a5c6d2c88921daebb261476f2eaeeca262de
MD5 33121bb6e2e27bfcc31e259bb6f38ecb
BLAKE2b-256 ace3a039d88c7a9f36495c636a050ff2894b5170c2baa072013dc322035eded6

See more details on using hashes here.

File details

Details for the file tripper-0.2.11-py3-none-any.whl.

File metadata

  • Download URL: tripper-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for tripper-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 531a133125ec1ce2a5ad99321f2a8257eded2a602e01128ba76fba05739a7b0f
MD5 b180d4880bb2b1f1806586c5d685635a
BLAKE2b-256 81d3ce0a267c50363f8c272db97da4c204a99794a0c047968f12132c134898d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page