Help:Maintenance script rebuildPropertyStatistics.php

From Linux Web Expert

Template:MW file/noslash Template:MW file/noslash The "rebuildPropertyStatistics.php" maintenance script rebuilds the statistics for property data shown as the property usage count on the property pages as well as on the related special pages, i.e. special page "Properties"No description was provided., special page "WantedProperties"No description was provided., special page "UnusedProperties"No description was provided. and special page "Statistics"No description was provided..

The script was introduced in Semantic MediaWiki 1.9.0Released on an unknown date unknown versions of MediaWiki and only works if configuration parameter $smwgDefaultStoreSets the storage backend to be used for the semantic data is set to SMWSQLStore3 (= default setting), i.e. SPARQL stores are currently not supported.

Semantic MediaWiki 3.2.0Released on an unknown date unknown versions of MediaWiki brought an improved client output to this maintenance script.1

Since this maintenance script provides means of updating statistical data the real time updating of these data through intense immediate data base operations is no longer done by Semantic MediaWiki. Thus the performance of the wiki is improved.

It is recommended to run this script in daily intervals as part of the general wiki maintenance.
The display of statistical data on the special pages mentioned above is also influenced by configuration parameter $smwgCacheUsageSets how the caching behaviour or special pages related to Semantic MediaWiki is controlled i.e. the information displayed is not immediately updated at the time this maintenance script is run. This may take up to one hour if the default settings are used.

Usage

php rebuildPropertyStatistics.php [--with-maintenance-log]
This only shows the script specific parameters.

Parameters

Maintenance scripts provide generic maintenance parameters, script dependent parameters and depending on the maintenance script script specific parameters which are described on this page if provided.

Script specific parameters
Parameter Description
--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.23

File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> If you are using this parameter make sure that MediaWiki's configuration parameter $wgMaxNameChars (MediaWiki.org) is set to a value not lower than "31".4 Otherwise an exception will be issued informing about the minimum value for this setting ("32" or higher is recommended).5


Examples

#scite could not render a citation text for reference "gh:smw:832" because type "issue" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:4518" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:4518 
  2. ^ gh:smw:832 
  3. ^ gh:smw:1361 
  4. ^ gh:smw:1983 
  5. ^ gh:smw:1985