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

Uploaded Python 3

File details

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

File metadata

  • Download URL: triplifier-2.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f52d0e4c5659798cd0f744eb93cc002f41c3f3e31fd6e3a2dba0c9e78eff1245
MD5 c8eb83368d660dcfd1667e51b44e46f0
BLAKE2b-256 837a483739f5ac5f3ce332325268e1363a953ad8d316cc2d817d3cb5c7ec5c8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: triplifier-2.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4cf972e567b474431a4ecb7ead82003d6eb73ec2a3432c41345339cc3a921faa
MD5 8834d1b917d842f5d255928dc0bad639
BLAKE2b-256 8ccee4c02e331900d8f29548e795c29a02c7bfae0f87e738f945f8f7bf21d6b3

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