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 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 1.8.0
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.0.

Important noteImportant Note: 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

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.

$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