Skip to content

Latest commit

History

74 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

PyBackTrip

A Pyhton-based backends implementation for the Tripper tool


Triplestore supported

PyBackTrip currently supports the following triplestore solutions:

TriplestoreBackend Name
Stardogstardog
Fusekifuseki
OMIKBomikb


Installation

PyBackTrip relies on the dependencies of the specific triplestores supported. The package can be installed through its pyproject.toml file

pipinstall .

How to use

The package provides several backends implementations. After installing they are automatically available inside the tripper leveraging the entry-point system.

fromtripperimportTriplestorets=Triplestore(backend="fuseki", ...)

Backend specific details

Each backend may have its own configuration in the Triplestore class. This section provides usage examples for each of them

Stardog

fromtripperimportTriplestorets=Triplestore(backend="stardog", base_iri="http://example.com/myontology#", triplestore_url="http://localhost:5820", database="database",
uname="some_username"pwd="some_pwd"
)
  • base_iri: the base IRI to start with (if it is not defined)
  • triplestore_url: the Stardog service endpoint
  • database: the name of the database to use
  • uname (optional): the username to log in
  • pwd (optional): the password to log in

Fuseki

fromtripperimportTriplestorets=Triplestore(backend="fuseki", base_iri="http://example.com/myontology#", triplestore_url="http://localhost:3030", database="database",
graph="http://some_graph"
)
  • base_iri: the base IRI to start with (if it is not defined)
  • triplestore_url: the Fuseki service endpoint
  • database: the name of the database to use
  • graph (optional): the graph to use

OMIKB

fromtripperimportTriplestorets=Triplestore(backend="omikb", base_iri="http://example.com/myontology#", triplestore_url="http://openmodel.app/data", database="dataset",
graph="http://some_graph"
)
  • base_iri: the base IRI to start with (if it is not defined)
  • triplestore_url: the OpenModel KB endpoint
  • database: the name of the database to use
  • graph (optional): the graph to use

About

A Pyhton-based backends implementation for the Tripper tool

Resources

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages