RML conditional mapping using custom functions. #56
-
Hi, If the Address field is not null, I need to establish a relationship between the Name and Email entities using the predicate "hasContactDetails". I attempted the following code but was unable to achieve the desired outcome. The function isNotNullCustom is a custom Java function that returns true if the value is not null. I’m using java-rml mapper. @Prefix rr: http://www.w3.org/ns/r2rml# .
I am receiving the following error.
Thank You.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Maybe @bjdmeest can answer this question |
Beta Was this translation helpful? Give feedback.
-
The issue is actually that, when you load your custom functions (using the |
Beta Was this translation helpful? Give feedback.
The issue is actually that, when you load your custom functions (using the
-f
directive in the RMLMapper CLI), the original GREL functions are no longer loaded (to make sure no conflicts arise). So if you add your own function and also want to load the grel functions, make sure to also add the references to the grel functions (available at https://github.com/RMLio/rmlmapper-java/blob/72c6a636d7f7bd9e09dc0028f2ccb7b26b76c32e/src/main/resources/functions_grel.ttl and https://github.com/FnOio/grel-functions-java/blob/master/src/main/resources/grel_java_mapping.ttl). Typing this, I have the feeling it makes more sense to keep them loaded by default. I made an issue at RMLio/rmlmapper-java#244