Maintenance scripts are used to perform various administrative, import, maintenance and upgrade tasks. The scripts are deployed in the
maintenance sub-directory of the Semantic MediaWiki software.
The following table lists the 16 maintenance scripts are made available by Semantic MediaWiki:
|disposeOutdatedEntities.php||Allows to dispose outdated entities||help page||3.2.0|
|dumpRDF.php||Allows to do an RDF export of existing triples||help page||2.0.0|
|populateHashField.php||Allows to do mass populating of database field "smw_hash" when initially upgrading to Semantic MediaWiki 3.0.1 and later||help page||3.0.1|
|purgeEntityCache.php||Allows to purge all cache entries including associates of entities at once.||help page||3.1.0|
|rebuildConceptCache.php||Allows to rebuild (create, update, and delete) concept caches||help page||1.9.2|
|rebuildData.php||Allows to rebuild all the semantic data for a selected data backend/store||help page||1.9.2|
|rebuildElasticIndex.php||Allows to rebuild all the semantic data for the Elasticsearch index||help page||3.0.0|
|rebuildElasticMissingDocuments.php||Allows to find missing entities (aka documents) from Elasticsearch and schedule "smw.update" jobs for those identified subjects||help page||3.1.0|
|rebuildFulltextSearchTable.php||Allows to rebuild the full text search data table||help page||2.5.0|
|rebuildPropertyStatistics.php||Allows to rebuild the property usage statistics||help page||1.9.0|
|removeDuplicateEntities.php||Allows to remove all duplicate entities with no reference in any other table from the entity table||help page||3.0.0|
|runImport.php||Allows to import content from import files||help page||3.2.0|
|setupStore.php||Allows to set up the data backend/store||help page||2.0.0|
|updateEntityCollation.php||Allows to do mass updates of database field "smw_sort" on the occasion that setting for the entity collation was changed||help page||3.0.0|
|updateEntityCountMap.php||Allows to do mass populating of database field "smw_countmap" when initially upgrading to Semantic MediaWiki 3.2.0 and later||help page||3.2.0|
|updateQueryDependencies.php||Allows to update all entities that hold embedded queries||help page||3.1.0|
Some scripts were renamed starting with Semantic MediaWiki 1.9.2Released on 18 April 2014 and compatible with MW 1.19.0 - 1.22.x. and now alias to the new names as shown in the table above. If you are still using the precursing names make sure that you migrate before the release of Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. in early 2018.
If Semantic MediaWiki is not installed in its standard path then the "MW_INSTALL_PATH" environment variable must be set for the maintenance scripts to work. See the "README" file in the maintenance directory.
- Manual page on maintenance scripts at MediaWiki.org
- Help page on doing maintenance
- Code documentation Maintenance