Conditional instantiation w/ joinCondition not working anymore since v6.3 #236
Labels
bug
Something isn't working
next release
The bug is fixed and the fix will be available in the next release.
Environment
rmlmapper v.6.3.0, v6.5.1
Linux/WSL2
Java 11, 17
Namespaces
Problem
Given the following kind of input XML with relationships between
Organization
andAddress
, where the second of threeOrganization
s does not have aStreetName
in itsAddress
:and the following kind of RML mapping involving a null-default conditional reference on the
subjectMap
of a joinedparentTriplesMap
, in order to avoid creating the relatedAddress
instance if certain elements (e.g.StreetName
) are absent:Actual
Results in an unexpected null error:
Expected
Should result in an output with just two
Address
instances related by the rightOrganization
instances (and not the third one which fails the condition and therefore would have a nullsubjectMap
leading to no instantiation):Wrong
If one removes the
joinCondition
:the transformation works, but of course results in erroneous output as the child instances are all related by all parents:
Workaround
None. Use v6.2.2 or below to get the right result.
MWE
rml-mwe-conditional-error.zip
The text was updated successfully, but these errors were encountered: