Skip to content

Basic script that extracts information from the ontology to generate a YARRRML template

License

Notifications You must be signed in to change notification settings

oeg-upm/owl2yarrrml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

python3 -m pip install -r requirements.txt
python3 translate.py -i ontology.xml -o mapping.yml

About

Basic script that extracts information from the ontology to generate a YARRRML template

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages