Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oeg-upm/owl2yarrrml
Basic script that extracts information from the ontology to generate a YARRRML template
https://github.com/oeg-upm/owl2yarrrml
Last synced: about 1 month ago
JSON representation
Basic script that extracts information from the ontology to generate a YARRRML template
- Host: GitHub
- URL: https://github.com/oeg-upm/owl2yarrrml
- Owner: oeg-upm
- License: apache-2.0
- Created: 2020-10-16T11:40:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T11:17:38.000Z (about 2 years ago)
- Last Synced: 2024-08-03T18:15:59.746Z (5 months ago)
- Language: Python
- Homepage: https://doi.org/10.5281/zenodo.5603173
- Size: 25.4 KB
- Stars: 6
- Watchers: 8
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kgc-tools - OWL2YARRRML - Generates a mapping template in YARRRML given an ontology. (Mapping Generators / Previous RML version (and extensions))
README
# Transforming your ontology to 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
In order to avoid problems, we recommend that the input ontology follows RDF/XML syntax```python
python3 -m pip install -r requirements.txt
python3 translate.py -i ontology.xml -o mapping.yml
```