-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested functions in condition don't use referencingObjectMaps #68
Comments
What exactly is the issue? Could you provide the expected RML? I get this with the parser
which seems correct. So could this a bug in the RMLMapper? |
I guess if it means that rr:parentTriplesMap is inherited in nested functions, then yes, it's a bug in the RMLMapper :). In any case, I guess the mapper shouldn't try its own logicalsource if it cannot find the parenttriplesmap's source.. Made an RMLMapper-java issue! RMLio/rmlmapper-java#53 |
For completeness: this very specific use case is in fact a non issue. Conforming to R2RML, if you specify multiple conditions on one join condition, they are de facto assumed to be conjunctive (i.e., an AND operator), see https://www.w3.org/TR/r2rml/#dfn-joint-sql-query : you can have multiple join conditions. So this very specific use case could be rephrased into the following, excluding the need for prefixes:
ex: http://example.com#
grel: http://users.ugent.be/~bjdmeest/function/grel.ttl#
idlab-fn: "http://example.com/idlab/function/"
mappings:
myMapping:
sources:
- ["data.csv~csv"]
s: ex:$(ID)
po:
- [a, ex:Person]
- [ex:label, $(name)]
- p: ex:isFriendsWith
o:
- mapping: myOtherMapping
condition:
- function: idlab-fn:equal
parameters:
- [grel:valueParameter, "$(otherID)", s]
- [grel:valueParameter2, "$(friendID)", o]
- function: idlab-fn:equal
parameters:
- [grel:valueParameter, "$(name)", s]
- [grel:valueParameter2, "$(friendName)", o]
myOtherMapping:
sources:
- ["data2.csv~csv"]
s: http://example.com#heroes_$(ID)
po:
- [a, ex:Hero]
- [ex:label, $(name)] |
Issue type: 🐛 Bug
Description
The following YARRRML code doesn't use referencingObjectMaps in the nested functions
Steps
Trying to execute the parsed RML makes the RMLMapper error
Cannot find friendID in data.csv
Environment
Matey
The text was updated successfully, but these errors were encountered: