Special property "Query state"
Query state | |
---|---|
Holds the status code a query uses to define its internal state
| |
Further Information | |
Provided by: | extension "Semantic MediaWiki "Allows to store and query data annotated to pages |
Added: | 3.0.0 |
Removed: | still in use |
Alias: | has no alias |
Optional: | yes |
Visible: | yes |
Annotable: | no |
Declarative: | no |
Key: | _ASKCO
|
Setting: | not specified |
Focus: | query information |
In this wiki: | Property:Query state |
Table of Contents | |
The Query state property is a special property in Semantic MediaWiki with a built-in meaning: it holds the internal state (using a number as the code for the query state) on when an inline query uses the @annotation
or @deferred
query marker to set a special execution mode as well as those reaching the expensive parser functions count limit. Thus it is possible to query for queries with a special execution mode. It is not possible to manually add a value to this special property. See the help page on how to query for queries for more details on how to use this special property. It was introduced with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..12
The execution modes that will be set:
100
– to identify queries using the@annotation
query marker1200
– to identify queries using the@deferred
query marker1300
– to identify queries reaching the expensive parser functions count limit3
See the property page Query state to see which pages use this special property on this wiki.
Available special properties relating to query profiling[edit]
The following other special properties are available for query profiling:
Name | Description | Help page | Added |
---|---|---|---|
Has query | Links a page to the subobject created by a query recording its profile | Special property "Has query" | 1.8.0 |
Query depth | Holds the value of the property depth of a query | Special property "Query depth" | 1.8.0 |
Query format | Holds the name of the result format used in a query | Special property "Query format" | 1.8.0 |
Query size | Holds the value of the number of conditions in a query | Special property "Query size" | 1.8.0 |
Query string | Holds the conditions of the query as a string | Special property "Query string" | 1.8.0 |
Query duration | Holds the value of the duration a query took to execute | Special property "Query duration" | 1.9.0 |
Query parameters | Holds the parameters a query used to select its output | Special property "Query parameters" | 2.5.0 |
Query source | Holds the identifier of an alternative (e.g. remote) query source | Special property "Query source" | 2.5.0 |
See also[edit]
- Help page on special property "Has query"Links a page to the subobject created by a query recording its profile
- Help page on query profiling
- Help page on querying for queries
References
- a b c Semantic MediaWiki: GitHub pull request gh:smw:2673
- ^ Semantic MediaWiki: GitHub pull request gh:smw:3444
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2476