I have this error from time to time writing queries:

Variable '_::trans_subj_11_6' is used in subexpressions of the query but not 
assigned

Often it "goes away" unchecking the "Strict checking of void variables" 
option and so not appear calling the sparql endpoint via rest.
In this case the error show up when using 2 optional with a recursive 
property path in each of them.
Removing a recursion or an optional the error does not occour anymore.
Here the query


PREFIX schema: <http://schema.org/>
CONSTRUCT {
<http://sapienzadigitallibrary.example.it/identifier/RMSDIGILAB_ARCHIVICOMPUTER>
 
schema:name ?elValue .
<http://sapienzadigitallibrary.example.it/identifier/RMSDIGILAB_ARCHIVICOMPUTER>
 
schema:name ?subjectComplexTopic.
}
WHERE {
OPTIONAL
{
  
<http://sapienzadigitallibrary.example.it/identifier/RMSDIGILAB_ARCHIVICOMPUTER>
 rdf:rest*/rdf:first ?elValue .
}
OPTIONAL
{
<http://sapienzadigitallibrary.example.it/identifier/RMSDIGILAB_ARCHIVICOMPUTER>
 
(rdf:rest/rdf:first)* ?subjectComplexTopic.
}
}

Here the url on the query on dbpedia (no expected result):
http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=PREFIX+schema%3A+%3Chttp%3A%2F%2Fschema.org%2F%3E%0D%0ACONSTRUCT+{%0D%0A%3Chttp%3A%2F%2Fsapienzadigitallibrary.uniroma1.it%2Fidentifier%2FRMSDIGILAB_ARCHIVICOMPUTER%3E+schema%3Aname+%3FelValue+.%0D%0A%3Chttp%3A%2F%2Fsapienzadigitallibrary.uniroma1.it%2Fidentifier%2FRMSDIGILAB_ARCHIVICOMPUTER%3E+schema%3Aname+%3FsubjectComplexTopic.%0D%0A}%0D%0AWHERE+{%0D%0AOPTIONAL%0D%0A{%0D%0A+%3Chttp%3A%2F%2Fsapienzadigitallibrary.uniroma1.it%2Fidentifier%2FRMSDIGILAB_ARCHIVICOMPUTER%3E+rdf%3Arest*%2Frdf%3Afirst+%3FelValue+.%0D%0A}%0D%0AOPTIONAL%0D%0A{%0D%0A%3Chttp%3A%2F%2Fsapienzadigitallibrary.uniroma1.it%2Fidentifier%2FRMSDIGILAB_ARCHIVICOMPUTER%3E+%28rdf%3Arest%2Frdf%3Afirst%29*+%3FsubjectComplexTopic.%0D%0A}+%0D%0A}%0D%0A%0D%0A%0D%0A&format=text%2Fx-html%2Bul&timeout=30000&debug=on


Thanks
Nicola






------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to