vliz-be-opsci / py-trav-harv

python module that will allow an enduser to perform link traversal on a triple store.
0 stars 0 forks source link

travharv

Description

This is a Python module that will allows an end-user to traverse given property-paths en a given config file.

Installation

pip install travharv

Usage

from travharv import service

dev

overview

overview

install dependencies

poetry install

run tests

pytest

how to run the code

example 1

This is an example of how to run the code where the targetstore is kept in memory and dumped to a file

python -m travharv -c ./tests/config/base_test.yml -d ./test.ttl -i ./tests/inputs/63523.ttl -o ./test.ttl

example 2

This is an example of how to run the code where the targetstore is a SPARQL endpoint.

python -m travharv -c ./tests/config/base_test.yml -s http://example.org http://example.org/statements