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.1.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.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: triplifier-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ef76136d848376f93259fbb02e9ccde43daa883291cd1f407e4d2cb0c5458cf8
MD5 cb036b40563ab41efe467c24cc89dab5
BLAKE2b-256 0bbf149debaae916a415b67a6106c4c0a60e67464c2fa0eafeebe87d1147bcd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: triplifier-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0b6a1593def47d08c65322c97772bf5d8a6d8541649b63de231a91dd7dfe598
MD5 6bcd9cac156fcb859d99118fb9685b8d
BLAKE2b-256 cd82b98b23a66a4df0052d4b87f43a08d97b63accf76627a4cc472c58e745a19

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