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.1.0.tar.gz (17.2 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.1.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: triplifier-2.1.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

Hashes for triplifier-2.1.0.tar.gz
Algorithm Hash digest
SHA256 9e6ae6f58e811145b6a27a1fa1fb995e80c3b1c3be4e4f8ce2aa670f29e34890
MD5 562493aef4eaaa9bfef984b3b2961df4
BLAKE2b-256 001f9aa9a2e15b602d7e87ae116ec41acf0b7d4cd09627bc1e2c942f0a1bd229

See more details on using hashes here.

File details

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

File metadata

  • Download URL: triplifier-2.1.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

Hashes for triplifier-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ffba330dc8cfa2bc0d733a68fd424d0b47c61ebf7030b95ad447c005a6a2a09
MD5 10420dca2d6506586a7568905bb68b79
BLAKE2b-256 44dbad99907650ab8a2868296f94f25b61902a79e2f10b576afe099703fa6c44

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