$smwgQStrictComparators

From semantic-mediawiki.org
(Redirected from $smwgQStrictComparators)


Configuration parameter details:
Name $smwgQStrictComparators
Description Sets whether the ">" and "<" comparators should be strict
Default setting
false
(Other) available settings
true

Allows to set the ">" and "<" comparators to be strict

Software Semantic MediaWiki
Since version
Until version still available
Configuration Query settings
Keyword comparison · property value · page selection


$smwgQStrictComparators is a configuration parameter that sets whether the ">" and "<" comparators should be strict. The configuration parameter was introduced in Semantic MediaWiki 1.5.3Released on 4 November 2010 and compatible with MW 1.14.x - 1.17.x.. Prior to Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. it was called $smwStrictComparators.12

The behavior of the comparators ">" and "<" varies depending on the setting of this configuration parameter. See the help page on strict comparators for detailed information about the differences.

Default setting[edit]

$smwgQStrictComparators = false;

This means that values that are equal will be accepted for the comparators ">" and "<".

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:

Enable the comparators to be strict
$smwgQStrictComparators = true;

This means that values that are equal will not be accepted for the comparators ">" and "<".

See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2044
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:2176