Skip to content

A Pyhton-based backends implementation for the Tripper tool

License

Notifications You must be signed in to change notification settings

EMMC-ASBL/PyBackTrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyBackTrip

A Pyhton-based backends implementation for the Tripper tool


Triplestore supported

PyBackTrip currently supports the following triplestore solutions:

Triplestore Backend Name
Stardog stardog
Fuseki fuseki

Installation

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

pip install .

How to use

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

from tripper import Triplestore

ts = 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

from tripper import Triplestore

ts = 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

from tripper import Triplestore

ts = Triplestore(backend = "fuseki", 
                 base_iri = "http://example.com/myontology#", 
                 triplestore_url = "http://localhost:3030", 
                 database = "database"
)
  • 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

About

A Pyhton-based backends implementation for the Tripper tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages