$smwg­Remote­Req­Features

From Linux Web Expert


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgRemoteReqFeatures
Description Property "Has description" (as page type) with input value "Sets the behaviour of the features provided for [[Help:Remote request|remote requests" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Default setting See below
Software Has component::Semantic MediaWiki
Since version
Until version still available
Configuration Query settings
Keyword query routing · query settings · remote query · remote request · remote source
Referenced by SMWQueryProcessor


__NOBREADCRUMBLINKS__

$smwgRemoteReqFeatures is a configuration parameter that sets the behaviour of the features provided for remote requests. The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki1.

This configuration parameter only takes effect if a remote source was configured via configuration parameter $smwgQuerySourcesNo description was provided..

Default setting

$smwgRemoteReqFeatures = SMW_REMOTE_REQ_SEND_RESPONSE | SMW_REMOTE_REQ_SHOW_NOTE;

This means that special page "Ask"Provides an interface that assists users with creating and executing semantic queries can be used to query remote sources. Moreover a note is shown to the user when a remote request is done.

Available options

The options enabled by default are highlighted bold.

Changing the default setting

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

Disable remote requests on special page "Ask"Provides an interface that assists users with creating and executing semantic queries

To disable a specific feature just redefine the configuration parameter by defining it without including the corresponding constant as shown in the above section on available options:

$smwgRemoteReqFeatures = SMW_REMOTE_REQ_SHOW_NOTE;

or alternatively remove the option from the existing definition of the configuration parameter like e.g.

$smwgRemoteReqFeatures = ( $smwgRemoteReqFeatures & ~SMW_REMOTE_REQ_SEND_RESPONSE );
Please use parentheses2 when combining different bit-operations to avoid a possible mismatch.
Disable the notification to the user about a remote request being done

To disable a specific feature just redefine the configuration parameter by defining it without including the corresponding constant as shown in the above section on available options:

$smwgRemoteReqFeatures = SMW_REMOTE_REQ_SEND_RESPONSE;

or alternatively remove the option from the existing definition of the configuration parameter like e.g.

$smwgRemoteReqFeatures = ( $smwgRemoteReqFeatures & ~SMW_REMOTE_REQ_SHOW_NOTE );
Please use parentheses2 when combining different bit-operations to avoid a possible mismatch.
Disable remote requests on special page "Ask"Provides an interface that assists users with creating and executing semantic queries and the notification to the user about remote requests being done
$smwgRemoteReqFeatures = '';

See also

#scite could not render a citation text for reference "gh:smw:3167" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:3167 
  2. a b  Bitwise Operators to use parentheses to ensure the desired precedence ...