RMLio / RMLio/MappingWeaver-java

Templates not working for non-http IRIs

Aperta
#5 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

When using rml:template to construct an IRI, explicitly indicated with rml:termType, the triples in question are missing from the output, except when they result in a well-formed HTTP URI.

Minimal example:

:mapping a rml:TriplesMap ;
  rml:logicalSource [
    # JSONPath root iterator over { "key": "value" }
  ] ;
  rml:subjectMap [ rml:termType rml:BlankNode ] ;
  rml:predicateObjectMap [
    rml:predicate <urn:example:http> ;
    rml:objectMap [
      rml:termType rml:IRI ;
      rml:template "http://example.org/{key}"
    ]
  ], [
    rml:predicate <urn:example:file> ;
    rml:objectMap [
      rml:termType rml:IRI ;
      rml:template "file:///example/{key}"
    ]
  ], [
    rml:predicate <urn:example:urn> ;
    rml:objectMap [
      rml:termType rml:IRI ;
      rml:template "urn:example:{key}"
    ]
  ], [
    rml:predicate <urn:example:relative> ;
    rml:objectMap [
      rml:termType rml:IRI ;
      rml:template "./{key}"
    ]
  ] .

Output:

_:Blank1 <urn:example:http> <http://example.org/value> .

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 running the minimal mapping example and tracing how rml:termType rml:IRI with rml:template is handled. Compare the HTTP, file, URN, and relative templates to find why only the HTTP result is emitted. Done means all four expected triples appear in the output.

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

Valutazione

Stack tecnologico
java
Ambito
data-engineering
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.