Help:$smwgSparqlQFeatures

From semantic-mediawiki.org
Jump to: navigation, search
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 documentation
Software Semantic MediaWiki
Introduced with 2.3.0
Deprecated with still available
Configuration Store settings
Keyword SPARQLStore · Store · RDF · SPARQL · Query features · Query performance
Referenced by N/A

$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.[1] The parameter was introduced in Semantic MediaWiki 2.3.0.

Default setting

$GLOBALS['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 to

$smwgSparqlQFeatures = SMW_SPARQL_QF_NONE;

Available setting 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

References

  1. See issue 467 for further information on this.


This documentation page applies to all SMW versions from 2.3.0 to the most current version.
     

Help:$smwgSparqlQFeatures en 2.3.0