RMLio / RMLio/MappingWeaver-java

JSONPath ref to array requires iteration

Aperta
#3 0 commenti 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

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" ] ;
  ] .

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 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.

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
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.