(Redirected from Help:Maintenance)
List of maintenance tasks in connection with a Semantic MediaWiki instance
Table of Contents

In order to fully utilize and maintain a Semantic MediaWiki instance, certain maintenance tasks are required to help optimize the system, minimize on-wiki interventions, and keep the administrative work at a minimum.

Property annotation health (a.k.a. semantic gardening)[edit]

It is general good practice to monitor the property annotation health and if necessary improve statements or queries that cause an improper value annotation.

Cron jobs[edit]

Depending on the size (user base, articles count, annotation amount) script schedules need to be adapted according to the local needs of a wiki instance but some tasks should be run more frequent than others.

@hourly .23 php /path/to/maintenance/runJobs.php --quiet --maxjobs=200 --maxtime=300 --memory-limit=128M
If you are using MediaWiki 1.27 and later as well as Semantic MediaWiki 2.4.0Released on 9 July 2016 and compatible with MW 1.19.0 - 1.27.x. and later it is recommended to run MediaWiki's maintenance script "runJobs.php" ( every ten minutes.
@daily 7.45 php /path/to/maintenance/updateSpecialPages.php --quiet
This is only required if you set MediaWiki's configuration parameter $wgMiserMode ( to "true".
@daily 4.15 php /path/to/extensions/SemanticMediaWiki/maintenance/rebuildData.php --quiet --shallow-update
@daily 5.15 php /path/to/extensions/SemanticMediaWiki/maintenance/rebuildPropertyStatistics.php --quiet
@daily 6.15 php /path/to/extensions/SemanticMediaWiki/maintenance/rebuildConceptCache.php --quiet --update --create
@weekly 7.15 php /path/to/extensions/SemanticMediaWiki/rebuildData.php --quiet -d 100
@weekly 5.30 php /path/to/extensions/SemanticMediaWiki/setupStore.php --quiet --skip-import
@monthly 3.15 php /path/to/extensions/SemanticMediaWiki/removeDuplicateEntities.php --quiet 

Explanations about options selected can be found on the individual script help page.

For example, to execute a script every ten minutes add the following to your crontab (or the Windows TaskScheduler)

*/10 * * * * php /path/to/maintenance/runJobs.php --quiet --maxjobs=200 --maxtime=300 --memory-limit=128M


MediaWiki settings[edit]

The following settings can influence Semantic MediaWiki in how certain subjects are visible or updated due to execution (or non execution) of scripts owned by MediaWiki in terms of template, special page updates etc.


There was some discussion on the mailing list about the occasions it is required to run maintenance script "rebuildData.php"Allows to rebuild all the semantic data for a selected data backend/store.1

See also[edit]


  1. ^ mail:user:smw:tc5074165