Iterating over single value fails
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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" ]
] .
- 主要语言
- Java
- 星标
- 3
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RMLio/MappingWeaver-java 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
RMLio/MappingWeaver-java#11 ·
-
难度 3/5 1-2 天 新手友好度 55/100
RMLio/MappingWeaver-java#13 ·
-
难度 3/5 1-2 天 新手友好度 58/100
RMLio/MappingWeaver-java#12 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 55/100
RMLio/MappingWeaver-java#10 ·
-
难度 3/5 1-2 天 新手友好度 55/100
查看 RMLio/MappingWeaver-java 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
liquid-java/liquidjava#321 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
OpenConext/OpenConext-access#1015 ·
维护者通常 1 天内回复
-
68000: FDBcc branch target is 2 bytes too low (uses inst_start+2 instead of the displacement word)未关闭
难度 2/5 1-3 小时 新手友好度 82/100
NationalSecurityAgency/ghidra#9702 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
apache/rocketmq-dashboard#5358 ·
维护者通常 3 天内回复