Page MenuHomePhabricator

Sparql query unable to retrieve any lexemes in wikibase docker
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

An error in the updater container appears of the form: "java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data". To eliminate this error, add the following line under the wdqs-updater -> environment section of docker-compose.extra.yml:

  • WIKIBASE_MAX_DAYS_BACK=${WIKIBASE_MAX_DAYS_BACK}

Also add the following line to the .env file:
WIKIBASE_MAX_DAYS_BACK=365

  • Install WikibaseLexeme extension (version 1.40 - I don't know if there is a way to get 1.41 to work b/c an error arose upon trying to install it). I put a copy of the WikibaseLexeme package in the wikibase container as well as in the jobrunner container since the latter was generating a WikibaseLexeme error of the form Fatal error: Error Loading extension. Unable to open file /var/www/html/extensions/WikibaseLexeme/extension.json: filemtime(): stat failed for /var/www/html/extensions/WikibaseLexeme/extension.json in /var/www/html/includes/registration/MissingExtensionException.php on line 98.
  • As part of the WikibaseLexeme installation, add lines
wfLoadExtension('WikibaseLexeme');
define('Lexeme', 146);
define('Lexeme_talk', 147);

to LocalSettings.php

  • Create some lexemes, Q-items, then try to retrieve the lexemes using a simple query of the form
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
SELECT DISTINCT
  ?lexeme 
WHERE {
    ?lexeme a ontolex:LexicalEntry .           
}

What happens?:
No lexemes were retrieved even though the Special:Recent changes page shows the lexemes were created.

What should have happened instead?:
All lexemes in the wikibase should have turned up. Queries for Q-items work as normal.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
1.40
Other information (browser name/version, screenshots, etc.):
Somehow the lexemes are not being rendered 'visible' to the query service?

Event Timeline

Which exact MediaWiki version is used? Is the job queue correctly running?

Hi,

MediaWiki version 1.40 is used, and I believe the job queue is running correctly (I did not see any glaring error messages in any of the log reports for the various containers), but you might need to be more specific about what I should be looking for with respect to the job queue.