$smwgQMaxDepth

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgQMaxDepth
Description Sets the maximum property depth for inline queries
Default setting
4
Software Semantic MediaWiki
Since version
Until version still available
Configuration Query settings · inline queries · Query features · Query performance
Keyword depth of queries


$smwgQMaxDepth is a configuration parameter that sets the maximum property depth for inline 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..

If unsure use result format "Debug" (format=debug) for the respective inline query to determine its depth.

Default setting[edit]

$smwgQMaxDepth = 4;

This means that a maximum property depth of 4 can be utilized for inline queries.

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:

Increase the number of allowed conditions
$smwgQMaxDepth = 6;

This means that a maximum property depth of 6 can be utilized for inline queries.

Reduce the number of allowed conditions
$smwgQMaxDepth = 2;

This means that a maximum property depth of 2 can be utilized for inline queries.

See also[edit]