A Pyhton-based backends implementation for the Tripper tool
PyBackTrip currently supports the following triplestore solutions:
| Triplestore | Backend Name |
|---|---|
| Stardog | stardog |
| Fuseki | fuseki |
| OMIKB | omikb |
PyBackTrip relies on the dependencies of the specific triplestores supported. The package can be installed through its pyproject.toml file
pipinstall .The package provides several backends implementations. After installing they are automatically available inside the tripper leveraging the entry-point system.
fromtripperimportTriplestorets=Triplestore(backend="fuseki", ...)Each backend may have its own configuration in the Triplestore class. This section provides usage examples for each of them
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
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
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