Hello,
I have a problem with R2RML but I don’t understand what I’m doing wrong.
In the following code:
<#TriplesMapGSDAH_SCHEDA_TI_VARIANT_TITLE_LESSICAL_EXPR> a rr:TriplesMap;
rr:logicalTable [ rr:sqlQuery """SELECT tif.SUBCOUNTER,
auvt.VALUE_I, auvt.VALUE_E
FROM DB.AH.GSDAH_SUB_TIF tif
JOIN DB.VOC.VOC_AH_AUVT auvt ON tif.TIFT=auvt.CODE ;""" ] ;
rr:subjectMap [ rr:termType rr:IRI ; rr:template "http://localhost:8890/example/work/variantTitle/{SUBCOUNTER}#this"; rr:class bf:variantTitle; rr:graph <http://localhost:8890/example#> ];
rr:predicateObjectMap [ rr:predicateMap [ rr:constant DB:subcounter ] ; rr:objectMap [ rr:column "SUBCOUNTER" ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant bf:variantType ] ; rr:objectMap [ rr:column "VALUE_I" ; rr:language "it" ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant bf:variantType ] ; rr:objectMap [ rr:column "VALUE_E" ; rr:language "en" ]; ] .
after, I run it on InteractiveSQL like is as is indicated in the following tutorial Linked Data Views
https://medium.com/virtuoso-blog/customizing-r2rml-scripts-in-virtuoso-d57973d8fab
When I go to dereference my URI, the last line seems that it is ignored (i tryed both Curl an Sparql queries).
The last line:
rr:predicateObjectMap [ rr:predicateMap [ rr:constant bf:variantType ] ; rr:objectMap [ rr:column "VALUE_E" ; rr:language "en" ]; ] .
It happens with all my TripleMap, with or without rr:language.
Another problem it is that rr:language is always ignored.
Is there something wrong in my code?