Using a normal JSONPath references (not an iterator) towards a node that is a JSON array results in an error: "Reference field reading an array without iteration." I am not sure if this is an issue or a feature, but in any case I cannot find this behavior as a requirement in the RML spec. Moreover, RMLMapper and RMLViewer do not fail on this, afaik.
Minimal example:
:mapping a rml:TriplesMap ;
rml:logicalSource [
# JSONPath root iterator over { "key": [ "1", "2" ] }
] ;
rml:subjectMap [ rml:termType rml:BlankNode ] ;
rml:predicateObjectMap [
rml:predicate <urn:example:hasValue> ;
rml:objectMap [ rml:reference "key" ] ;
] .
Using a normal JSONPath references (not an iterator) towards a node that is a JSON array results in an error: "Reference field reading an array without iteration." I am not sure if this is an issue or a feature, but in any case I cannot find this behavior as a requirement in the RML spec. Moreover, RMLMapper and RMLViewer do not fail on this, afaik.
Minimal example: