Create dictionary for yarrrml keys
arenas-guerrero-julian opened this issue · comments
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.
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.
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.