Help:Count format

From semantic-mediawiki.org
Jump to: navigation, search
Count format
What:
Returns just the number of results (a count of the number of matching pages), instead of the results themselves
Provided by:
Semantic MediaWiki
Added in version:
0.7
Removed in version:
still supported
Further Requirements:
none
Format name:
count
Authors:
Markus Krötzsch
Categories:
misc


The result format count is used to show the number of results that a semantic query in SMW would return. The result thus is simply a number. The computation of this number usually will use larger limits than the default limit set with parameter $smwgQMaxInlineLimit for inline queries, so even large numbers may be reported by count.

Parameters

There are no parameters specific to the count format. In fact, most standard parameters do not make sense either, since the output is very specific.

Example

{{#ask: [[Category:City]] [[located in::Germany]] 
| format=count
}}

Result: 4



This documentation page applies to all SMW versions from 0.7 to the most current version.
      Other languages: de

Help:Count format en 0.7


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox