Help:Configuration parameter "$smwgSparqlQFeatures"

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


Title $smwgSparqlQFeatures
Description Defines the SPARQL query features that are expected to be supported by the repository of the identifier (graph) of the SPARQL database.
Default setting
See below
(Other) available settings
SMW_SPARQL_QF_NONE

Setting to be used if your repository provider does not fully support SPARQL 1.1.

SMW_SPARQL_QF_REDI

Enables the finding of redirects using inverse property paths.

SMW_SPARQL_QF_SUBP

Enables resolving subproperties.

SMW_SPARQL_QF_SUBC

Enables resolving subcategories.

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

$smwgSparqlQFeatures is a configuration parameter that is used to define the SPARQL query features that are expected to be supported by the repository of the identifier (graph) of the SPARQL database. The parameter was introduced in Semantic MediaWiki 2.3.0.1

Default setting

$smwgSparqlQFeatures = SMW_SPARQL_QF_REDI | SMW_SPARQL_QF_SUBP | SMW_SPARQL_QF_SUBC;

The default setting means that the SPARQL database supports finding redirects using inverse property paths as well as resolving subproperties and subcategories.

Changing the default setting

If your repository provider does not fully support SPARQL 1.1 the default setting should be changed in your "LocalSettings.php" file after the enableSemantics() call:

$smwgSparqlQFeatures = SMW_SPARQL_QF_NONE;

Available constants

  • SMW_SPARQL_QF_NONE - the SPARQL database does not support any features as required by SPARQL 1.1 (e.g. Virtuoso 6.1 or 4Store Current: May 2015)
  • SMW_SPARQL_QF_REDI - the SPARQL database supports finding redirects using inverse property paths (can only be used for repositories with full SPARQL 1.1 support (e.g. Fuseki or Sesame Current: May 2015)
  • SMW_SPARQL_QF_SUBP - the SPARQL database supports resolving subproperties
  • SMW_SPARQL_QF_SUBC - the SPARQL database supports resolving resolve subcategories