RMLio / RMLio/MappingWeaver-java

Very different behavior on iterators compared to RMLViewer + RMLMapper

Aperta
#6 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Java
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Following up on #3, but using LogicalViews, there's a big gap between what MappingWeaver allows to access array values, versus what RMLViewer + RMLMapper allow.

Given the following scaffolding:

:view a rml:LogicalView ;
  rml:viewOn [
    # JSONPath root iterator over { "key": [ "1", "2" ] }
  ] ;
  rml:field [
    rml:fieldName "key"
    # insert field definition from list below
  ] .

:mapping a rml:TriplesMap ;
  rml:logicalSource :view ;
  rml:subjectMap [ rml:termType rml:BlankNode ] ;
  rml:predicateObjectMap [
    rml:predicate <urn:example:hasValue> ;
    rml:objectMap [ 
      # insert corresponding reference from field definitions below
    ]
  ] .

A. With direct reference rml:reference "key" in the mapping:

  • rml:reference "key[*]" in the view's field works
  • rml:reference "$.key[*]" in the view's field works
  • rml:reference "key" in the view's field fails in MappingWeaver
  • rml:reference "$.key" in the view's field fails in MappingWeaver
  • rml:iterator "$.key[*]" (without nested field) fails in MappingWeaver and RMLViewer+RMLMapper

B. With nested reference rml:reference "key.value" in the mapping:

  1. Using rml:iterator "$.key[*]" ; rml:field [ rml:fieldName "value" ; ... ] in the view:
  • rml:reference "@" in the nested field works (and MappingWeaver adds canonical type)
  • rml:reference "[*]" in the nested field fails in MappingWeaver
  • rml:reference "$" in the nested field fails in MappingWeaver
  1. Using rml:iterator "key[*]" [ rml:fieldName "value" ; ... ] in the view, all of the references above (@, [*], $) fail in MappingWeaver

  2. Using rml:iterator "$.key" [ rml:fieldName "value" ; ... ], in the view, all of the references above fail in MappingWeaver

  3. Using rml:iterator "key" [ rml:fieldName "value" ; ... ], in the view, all of the references above fail in MappingWeaver

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Start by reproducing the supplied LogicalViews scaffolding and the iterator/reference cases, then trace how MappingWeaver handles nested fields and array values. Compare the results with RMLViewer and RMLMapper; done means the differing cases have an agreed, tested behavior or the incompatibility is clearly documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.