$smwgQSubcategoryDepth
From semantic-mediawiki.org
Configuration parameter details: | |
Name | $smwgQSubcategoryDepth |
Description | Sets the maximum level of subcategory inclusion (steps within category hierarchy) when querying |
Default setting | 10 |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Query settings |
Keyword | category · subcategory · inclusion · category hierarchy · hierarchy inferencing |
$smwgQSubcategoryDepth
is a configuration parameter that sets the maximum level of subcategory inclusions (steps within category hierarchy) to be considered by queries. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x..
The behaviour set with the setting to this configuration parameter applies to all queries created on the respective wiki. Deviations for individual queries are possible using query hierarchy restrictor
|+depth=
.
Default setting[edit]
$smwgQSubcategoryDepth = 10;
This means that subcategory inferencing is thus restricted to 10 levels.
Changing the default setting[edit]
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Disable category inferencing during querying
$smwgQSubcategoryDepth = 0;
This means that subcategory inferencing is disabled.
- Change the level of category inferencing during querying
$smwgQSubcategoryDepth = 15;
This means that subcategory inferencing is widened to 15 levels.
See also[edit]
- Help page on subcategory inferencing
- Help page on query condition
|+depth=
- Help page on configuration parameter
$smwgUseCategoryHierarchy
Sets whether elements of the subcategory hierarchy are considered as hierarchy elements in the annotation process - Help page on configuration parameter
$smwgCategoriesAsInstances
Sets whether a category statement should be treated as an element of the category