A Python library for translating OWL ontologies into YARRRML mappings
Project description
Transforming your ontology into YARRRML mappings
This script generates a YARRRML template from the input ontology. The transformations made are:
| Ontology | Mapping |
|---|---|
| Class | TriplesMap + Simple PredicateObjectMap (rdf:type, class) |
| Data Property | Simple PredicateObjectMap in the TriplesMap corresponding to the class defined in the domain of the property |
| Object Property | Join PredicateObjectMap in the TriplesMap corresponding to the class defined in the domain of the property and where the parentTriplesMap is the TriplesMap corresponding to the class defined in the range of the property |
How to execute it
Execution from CLI
The input ontology can be serialized in NTRIPLES, RDF/XML or Turtle
python3 -m pip install owl2yarrrml
python3 -m owl2yarrrml -i paht/ontology.xml -o ouput_path/mapping.yml
Execution as a library
The ontology has to be provided in RDF/XML.
import owl2yarrrml
import owlready2
ontology=owlready2.get_ontology("file://path/to/my/ontology.xml").load()
yarrrml_content = owl2yarrrml.translate(ontology)
Authors
CiTIUS - Universidade de Santiago de Compostela (2023-now) and Ontology Engineering Group - Universidad Politécnica de Madrid (2020-2023):
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 owl2yarrrml-1.2.tar.gz.
File metadata
- Download URL: owl2yarrrml-1.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1bc53a68dc9e6a9be909153c4e948aec50e210e1a4694264e41b4cd3825129
|
|
| MD5 |
b38159acb117cb9aa7291482775808c5
|
|
| BLAKE2b-256 |
f403d45020159122621173256a0ffb2d8cae43a7dba1932a5801502d33126c5b
|
Provenance
The following attestation bundles were made for owl2yarrrml-1.2.tar.gz:
Publisher:
pypi-publish.yml on citiususc/owl2yarrrml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
owl2yarrrml-1.2.tar.gz -
Subject digest:
ba1bc53a68dc9e6a9be909153c4e948aec50e210e1a4694264e41b4cd3825129 - Sigstore transparency entry: 215004924
- Sigstore integration time:
-
Permalink:
citiususc/owl2yarrrml@d3d913b34fc24ffcdc334a6019909c9471a154f0 -
Branch / Tag:
refs/tags/v1.2 - Owner: https://github.com/citiususc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@d3d913b34fc24ffcdc334a6019909c9471a154f0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file owl2yarrrml-1.2-py3-none-any.whl.
File metadata
- Download URL: owl2yarrrml-1.2-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
938db037747acb65bd150a859b3d10b03f6ef21069c346be4c1f2c31cf86916e
|
|
| MD5 |
88fb558ab8f25415c17999f2d879deac
|
|
| BLAKE2b-256 |
811979eb0020a579b6417d6355be229302311f34f06bab09d6137c9a09c38760
|
Provenance
The following attestation bundles were made for owl2yarrrml-1.2-py3-none-any.whl:
Publisher:
pypi-publish.yml on citiususc/owl2yarrrml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
owl2yarrrml-1.2-py3-none-any.whl -
Subject digest:
938db037747acb65bd150a859b3d10b03f6ef21069c346be4c1f2c31cf86916e - Sigstore transparency entry: 215004929
- Sigstore integration time:
-
Permalink:
citiususc/owl2yarrrml@d3d913b34fc24ffcdc334a6019909c9471a154f0 -
Branch / Tag:
refs/tags/v1.2 - Owner: https://github.com/citiususc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@d3d913b34fc24ffcdc334a6019909c9471a154f0 -
Trigger Event:
push
-
Statement type: