Help:Maintenance script "rebuildPropertyStatistics.php"

From semantic-mediawiki.org
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.

Usage

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

Note Note: This only shows the script specific parameters.

Parameters

Generic parameters

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

Script dependant parameters

--dbuser
The DB user to use for this script
--dbpass
The password to use for this script

Script specific parameters

--with-maintenance-log
Adds a log entry to the "Semantic MediaWiki log" on special page "Log" (&type=smw). Available since Semantic MediaWiki 2.4.0.12

Examples


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

Help:RebuildPropertyStatistics.php en 1.9.0