oeg-upm / yatter

Translate YARRRML into easy-to-read [R2]RML mappings
https://doi.org/10.5281/zenodo.7024500
Apache License 2.0
22 stars 6 forks source link

Create dictionary for yarrrml keys #34

Closed arenas-guerrero-julian closed 1 year ago

arenas-guerrero-julian commented 1 year ago

ods-yarrrml-toolkit is a library in python to convert heterogeneous data to RDF using YARRRML.

Although it is not the same than this tool, maybe some code can be reused (if the license allows so). For instance they use regex expressions that look (at a fast glance) cleaner that the matching that the yarrrml-translator is doing.

dachafra commented 1 year ago

After an analysis of the script, the only interesting part that could be reused here is the yarrrml keys dictionary, to support all (shortcuts and expanded ones) in a more optimal way.

dachafra commented 1 year ago

Dictionaries for keys names have been implemented (see here). However, at this moment we cannot see any relevant point on how they can help to improve the access to the data, but we will study it in a potential code refactoring for future versions.

After analyzing as well the regex expressions, they are very simple and do not cover other potential cases (see for example XPath expressions with references in the PPDS mappings), where other YARRRML parsers fail. Retrieving complex templates from YARRRML has been updated to consider also these cases.

I think we can close this issue.