Allow XPath expressions in RML whose result is a string #128
Labels
bug
Something isn't working
next release
The bug is fixed and the fix will be available in the next release.
When translating an XML file, rml:reference properties in the RML have values that are XPath expressions. If such an XPath expression results in a node or a node-set, all is well. The mapper uses XPath's inherent ability to convert a node-set into a string and then uses that string in the RDF output. However, if the XPath result is of type string, the mapper fails because it is expecting a node-set. This is easily reproduced by wrapping an XPath expression in a string function, like so:
It would be helpful if the mapper would handle a string result as well as a node-set, because the functions available in XPath are fairly rich and can in many cases sidestep the need for RML function calls.
The text was updated successfully, but these errors were encountered: