Skip to main content

A tool for canonizing Turtle (`.ttl`) ontology files.

Project description

Turtle Canon

It's turtles all the way down

Codecov main CI main

A tool for canonizing Turtle (.ttl) ontology files.

The domain standardized tool for editing and creating ontologies is Protégé. The Turtle (.ttl) file format is a format based on XML and OWL, which is considered one of the most readable formats for OWL ontology files. However, Protégé writes the order of ontology entities differently depending on the version, this tool mitigates this by running the file through a canonizing parser that ensures the classes are sorted and listed in the same way, always.

The main use case for developing this tool is when developing ontologies utilizing versioning tools such as git, svn or similar, which are single character diff-sensitive.

Install

The tool is written for Python 3.10, so one needs at minimum Python 3.10 installed to run it at this stage. The plan is to make a stand-alone executable for each of the major OS'.

Install via PyPI (stable version, recommended):

python3.10 -m pip install turtle-canon

Install via GitHub (development version):

python3.10 -m pip install git+https://github.com/CasperWA/turtle-canon#egg=turtle-canon

Usage

To run the tool, simply run:

turtle-canon path/to/my_ontology_file.ttl

For more information about the tool and the options available, run turtle-canon --help.
To check the version run turtle-canon --version.

The currently latest stable version is 0.1.1.

License & copyright

This tool is MIT Licensed and copyright © 2021 Casper Welzel Andersen (GitHub, GitLab, website) & SINTEF.

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

turtle_canon-0.1.1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

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

turtle_canon-0.1.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file turtle_canon-0.1.1.tar.gz.

File metadata

  • Download URL: turtle_canon-0.1.1.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for turtle_canon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 77d14a7172e2331f6c7a08fe362e0b09303dbf3a624d4cce94376568b1946d1d
MD5 e6218ff8f5f634f38724fb018c9d21c9
BLAKE2b-256 5017dbe7ef2e30851889d3fc61e9a60bce74d2a1c2a57b459b87e49ef998ef06

See more details on using hashes here.

Provenance

The following attestation bundles were made for turtle_canon-0.1.1.tar.gz:

Publisher: cd_release.yml on CasperWA/turtle-canon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file turtle_canon-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: turtle_canon-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for turtle_canon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ac59c984c7b4451a4df2f06ff3cefc83bd050837e1f17075380d06a116a5c8b
MD5 343449979e96a6267fe15f048a1d8b55
BLAKE2b-256 9fd0c5fc35748ffb5fae51ea1b16ab46ca48c217543c3d33a5aba1913df618ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for turtle_canon-0.1.1-py3-none-any.whl:

Publisher: cd_release.yml on CasperWA/turtle-canon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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