English
$smwgQFeatures
From semantic-mediawiki.org
Configuration parameter details: | |
Name | $smwgQFeatures |
Description | Defines which query features should be available by default. |
Default setting | See below |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Query settings · inline queries |
Keyword | inline queries · special ask · queries · query features · query performance |
$smwgQFeatures
is a configuration parameter that is used to define which query features should be available by default to inline queries and special page "Ask". The parameter was introduced in Semantic MediaWiki 1.2.0.
Default setting[edit]
$smwgQFeatures = SMW_PROPERTY_QUERY | SMW_CATEGORY_QUERY | SMW_CONCEPT_QUERY | SMW_NAMESPACE_QUERY | SMW_CONJUNCTION_QUERY | SMW_DISJUNCTION_QUERY;
The default setting allows all basic features.
Changing the default setting[edit]
The available features are combined in a list, separated by a pipe "|"
. Examples:
- Allow only category intersections
$smwgQFeatures = SMW_CATEGORY_QUERY | SMW_CONJUNCTION_QUERY;
- Allow only concept queries (possibly cached)
$smwgQFeatures = SMW_CONCEPT_QUERY;
- Allow anything but disjunctions
$smwgQFeatures = SMW_ANY_QUERY & ~SMW_DISJUNCTION_QUERY;
Available constants[edit]
SMW_PROPERTY_QUERY
for conditions of the form[[Property::...]]
,SMW_CATEGORY_QUERY
for conditions of the form[[Category:...]]
,SMW_CONCEPT_QUERY
for conditions of the form[[Concept:...]]
,SMW_NAMESPACE_QUERY
for conditions of the form[[Namespace:+]]
,SMW_CONJUNCTION_QUERY
for combinations of multiple conditions in one query,SMW_DISJUNCTION_QUERY
for queries usingOR
or||
.