issues
search
SDM-TIB
/
SDM-RDFizer
An Efficient RML-Compliant Engine for Knowledge Graph Construction
https://doi.org/10.5281/zenodo.3872103
Apache License 2.0
112
stars
25
forks
source link
datatype bug
#43
Closed
samiscoding
closed
3 years ago
samiscoding
commented
3 years ago
name: Bug report
Describe the bug
Consider this mapping rules:
rml:logicalSource [ rml:source "data.csv"; rml:referenceFormulation ql:CSV;]; rr:subjectMap [ rr:template "http://example/Class1/{column1}"; rr:class clarify:Class1; ]; rr:predicateObjectMap [ rr:predicate clarify:date; rr:objectMap [ rml:reference "date"; rr:datatype xsd:date ]]; rr:predicateObjectMap [ rr:predicate clarify:hasWhatever; rr:objectMap [ rr:parentTriplesMap
; ]].
rml:logicalSource [ rml:source "/mnt/e/data/data/slcg_notes/diagnosis_processed.csv"; rml:referenceFormulation ql:CSV; ]; rr:subjectMap [ rr:template "http://Class2/{column2}"; ]; rr:predicateObjectMap [ rr:predicate rdfs:seeAlso; rr:objectMap [ rr:template "http://Something/{column3}"; ]]. **Expected outcome is**
. **While Generated output is**
"http://Class2/4"^^
**Test** Modifying
to this provides the expected result:
rml:logicalSource [ rml:source "/mnt/e/data/data/slcg_notes/diagnosis_processed.csv"; rml:referenceFormulation ql:CSV; ]; rr:subjectMap [ rr:template "http://Class2/{column2}"; rr:class clarify:Class2; ]; rr:predicateObjectMap [ rr:predicate rdfs:seeAlso; rr:objectMap [ rr:template "http://Something/{column3}"; ]].
name: Bug report
Describe the bug
Consider this mapping rules: