$smwgSparqlDataEndpoint

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgSparqlDataEndpoint
Description Sets the endpoint for data on the SPARQL database
Default setting
http://localhost:8080/data/
Software Semantic MediaWiki
Since version
Until version still available
Configuration Store settings
Keyword sparqlstore · store · rdf · sparql


$smwgSparqlDataEndpoint is a configuration parameter that is used to set the endpoint (service URL) for data (SPARQL HTTP Protocol for Graph Management, i.e. SPARQL over HTTP service) on the semantic 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..

Default setting[edit]

$smwgSparqlDataEndpoint = 'http://localhost:8080/data/';

This means that localhost is used as query location.

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 different data endpoint
$smwgSparqlQueryEndpoint = 'https://localhost:8080/data/';
Disable the data endpoint
$smwgSparqlDataEndpoint = '';

This setting may be done if the SPARQL HTTP Protocol for Graph Management is not supported. However in some SPARQL databases this method is more efficient than SPARQL update.

See also[edit]