Help:Con­figu­ration para­meter "$smwgQueryDependencyAffiliatePropertyDetectionList"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form


Title $smwgQueryDependencyAffiliatePropertyDetectionList
Description Sets affiliate special properties that additionally initiate a query dependency update when value change occurs
Default setting
array();
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Installation · Store settings · Experimental
Keyword sqlstore · query setting · query dependency · query management · experimental

$smwgQueryDependencyAffiliatePropertyDetectionList is a configuration parameter that sets affiliate Special properties that additionally initiate a query dependency update, i.e. that when an value change to a property value occurs query dependencies for the related entity are recorded as well. It was introduced in Semantic MediaWiki 2.4.0Released on 9 July 2016 and compatible with MW 1.19.0 - 1.27.x.1 as configuration parameter $smwgQueryDependencyAffiliatePropertyDetectionlist2 but was renamed in Semantic MediaWiki 2.5.1Released on 22 April 2017 and compatible with MW 1.23.0 - 1.29.x..3 The former configuration parameter name will be removed with the release of Semantic MediaWiki 3.1.0Released on an unknown date and compatible with unknown versions of MediaWiki. in mid 2018.4

This configuration parameter only takes effect if the embedded query update feature was enabled and is considered experimental.

For example, special property "Display title of" is most likely such property where a change would normally not be reflected in query results (as it not directly linked to a query) but when added as an affiliated, changes to its content will be handled as if it is linked to an embedded entity.5

Default setting

$smwgQueryDependencyAffiliatePropertyDetectionList = array();

This means that by default no special property is listed as an affiliate property triggering a query dependency update.

Changing the default setting

To modify this configuration setting, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Enable query dependency updates on changes to special property "Display title of"
$smwgQueryDependencyAffiliatePropertyDetectionList = array(
        _DTITLE
);
NoteNote:

See also

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:1626
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:1135
  3. ^  Semantic MediaWiki: GitHub pull request gh:smw:2364
  4. ^  Semantic MediaWiki: GitHub pull request gh:smw:2384
  5. ^  Semantic MediaWiki: GitHub issue comment gh:smw:1617:223278247
  6. ^  Semantic MediaWiki: Source code quote for "propertyLabels"