Skip to content

JSONPath ref to array requires iteration #3

Description

@termontwouter

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" ] ;
  ] .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions