Skip to content

leviheichou/yarrrml-translator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yarrrml-translator

GitHub DOI PyPI GitHub Release Date

The tool translates mapping rules from YARRRML in a turtle-based serialization of RML or R2RML. The translation is based on the RML and YARRRML specifications.

Limitations

We are working on including the following features which are not yet implemented:

  • Functions using the FnO Ontology

Installation:

pip install yarrrml-translator

Execution

To execute from command line run the following:

python3 -m yarrrml_translator -i path_to_input_yarrrml.yml -o path_to_output.ttl [-f R2RML]

-f R2RML is an optional parameter for translating input YARRRML into R2RML

If you want to include the module in your implementation:

  • for translating RML mappings:
import yarrrml_translator
import yaml

rml_content = yarrrml_translator.translate(yaml.safe_load(open("path-to-yarrrml")))
  • for translating R2RML mappings:
import yarrrml_translator
import yaml

R2RML_URI = 'http://www.w3.org/ns/r2rml#'
rml_content = yarrrml_translator.translate(yaml.safe_load(open("path-to-yarrrml")), mapping_format=R2RML_URI)

Authors

Ontology Engineering Group - Data Integration:

About

A translator from YARRRML to [R2]RML mappings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%