v7.0.0+
| Status: | effective |
| Progress: | 100% |
| Version: | 7.0.0+ |
$smwgQEqualitySupport
From semantic-mediawiki.org
| Configuration parameter details: | |
| Name | $smwgQEqualitySupport |
| Description | Sets whether redirects between page names are considered as equality between the described objects |
| Default setting | See below |
| Software | Semantic MediaWiki |
| Since version | |
| Until version | still available |
| Configuration | Basic settings · Query settings |
| Keyword | equality |
| Referenced by | SMWQueryProcessor |
$smwgQEqualitySupport is a configuration parameter that sets whether redirects between page names are considered as equality between the described objects. This is usually appropriate for cases where data is given for a page at all. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x..
Starting with Semantic MediaWiki 7.0.0Released on 4 June 2026 and compatible with MW 1.43.x - 1.46.x. this parameter accepts a plain string value instead of the
SMW_EQ_* constants. The constant form still works but is deprecated and will be removed in Semantic MediaWiki 8.0.0Released on an unknown date and compatible with unknown versions of MediaWiki..1
Default setting[edit]
$smwgQEqualitySupport = 'some';
This means that redirects are evaluated as equality between page names, with possible performance-relevant restrictions depending on the storage engine.
Available options[edit]
The option enabled by default is highlighted in bold.
'some'(formerlySMW_EQ_SOME) – Evaluate redirects as equality between page names, with possible performance-relevant restrictions depending on the storage engine'full'(formerlySMW_EQ_FULL) – Evaluate redirects as equality between page names in all cases'none'(formerlySMW_EQ_NONE) – Never evaluate redirects as equality between page names
Changing the default setting[edit]
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file:
- Never evaluate redirects as equality
$smwgQEqualitySupport = 'none';
- Evaluate redirects as equality in all cases
$smwgQEqualitySupport = 'full';
Changing this option may only take effect after recreating all data in the database. See Repairing SMW for details.
Legacy constant form (deprecated since 7.0.0)[edit]
The constant form below is deprecated since Semantic MediaWiki 7.0.0Released on 4 June 2026 and compatible with MW 1.43.x - 1.46.x. and will be removed in Semantic MediaWiki 8.0.0Released on an unknown date and compatible with unknown versions of MediaWiki.. Use the string form shown above instead. It is documented here for wikis still running the constant form.
$smwgQEqualitySupport = SMW_EQ_SOME;
See also[edit]
- Help page on repairing SMW's data
References
- ^ | | | | Semantic MediaWiki: GitHub pull request gh:smw:6792