Iterating over single value fails
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start by reproducing issue #9 with the minimal RML mapping and JSON value shown in the report, then trace how MappingWeaver handles the [*] reference when the referenced value is not an array. Done means the single JSON value is returned consistently with the behavior described for RMLViewer/RMLMapper, with coverage for this example.
Written by the indexing model from the issue text.
Description
Related to the difference in iterating over arrays (cf. #6), I also noticed that MappingWeaver fails when using the index wildcard [*] in a reference to a JSON value that is not an array. Again, I don't know what the RML spec would prescribe in such cases, but RMLViewer/RMLMapper nevertheless return the single JSON value instead.
Minimal example:
:view a rml:LogicalView ;
rml:viewOn [
# JSONPath root iterator over { "key": "value" }
] ;
rml:field [ rml:fieldName "key" ; rml:reference "key[*]" ]
.
:mapping a rml:TriplesMap ;
rml:logicalSource :view ;
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