$smwgRemoteReqFeatures
Configuration parameter details: | |
Name | $smwgRemoteReqFeatures |
Description | Sets the behaviour of the features provided for remote requests |
Default setting | See below |
Software | 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 |
$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 11 October 2018 and compatible with MW 1.27.0 - 1.31.x.1.
$smwgQuerySources
Sets a list of sources, i.e. query back-ends that can return query results.
Default setting[edit]
$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[edit]
SMW_REMOTE_REQ_SEND_RESPONSE
− Allows special page "Ask"Provides an interface that assists users with creating and executing semantic queries to respond to remote requests in combination with a source defined in configuration parameter$smwgQuerySources
Sets a list of sources, i.e. query back-ends that can return query results and the request to it.SMW_REMOTE_REQ_SHOW_NOTE
− Shows a note for each remote request so users are aware that results retrieved from an external source.
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:
- 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 );
- 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 );
- 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[edit]
- Help page on making remote requests
- Help page on configuration parameter
$smwgQuerySources
Sets a list of sources, i.e. query back-ends that can return query results - Information page on extension "Semantic External Query Lookup"Allows to seamlessly integrate query results from an external query source to a local repository or wiki
References
- ^ | Semantic MediaWiki: GitHub pull request gh:smw:3167
- a b Bitwise Operators to use parentheses to ensure the desired precedence ...