Help:Maintenance script "rebuildPropertyStatistics.php"

Jump to: navigation, search
maintenance script "rebuildPropertyStatistics.php"
Allows to rebuild the property usage statistics
Further Information
Provided by: Semantic MediaWiki
Added: 1.9.0
Removed: still in use
Location (path): ./extensions/SemanticMediaWiki/maintenance/
Class docu: RebuildPropertyStatistics
Table of Contents

The rebuildPropertyStatistics.php maintenance script rebuilds the property usage statistics on special page "Statistics". The setting was introduced in Semantic MediaWiki (SMW) Semantic MediaWiki 1.9.0 and currently only works if the configuration parameter $smwgDefaultStore is set to SMWSQLStore3 (= default setting), i.e. SPARQL stores are currently not supported.

Important Note

  • If SMW is not installed in its standard path then the "MW_INSTALL_PATH" environment variable must be set. See README in the maintenance directory.


php rebuildPropertyStatistics.php [--with-maintenance-log]

NoteNote:  This only shows the script specific parameters.


Generic parameters

--help (-h)
Display this help message
--quiet (-q)
Whether to supress non-error output
Location of "LocalSettings.php", if not default
For specifying the wiki ID
Output globals at the end of processing for debugging
Set a specific memory limit for the script, "max" for no limit or "default" to avoid changing it
The protocol and server name to use in URLs, e.g. This is sometimes necessary because server name detection may fail in command line scripts.

Script dependant parameters

The DB user to use for this script
The password to use for this script

Script specific parameters

Adds a log entry to the "Semantic MediaWiki log" on special page "Log" (&type=smw). Available since Semantic MediaWiki
NoteNote:  If you are using this parameter make sure that MediaWiki's configuration parameter $wgMaxNameChars is set to a value not lower than "31".3 Otherwise an exception will be issued informing about the minimum value for this setting ("32" or higher is recommended).4


This documentation page applies to all SMW versions from 1.9.0 to the most current version.

Help:RebuildPropertyStatistics.php en 1.9.0