RMLio / RMLio/MappingWeaver-java

JSONPath ref to array requires iteration

Ouverte
#3 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
Java
Étoiles
3
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
backend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.