A tool for canonizing Turtle (`.ttl`) ontology files.
Project description
Turtle Canon
It's turtles all the way down
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77d14a7172e2331f6c7a08fe362e0b09303dbf3a624d4cce94376568b1946d1d
|
|
| MD5 |
e6218ff8f5f634f38724fb018c9d21c9
|
|
| BLAKE2b-256 |
5017dbe7ef2e30851889d3fc61e9a60bce74d2a1c2a57b459b87e49ef998ef06
|
Provenance
The following attestation bundles were made for turtle_canon-0.1.1.tar.gz:
Publisher:
cd_release.yml on CasperWA/turtle-canon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
turtle_canon-0.1.1.tar.gz -
Subject digest:
77d14a7172e2331f6c7a08fe362e0b09303dbf3a624d4cce94376568b1946d1d - Sigstore transparency entry: 172546659
- Sigstore integration time:
-
Permalink:
CasperWA/turtle-canon@a7a1427ae656ba077e3a128b51aa5db8da81e58f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/CasperWA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd_release.yml@a7a1427ae656ba077e3a128b51aa5db8da81e58f -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ac59c984c7b4451a4df2f06ff3cefc83bd050837e1f17075380d06a116a5c8b
|
|
| MD5 |
343449979e96a6267fe15f048a1d8b55
|
|
| BLAKE2b-256 |
9fd0c5fc35748ffb5fae51ea1b16ab46ca48c217543c3d33a5aba1913df618ac
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
turtle_canon-0.1.1-py3-none-any.whl -
Subject digest:
2ac59c984c7b4451a4df2f06ff3cefc83bd050837e1f17075380d06a116a5c8b - Sigstore transparency entry: 172546660
- Sigstore integration time:
-
Permalink:
CasperWA/turtle-canon@a7a1427ae656ba077e3a128b51aa5db8da81e58f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/CasperWA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd_release.yml@a7a1427ae656ba077e3a128b51aa5db8da81e58f -
Trigger Event:
release
-
Statement type: