Open Melchyore opened 1 year ago
Hello! Happy to help.
First, when running your example, I'm seeing an error that the rr
prefix is not defined in the mapping you provided.
So add @prefix rr: <http://www.w3.org/ns/r2rml#> .
to the top of your mapping file.
After fixing that, I can replicate the error you are experiencing. This error comes from the fact that you have PredicateMaps with no rr:constant
. I see that you are trying to define the value of the PredicateMaps using an rml:reference
to your data (eg. map:pm_003
). Unfortunately, RocketRML (and thus this library) does not (yet) have support for reference valued PredicateMaps. I'm not sure why the original authors didn't support references and templates for PredicateMaps. Hopefully I'll have time soon to do more refactoring and add those as features here.
Also, I can't find any tests specifically for using a reference in a PredicateMap in the RML Test Cases so maybe the creators and early implementers didn't expect it to be used that way (ie. they assumed data sources wouldn't have URIs in them to use as predicates in generated rdf?)
@adlerfaulkner Thank you for your answers! In fact, the RML rules are generated based on a YARRRML template on Matey. So I just write YARRRML and RML is generated automatically. Unfortunately, I'm not really an expert with RML rules, that's why I raised this issue. It would be really awesome to support RML rules generated by Matey.
Thanks again!
Hello!
(I opened the same issue in RocketRML repository, but I think it's not maintained anymore)
I'm facing a weird problem. I have an RML generated by Matey that I want to try on RocketRML (and this package, locally), however, whenever I submit the input + RML to generate N-Tripples (RDF), I get the following error:
TypeError: Cannot read properties of undefined (reading '@id')
This is the RML
CSV data
Can you help me, please?