Semantic MediaWiki and related extensions
|
Maintenance scripts are run using the PHP command line.
If you keep Semantic MediaWiki (SMW) in the standard directory ./extensions/SemanticMediaWiki
(below your MediaWiki installation) then you can run these scripts from almost anywhere.
Otherwise, it is required to set the environment variable MW_INSTALL_PATH
to the root of your MediaWiki installation first. This is also required if you use a symbolic link from ./extensions/SemanticMediaWiki
to the actual installation directory of Semantic MediaWiki.
Setting environment variables is different for different operating systems and shells, but can normally be done from the command line right before the php call. On Bash (Linux), e.g. one can use the following call to execute "setupStore.php" with a different MediaWiki location:
In some setups that use a lot of shared code for many wikis, it might be required to specify the location of "LocalSettings.php" explicitly, too:
Note:
Allows to dispose outdated entities. Available since SMW 3.2.0
Usage:
Allows to do a complete RDF export of existing triples. Available since SMW 2.0.0
Usage:
Allows to populate the "smw_hash" database field for all entities that have a missing entry when initially upgrading to Semantic MediaWiki 3.0.0 and later. Available since SMW 3.0.1
Usage:
Allows to purge all cache entries including associates of entities at once. Available since SMW 3.1.0
Usage:
Allows to rebuild (create, update, and delete) concept caches. Available since SMW 1.9.2
Usage:
Allows to rebuild all the semantic data for a selected data backend/store. Available since SMW 1.9.2
Usage:
Allows to rebuild all the semantic data for the Elasticsearch index. Available since SMW 3.0.0
Usage:
Allows to find missing entities (aka documents) from the Elasticsearch index and schedule "smw.update" jobs for those identified subjects. Available since SMW 3.1.0
Usage:
Allows to rebuild the full text search data table of the relational database backend/store. Available since SMW 2.5.0
Usage:
Allows to rebuild the property usage statistics. Available since SMW 1.9.0
Usage:
Allows to remove all duplicate entities with no reference in any other table from the entity table. Available since SMW 3.0.0
Usage:
Allows to import content from import files. Available since SMW 3.2.0
Usage:
Allows to copy local messages from and to the i18n translation system. Available since SMW 3.2.0
Usage:
Allows to set up the data backend/store. Available since SMW 2.0.0
Usage:
Allows to do mass updates of database field "smw_sort" on the occasion that setting for the entity collation was changed. Available since SMW 3.0.0
Usage:
Allows to do mass populating of database field "smw_countmap" when initially upgrading to Semantic MediaWiki 3.2.0 and later. Available since SMW 3.0.0
Usage:
Allows to update all entities that hold embedded queries. Available since SMW 3.1.0
Usage: