Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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
```