Status: | effective |
Progress: | 100% |
Version: | 3.2.0+ |
Maintenance script "rebuildPropertyStatistics.php"
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/ |
Table of Contents | |
Contents |
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"Lists properties and displays their usage, special page "WantedProperties"Lists used properties with no explicit datatype assignment, special page "UnusedProperties"Lists properties with an explicit datatype assignment without having a value assignment (annotation) and special page "Statistics"No description was provided..
The script was introduced in Semantic MediaWiki 1.9.0Released on 3 January 2014 and compatible with MW 1.19.0 - 1.22.x. and only works if configuration parameter $smwgDefaultStore
Sets 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 7 September 2020 and compatible with MW 1.31.0 - 1.35.x. 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.
$smwgCacheUsage
Sets 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[edit]
php rebuildPropertyStatistics.php [--with-maintenance-log]
Parameters[edit]
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
Note: If you are using this parameter make sure that MediaWiki's configuration parameter |
Examples[edit]
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:4518
- ^ Semantic MediaWiki: GitHub issue gh:smw:832
- ^ Semantic MediaWiki: GitHub pull request gh:smw:1361
- ^ Semantic MediaWiki: GitHub issue gh:smw:1983
- ^ Semantic MediaWiki: GitHub pull request gh:smw:1985