Open robert-mieth opened 3 years ago
Hi @robert-mieth
YARRRML rules are converted to RML rules. The YARRRML parser itself doesn't interpret any of the rules. So no changes are made to the XPath paths. Are you using the RMLMapper to execute the converted RML rules? Because then it depends on the XML library that is used in the RMLMapper.
Hi @pheyvaer I'm sorry for the late reply. I just double checked and the generated RML rules seem to be fine. Using the RMLMapper they generate the expected triples. I think that I got thrown off by the error messages printed by the yarrrml-parser:
prefix "ancestor" was not found.
prefix "ancestor" was not found.
I thus incorrectly assumed that the RML generation failed. It would be great if you could tweak the logger to not print an error message when XPath prefixes are used.
Hi @robert-mieth
That makes sense. Is there a way to know which prefixes are XPath?
Issue type: :question: Question
I've been trying to use XPath axes such as
parent::*
orancestor::*
within templates in nested mappings. I assumed that I could use them like a rr:parentTriplesMap in the RMLMapper.XML:
YARRRML:
I personally quite like the option to deal with (more heavily) nested XML by using XPath axes.
Is there a way to use XPath axes with the YARRRML Parser?