semvec/pypi-packages huggingface dataset:
pretty-yarrrml2rml 0.6.1.dev1663601857
The tool translates mapping rules in RML from YARRRML serialization to RDF turtle in a pretty and interpreatable way for humans. The translation is based on RML and YARRRML specifications.
License: Apache 2.0
Requires Python: >=3.6

# yarrrml-translator

![GitHub](https://img.shields.io/github/license/oeg-upm/yarrrml-translator?style=flat)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7024501.svg)](https://doi.org/10.5281/zenodo.7024501)
![PyPI](https://img.shields.io/pypi/v/yarrrml-translator?style=flat)
![GitHub Release Date](https://img.shields.io/github/release-date/oeg-upm/yarrrml-translator)

The tool translates mapping rules from YARRRML in a turtle-based serialization of RML. The translation is based 
on the [RML]((https://rml.io/specs/rml/ "RML Spec") and [YARRRML]((https://rml.io/yarrrml/spec/ "YARRRML Spec") specifications.

## Limitations:
We are working on inlcuding the following features which are not yet implemented:
- Translation to [R2RML](https://www.w3.org/TR/r2rml)
- Functions included using the [FnO](https://fno.io/) Ontology

## Execution
In order to execute the code run you can download de PyPi module:
```bash
python3 -m pip install pretty-yarrrml2rml
python3 -m pretty_yarrrml2rml -i path_to_input_yarrrml.yml -o path_to_output_rml.rml
```

If you want to include the module in your implementation:
```python
import pretty_yarrrml2rml
import yaml

rml_content = pretty_yarrrml2rml.translate(yaml.safe_load(open("path-to-yarrrml")))
```

## Authors
Ontology Engineering Group - Data Integration:
- [David Chaves-Fraga](mailto:david.chaves@upm.es)
- Luis López Piñero (Final bachelor thesis - v0.1)