Open
Description
Moved here from: #670
define sql:signal-unconnected-variables 1
define sql:signal-void-variables 1
define input:default-graph-uri <http://dbpedia.org>
SELECT DISTINCT ?lc ?subj
WHERE { { { { <http://dbpedia.org/ontology/Organisation> <http://www.w3.org/2000/01/rdf-schema#subClassOf>+ ?subj . } UNION { <http://dbpedia.org/ontology/Organisation> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/<http://www.w3.org/2000/01/rdf-schema#subClassOf>* ?subj . }
FILTER EXISTS { { ?subj <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> . } UNION { [ ] <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?subj . } UNION { ?subj <http://www.w3.org/2000/01/rdf-schema#subClassOf> [ ] . } } } }
OPTIONAL { ?pLabel <http://www.w3.org/2000/01/rdf-schema#subPropertyOf>* <http://www.w3.org/2000/01/rdf-schema#label> . }
OPTIONAL { { ?subj ?pLabel ?lc .
FILTER ( LANGMATCHES( LANG( ?lc ), "" ) ) } UNION { ?subj ?pLabel ?lc .
FILTER ( LANGMATCHES( LANG( ?lc ), "en" ) ) } } }
LIMIT 2000
returns: Virtuoso 37000 Error SP031: SPARQL compiler: The name ?_:anon_10_32 is used in multiple clauses, without any logical connection
error seems to be new, i.e. did not happen in the old version. From @reckart:
Also, I had posted another query to the forum which worked with the previous DBPedia endpoint and with other Virtuoso installations, but which seems to be broken on the latest Virtuoso used by the new DBPedia endpoint: