RMLio / RMLio/MappingWeaver-java
Iterating over single value fails
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Java
- Star
- 3
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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" ]
] .
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- backend, data
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100