$smwgQMaxSize

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgQMaxSize
Description Sets the maximum number of conditions for inline queries
Default setting
12
Software Semantic MediaWiki
Since version
Until version still available
Configuration Query settings · inline queries · Query features · Query performance
Keyword inline queries


$smwgQMaxSize is a configuration parameter that sets the maximum number of conditions 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 size.

Default setting[edit]

$smwgQMaxSize = 12;

This means that a maximum of 12 query conditions can be used 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
$smwgQMaxSize = 18;

This means that a maximum of 18 query conditions can be used for inline queries.

Reduce the number of allowed conditions
$smwgQMaxSize = 6;

This means that a maximum of 6 query conditions can be used for inline queries.

See also[edit]