$smwgSparqlDefaultGraph
Configuration parameter details: | |
Name | $smwgSparqlDefaultGraph |
Description | Sets the identifier (graph) of the SPARQL database |
Default setting | '' |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Store settings |
Keyword | sparqlstore · store · rdf · sparql |
$smwgSparqlDefaultGraph
is a configuration parameter that is used to set the identifier (graph) of the the semantic update store when using a SPARQL database. The parameter was introduced in Semantic MediaWiki 1.7.0Released on 1 January 2012 and compatible with MW 1.16.x - 1.19.x..
Default setting[edit]
$smwgSparqlDefaultGraph = '';
This means that no name for the default graph was defined. Leaving the default graph URI empty only works if the SPARQL store is configured to use some default default graph or if it generally supports this.
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:
- Defining a default name for the graph
$smwgSparqlDefaultGraph = 'http://example.org/mydefaultgraphname';
The default graph is similar to a database name in relational databases. It can be set to any URI, e.g. the main page URI of your wiki with "#graph" appended. Different wikis should normally use different default graphs unless there is a good reason to share one graph. Moreover, once set this name should not be changed even in case of an URL change since it serves as an unique universal identifier.
See also[edit]
- Help page on using SPARQL and RDF stores
- Help page on configuration parameter
$smwgDefaultStore
Sets the storage backend to be used for the semantic data - Help page on configuration parameter
$smwgSparqlRepositoryConnector
Identifies a database connector that ought to be used together with the semantic data store. - Help page on configuration parameter
$smwgSparqlQueryEndpoint
Sets the endpoint for querying the SPARQL database - Help page on configuration parameter
$smwgSparqlUpdateEndpoint
Sets the endpoint for updating the SPARQL database - Help page on configuration parameter
$smwgSparqlDataEndpoint
Sets the endpoint for data on the SPARQL database