dbpedia / extraction-framework

The software used to extract structured data from Wikipedia
858 stars 269 forks source link

SPARQL compiler error on dbpedia.org/sparql #672

Open kurzum opened 3 years ago

kurzum commented 3 years ago

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:

github-actions[bot] commented 3 years ago

Branch issue-672-SPARQL_compiler_error_on_dbpedia_org/sparql created!

pkleef commented 3 years ago

I will discuss this with the virtuoso development team