Configure WikibaseQualityConstraints extension

Authored by Lucas_Werkmeister_WMDE on Tue, Jun 13, 10:26 AM.


Configure WikibaseQualityConstraints extension

The default configuration of WikibaseQualityConstraints is mostly
suitable for Wikidata, but we want to tweak some values:

  • Explicitly configure the SPARQL endpoint, so that we can change the extension’s default value to '' (disable SPARQL) soon. It doesn’t make sense for other WBQC installations to send requests to
  • Limit the query runtime to five seconds (default is ten seconds). We can increase the value later if it seems unproblematic.
  • Drastically reduce the number of entities that the type checker tests in PHP before falling back to SPARQL. The WBQC default value is 1000 entities, which is good for setups without a SPARQL service (in which case a low limit will result in more false positives), but means that the check can take a very long time (we are seeing some check spikes of up to 15 seconds on Wikidata).

Change-Id: Ida54cdd7c16f42073dbf03c1db5e6ba80c63c7ec
Depends-On: I8af2e92215c026805df64babc5baf2a4ac8bc25e
Depends-On: I81d14d937de8518298f222a00f51d67dafbaeee6
Depends-On: Ic5bf0f5453121f8b77e8616ba717b22fea8192e9