Skip to main content

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

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

triplifier-2.0.3.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

triplifier-2.0.3-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file triplifier-2.0.3.tar.gz.

File metadata

  • Download URL: triplifier-2.0.3.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for triplifier-2.0.3.tar.gz
Algorithm Hash digest
SHA256 00cc37a79b1ab15f137b0041ac7af38a846df6b9a35bbaebf6c62a4750def196
MD5 38e2903f8aa39e428e336bd040c53c2f
BLAKE2b-256 2ecd41fb01f2f4f72ad79dbeff5211b9e2faf642823d6908d176dcf910f41099

See more details on using hashes here.

File details

Details for the file triplifier-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: triplifier-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for triplifier-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cecad0d9a4afd796768081b6e5b1f14e471217a75dd9a6a6bc192c47b982e54d
MD5 c3d251e27e9f275a1c60e228afca7f1e
BLAKE2b-256 e6fc9c232e297d3c18fce38e09543d87d6de9a8059ed010588069e868f336c4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page