Help:Con­figu­ration para­meter "$smwgSparqlQueryEndpoint"

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


Title $smwgSparqlQueryEndpoint
Description Sets the endpoint for querying the SPARQL database
Default setting
http://localhost:8080/sparql/
(Other) available settings
false

Allows to direct the queries to the relational database

Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Store settings
Keyword sparqlstore · store · rdf · sparql

$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 30 July 2011 and compatible with MW 1.15.x - 1.18.x..

Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x. 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 this configuration setting, 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

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2159