Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
$smwgSparqlQueryEndpoint
Configuration parameter details: | |||
Name | $smwgSparqlQueryEndpoint | ||
Description | Sets the endpoint for querying the SPARQL database | ||
Default setting | http://localhost:8080/sparql/ | ||
(Other) available settings |
|
||
Software | Semantic MediaWiki | ||
Since version | |||
Until version | still available | ||
Configuration | Store settings | ||
Keyword | sparqlstore · store · rdf · sparql |
__NOBREADCRUMBLINKS__
$smwgSparqlQueryEndpoint
is a configuration parameter that is used to set the endpoint (service URL) for querying (reading queries like SELECT) the semantic data store when using a SPARQL database. The parameter was introduced in Semantic MediaWiki 1.6.0Released on an unknown date unknown versions of MediaWiki.
Semantic MediaWiki 2.5.0Released on an unknown date unknown versions of MediaWiki brought a performance setting allowing to redirect the query answering to the relational data backend instead so that surges of SPARQL queries can be avoided.1
Default setting
$smwgSparqlQueryEndpoint = 'http://localhost:8080/sparql/';
This means that localhost is used as query location.
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:
- Defining a different query endpoint
$smwgSparqlQueryEndpoint = 'https://localhost:8080/query/';
- Disable the SPARQL endpoint and redirect queries to the relational data backend
$smwgSparqlQueryEndpoint = false;
See also
- 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
$smwgSparqlUpdateEndpoint
Sets the endpoint for updating the SPARQL database - Help page on configuration parameter
$smwgSparqlDataEndpoint
Sets the endpoint for data on the SPARQL database - Help page on configuration parameter
$smwgSparqlDefaultGraph
Sets the identifier (graph) of the SPARQL database
#scite
could not render a citation text for reference "gh:smw:2159" because type "pullrequest" was not assigned to a template.References
- ^ gh:smw:2159