Hi Ivan, The full query is quite complex - I've included it in the attachment. I've also written a number of smaller, simpler queries that demonstrate the same behaviour ...
Under 6.1.3 it runs with no problem. Under 6.1.4 it returns the error. Both sub-queries run with no issue when run alone. It only breaks when the union is used. eg: prefix rdfs: <http://rdfs.org/sioc/ns#> prefix rdf: <http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> select ?s ?p ?o where { {select ?s ?p ?o where {?s rdf:domain ?domain; ?p ?o }} union {select ?s ?p ?o where {?s rdf:domain ?domain; ?p ?o }} } The inclusion of the union (conditions following the where {...} appear to not matter) appears to cause the issue. Regards, Peter Secomb clearbluewater.com.au On 23 February 2012 02:07, Ivan Mikhailov <[email protected]> wrote: > Hello Peter, > > What's the full text of the query? > > Best Regards, > > Ivan Mikhailov > OpenLink Software > http://virtuoso.openlinksw.com > > On Wed, 2012-02-22 at 16:42 +1100, Peter Secomb wrote: > > Hi everyone, > > > > We just upgraded virtuoso from 6.1.3 to 6.1.4 in our test environment > > and some sparql queries that were working appear to be breaking. We > > are getting the following error: > > > > Virtuoso 37000 Error SP031: SPARQL compiler: Internal error: > ssg_print_equiv_retval_expn(): select selid is out of scope > > > > > > The query is of the form: > > > > select ?s ? p ?o > > where { > > {select ?s ?p ?o where {conditions}} > > union > > {select ?s ?p ?o where {other conditions}} > > } > > > > All sub-queries run correctly as stand alone queries, however > > combining them together with a UNION under 6.1.4 throws the above > > error. It works without issue under 6.1.3 > > > > Does anyone have any thoughts on this? > > > > Regards, > > Peter Secomb > > clearbluewater.com.au > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ Virtuoso-users mailing > list [email protected] > https://lists.sourceforge.net/lists/listinfo/virtuoso-users > > >
prefix rdfs: <http://rdfs.org/sioc/ns#> prefix rdf: <http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> select distinct ?s ?p ?o where { {select ?s ?p ?o where { ?s ?p ?o . ?s a <http://www.w3.org/2002/07/owl#ObjectProperty> . ?s <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> ?ont . filter(?ont like "http://localhost:8890/schemas/HR/") filter(?p like "http://www.w3.org/2000/01/rdf-schema#range") optional { ?s rdf:domain ?domain } filter (!bound(?domain) OR (bound(?domain) AND ?domain like "http://localhost:8890/schemas/HR/EMPLOYEES")) } } union {select ?s ?p ?o where { ?s ?p ?o . ?s a <http://www.w3.org/2002/07/owl#ObjectProperty> ; rdf:domain ?o . ?s <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> ?ont . filter(?ont like "http://localhost:8890/schemas/HR/") filter(?o like "http://localhost:8890/schemas/HR/EMPLOYEES") } } } order by ?s
