Con­figu­ration para­meter "$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

$smwgQSubcategoryDepth = 10;

This means that subcategory inferencing is thus restricted to 10 levels.

Changing the default setting

To modify this configuration setting, 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