RMLio / rmleditor-ce

RMLEditor Community Edition
https://app.rml.io/rmleditor/
8 stars 1 forks source link

How to handle json non objects array #3

Closed agamboa23 closed 3 years ago

agamboa23 commented 3 years ago

Issue type: :question: Question

If I have a simple json as following:

{ "id": "0", "values": ["A", "B", "C"] }

I am trying to map a new entity per element in the values array. I can successfully select $ as the iterator and use the rml:reference {values.[*]} to create attributes (as shown in the test samples of the mapper source code) but cannot obtain the same results if trying to map to entities.

In the following image, the top one works, but the bottom one just maps the first element of the list:

image

Results: image

Note: Thank you very much for the support, your tool has been incredibly useful on my research and hope to keep using it in the future.

thomas-delva commented 3 years ago

Hi and thank you for using RML and the RMLEditor,

Creating subjects directly from JSON array values is a known issue in using RML with JSONPath. If a solution becomes available we will update the issue here.

Closing this issue as it is more related to the language and mapper than to the editor.