$smwgDefaultStore

From Linux Web Expert


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgDefaultStore
Description Sets the storage backend to be used for the semantic data
Default setting SMW\SQLStore\SQLStore
(Other) available settings
SMW\SPARQLStore\SPARQLStore

Allows to set the usage of a RDF database to be used for the semantic data

SMW\Elastic\ElasticStore

Allows to set the usage of a Elasticsearch database to be used for the semantic data

Software Semantic MediaWiki
Since version
Until version still available
Configuration Installation · Store settings
Keyword sqlstore · sparqlstore · store · sparql · sql · elasticsearch · elasticsearchstore


__NOBREADCRUMBLINKS__

$smwgDefaultStore is a configuration parameter that is used to set the storage backend for the semantic data either SQL, SPARQL or Elasticsearch. This configuration parameter was introduced in Semantic MediaWiki 0.7Released on an unknown date unknown versions of MediaWiki.

From Semantic MediaWiki 1.2.0Released on an unknown date unknown versions of MediaWiki to Semantic MediaWiki 1.7.1Released on an unknown date unknown versions of MediaWiki the default store was SMWSQLStore2 (relational database) which received legacy support in Semantic MediaWiki 1.8.0Released on an unknown date unknown versions of MediaWiki and was dropped with Semantic MediaWiki 1.9.0Released on an unknown date unknown versions of MediaWiki.

From Semantic MediaWiki 1.8.0Released on an unknown date unknown versions of MediaWiki to Semantic MediaWiki 3.2.3Released on an unknown date unknown versions of MediaWiki, the default value was SMWSQLStore3. This default value becames SMW\SQLStore\SQLStore in Semantic MediaWiki 4.0.0Released on an unknown date unknown versions of MediaWiki 1, but this is just a renaming of the class and SMWSQLStore3 remains a class alias.

Default setting

$smwgDefaultStore = 'SMW\SQLStore\SQLStore';

This means that a relational database is being used as a data backend/store for Semantic MediaWiki which is suitable for most standard environments.

Available options

  • SMW\SQLStore\SQLStore (or alias SMWSQLStore3) − Sets a relational database as a data backend/store, i.e. MySQL, SQLite or PostgreSQL
This option is available since Semantic MediaWiki 1.8.0Released on an unknown date unknown versions of MediaWiki, originally as value SMWSQLStore3 before renaming to SMW\SQLStore\SQLStore in Semantic MediaWiki 3.1.0Released on an unknown date unknown versions of MediaWiki 2.
  • SMW\SPARQLStore\SPARQLStore (or alias SMWSparqlStore) − Sets a sparql database as the data backend/store, e.g. Blazegraph, Sesame, Fuseki etc.
This option is available since Semantic MediaWiki 1.6.0Released on an unknown date unknown versions of MediaWiki, originally as value SMWSparqlStore before renaming to SMW\SPARQLStore\SPARQLStore in Semantic MediaWiki 2.0Released on an unknown date unknown versions of MediaWiki 3.
  • SMW\Elastic\ElasticStore (or alias SMWElasticStore) − Sets an Elasticsearch database as the data backend/store
This option is available since Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki 4.
When choosing SMW\Elastic\ElasticStore as as setting to this configuration parameter you still need a relational database providing data storage functionality. This is not the case for the other two available options.

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:

Change to a sparql database for data storage
$smwgDefaultStore = 'SMW\SPARQLStore\SPARQLStore';
See the help page on using SPARQL and RDF stores and the configuration parameter $smwgSparqlRepositoryConnectorIdentifies a database connector that ought to be used together with the semantic data store. for Semantic MediaWiki 2.0.0Released on an unknown date unknown versions of MediaWiki and later for more information on this setting.
If you change the setting for this configuration parameter, please ensure to run maintenance script "setupStore.php"No description was provided. followed by maintenance script "rebuildData.php"No description was provided..
Change to a Elasticsearch database for data storage
$smwgDefaultStore = 'SMW\Elastic\ElasticStore';
See the help page on using the Elasticsearch store for more information on this setting.4
If you change the setting for this configuration parameter, please ensure to run maintenance script "setupStore.php"No description was provided. followed by maintenance script "rebuildElasticIndex.php"No description was provided..

See also

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

References

  1. ^ gh:smw:5169 
  2. ^ gh:smw:4192 
  3. ^ gh:smw:415 
  4. a b gh:smw:3054 
  5. ^ gh:smw:4732