extraction-framework icon indicating copy to clipboard operation
extraction-framework copied to clipboard

SPARQL compiler error on dbpedia.org/sparql

Open kurzum opened this issue 4 years ago • 2 comments

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:

kurzum avatar Jan 26 '21 09:01 kurzum

I will discuss this with the virtuoso development team

pkleef avatar Feb 03 '21 20:02 pkleef