Con­figu­ration para­meter "$smwgQuerySources"

Configuration parameter details:
Name $smwgQuerySources
Description Sets another query back-end for Semantic MediaWiki
Default setting
Software Semantic MediaWiki
Since version
Until version still available
Configuration Query settings · Experimental
Keyword query routing · query settings · experimental
Referenced by SMWQueryProcessor

$smwgQuerySources is a configuration parameter that sets another query back-end for Semantic MediaWiki. The configuration parameter was introduced in Semantic MediaWiki 1.8.0Released on 2 December 2012 and compatible with MW 1.17.0 - 1.22.x
(except 1.22.1).

It can be set to an array of available sources for answering queries which can be redefined in the settings to register new sources (usually an extension will do so on installation). Unknown source will be rerouted to the local wiki. Query routing allows extensions to provide alternative stores as data sources but this feature is experimental.

It is not yet properly integrated with most of Semantic MediaWiki's architecture because some some query printers just fetch their own store. Thus this feature is experimental.

Changing the default setting[edit]

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

$smwgQuerySources['freebase'] = "SMWFreebaseStore";

The basic installation comes with no additional source besides the local source, which in turn cannot be disabled or set explicitly.

See also[edit]

  • Information page on extension "Semantic External Query Lookup"Semantic External Query Lookup (a.k.a. SEQL) is a Semantic Mediawiki extension to seamlessly integrate query results from an external query source to a local repository or wiki.