Last modified: 2014-07-01 23:09:18 UTC
# php SemanticMediaWiki/maintenance/SMW_refreshData.php -v (230) Processing ID 236 ... Unexpected non-MediaWiki exception encountered, of type "SMWSparqlDatabaseError" exception 'SMWSparqlDatabaseError' with message 'A SPARQL query error has occurred Query: PREFIX wiki: <http://wikiserver/wiki/index.php/Special:URIResolver/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX swivt: <http://semantic-mediawiki.org/swivt/1.0#> PREFIX property: <http://wikiserver/wiki/index.php/Special:URIResolver/Property-3A> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> DELETE { ?s ?p ?o } WHERE { ?s swivt:masterPage property:TLInstructions . ?s ?p ?o } Error: Malformed query Endpoint: http://localhost:8080/update/ HTTP response code: 400 ' in /wiki/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlDatabase.php:587 Stack trace: #0 /wiki/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlDatabase.php(497): SMWSparqlDatabase->throwSparqlErrors('http://localhos...', 'PREFIX wiki: <h...') #1 /wiki/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlDatabase.php(351): SMWSparqlDatabase->doUpdate('PREFIX wiki: <h...') #2 /wiki/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlDatabase.php(371): SMWSparqlDatabase->delete('?s ?p ?o', '?s swivt:master...', Array) #3 /wiki/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStore.php(264): SMWSparqlDatabase->deleteContentByValue('swivt:masterPag...', 'property:TLInst...', Array) #4 /wiki/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStore.php(28): SMWSparqlStore->deleteSparqlData(Object(SMWExpNsResource)) #5 /wiki/extensions/SemanticMediaWiki/includes/jobs/SMW_UpdateJob.php(45): SMWSparqlStore->deleteSubject(Object(Title)) #6 /wiki/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php(1541): SMWUpdateJob->run() #7 /wiki/extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php(148): SMWSQLStore2->refreshData(236, 1, false, false) #8 {main} syslog shows: 4store[693]: httpd.c:303 HTTP error, returning status 400 4store only implements application/x-www-form-urlencoded Versions involved: Mediawiki 1.20 Semantic MediaWiki 1.7.1 4store 1.1.5
I think someone suggested a fix for this on the mailing list, or was that another bug?
Change 70047 had a related patch set uploaded by Nemo bis: Fixes RDF export of subobjects https://gerrit.wikimedia.org/r/70047
Ought to be fixed with [0]. For details on the test environment, see [0, 1]. [0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/370 [1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/tree/master/tests#4store-integration