Skip to main content

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

This version

1.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

owl2yarrrml-1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

owl2yarrrml-1.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

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

Hashes for owl2yarrrml-1.2.tar.gz
Algorithm Hash digest
SHA256 ba1bc53a68dc9e6a9be909153c4e948aec50e210e1a4694264e41b4cd3825129
MD5 b38159acb117cb9aa7291482775808c5
BLAKE2b-256 f403d45020159122621173256a0ffb2d8cae43a7dba1932a5801502d33126c5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for owl2yarrrml-1.2.tar.gz:

Publisher: pypi-publish.yml on citiususc/owl2yarrrml

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

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

Hashes for owl2yarrrml-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 938db037747acb65bd150a859b3d10b03f6ef21069c346be4c1f2c31cf86916e
MD5 88fb558ab8f25415c17999f2d879deac
BLAKE2b-256 811979eb0020a579b6417d6355be229302311f34f06bab09d6137c9a09c38760

See more details on using hashes here.

Provenance

The following attestation bundles were made for owl2yarrrml-1.2-py3-none-any.whl:

Publisher: pypi-publish.yml on citiususc/owl2yarrrml

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