Python port of the Triplifier tool.
Project description
Triplifier
This repository creates the tooling project for the Triplifier.
Python package
The Python code is packaged for distribution. You can install it from GitHub Packages:
pip install triplifier
After installation the triplifier command is available to run the tool.
References
- Soest J van, Choudhury A, Gaikwad N, Sloep M, Dumontier M, Dekker A (2019) Annotation of Existing Databases using Semantic Web Technologies: Making Data more FAIR. CEUR-WS, Edinburgh, pp 94–101
Run as command-line tool
The basic configuration for the Python port can be run with the following command:
triplifier -c triplifier.yaml
The YAML configuration file contains the database connection information using SQLAlchemy style URLs.
SQLite database file
db:
url: sqlite:///my.db
user: user
password: pass
Postgres database file
db:
url: "postgresql://postgres:postgres@localhost:5432/my_database"
Optional arguments
By default, the tool will generate an ontology file (ontology.owl) and a turtle file containing the materialized triples (output.ttl) relative to the execution folder. To change this, the following additional arguments can be used:
- -o <output_path_for_materialized_triples_file>
- -t <output_path_for_ontology_file>
- -c <configuration_file>
- -b <base_uri_for_ontology>
- --ontologyAndOrData <ontology|data>
The --ontologyAndOrData option allows running only the ontology extraction
(ontology) or only the data materialization (data) given an ontology file.
If omitted, both steps are executed.
Annotations using the result
An example of annotations (and insertions) can be found in the following repository:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file triplifier-2.2.0.tar.gz.
File metadata
- Download URL: triplifier-2.2.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35953f44658cb6b3b8f1ebe7324a873150260d4bbfc1647985efbcb76f356d3d
|
|
| MD5 |
a13945582e713cfae7b8cb0b1b5c7fbd
|
|
| BLAKE2b-256 |
2488980a446a7ec4a8bd4efb1000e03699e7614b42773ffc974c64ff862948ea
|
File details
Details for the file triplifier-2.2.0-py3-none-any.whl.
File metadata
- Download URL: triplifier-2.2.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4de80d52753b0917534d5d3d7cff2e2610242996a74509fa79cd919625fc5ca5
|
|
| MD5 |
3f43b18bb8e978798f5c13820616a7d1
|
|
| BLAKE2b-256 |
edb438d57c11ded553035dcaac6b7bfb26fdbf6871e3b70e4fe6f04166c17b1e
|