JSONPath ref to array requires iteration
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start with the minimal JSONPath mapping in the issue and trace how a normal reference is handled when its value is an array. Check the RML specification and compare the behavior with RMLMapper and RMLViewer; done when the expected array-reference behavior is agreed and covered by a regression test.
Written by the indexing model from the issue text.
Description
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" ] ;
] .
- Dominant language
- Java
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RMLio/MappingWeaver-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
RMLio/MappingWeaver-java#11 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
RMLio/MappingWeaver-java#13 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
RMLio/MappingWeaver-java#12 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
RMLio/MappingWeaver-java#10 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in RMLio/MappingWeaver-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100