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

Uploaded Python 3

File details

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

File metadata

  • Download URL: triplifier-2.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a5c0e0f5b4932436ccd3277e3746b3db485cc70880c9b844dd1599e84708d247
MD5 e3045987a2c049b51acd3864cce191e1
BLAKE2b-256 b40f3c32afffb0a0113ba1206b78c1ff41950aaa85ea374f89531f0769f1177f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: triplifier-2.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0eb4a225ac421ae8728deb45923775afc03f40d73a670bfcde13071b90a10faf
MD5 0aa96818db5f5d7710688e3282d6a7bd
BLAKE2b-256 54091eff2590a8ec9e64056eeb161386f0bf0e2e362c2619194482609a3ad41c

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