Help:Querying for queries

This help page describes how to query for information about inline queries. This is possible since Semantic MediaWiki 1.8.0 which introduced a mechanism to the parser functions,   followed by  CiteRef::gh:smw:1719 in Semantic MediaWiki 2.5.0 that automatically stores information for the page they are used on as a subobject. This information includes the depth, the format, the size and the string of the respective query. Starting with with Semantic MediaWiki 1.9.0 the durationCiteRef::gh:smw:30 was added and Semantic MediaWiki 2.5.0 brought information about it's parametersCiteRef::gh:smw:2270.

This data can be queried as usual, e.g., to find out how many queries on the wiki use a particular format, or what are the largest queries.

Examples

 * The total number of queries

Result:


 * The total number of pages containing queries

Result:


 * The number of queries that use the format "count"

Result:


 * The number of pages that use queries that use the format "list"

Result:


 * Pages that have a query with format "ul" and one with format "table"

Result:


 * The 10 largest queries used on the wiki with their size and duration

Result:

Querying for the query duration is not enabled for this wiki.


 * The 10 largest queries used on the wiki with their size and query string

Result: