Help:Configuration parameter "$smwgQuerySources"

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


Title $smwgQuerySources
Description Sets another query back-end for Semantic MediaWiki
NoteNote: 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.
Default setting
unset
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Query settings
Keyword query routing · query settings
Referenced by SMWQueryProcessor

$smwgQuerySources is a configuration parameter that sets another query back-end for Semantic MediaWiki. The setting 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

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

$smwgQuerySources['freebase'] = "SMWFreebaseStore";
NoteNote: The basic installation comes with no additional source besides the local source, which in turn cannot be disabled or set explicitly.

See also

  • 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.