Help:Configuration parameter "$smwgQueryDependencyAffiliatePropertyDetectionList"

Jump to: navigation, search
edit with form (experimental)

Title $smwgQueryDependencyAffiliatePropertyDetectionList
Description Sets affiliate special properties that additionally initiate a query dependency update when value change occurs
Default setting
Software Semantic MediaWiki
First version supported 2.4.0
Last version supported still available
Configuration Installation · Store settings
Keyword SQLStore · Query setting · Query dependency · Query management

$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.01 as configuration parameter $smwgQueryDependencyAffiliatePropertyDetectionlist2 but was renamed in Semantic MediaWiki The former configuration parameter name will be removed with the release of Semantic MediaWiki 3.1.0 in mid 2018.4

NoteNote: This setting only takes effect if the embedded query update feature was enabled.

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

$GLOBALS['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 = _DTITLE;
NoteNote: The respective special property labels (section "propertyLabels") have to be added to set changes to this configuration parameter.

See also