Help:Count format

From semantic-mediawiki.org
Jump to: navigation, search
Count format
Returns just the number of results (a count of the number of matching pages), instead of the results themselves
Further Information
Provided by: Semantic MediaWiki
Added: 0.7
Removed: still supported
Requirements: none
Format name: count
Enabled by default:info.pngIndicates whether the result format is enabled by default upon installation of the respective extension. yes
Authors: Markus Krötzsch
Categories: math
Table of Contents


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: dezh-hans

Help:Count format en 0.7


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox