Help:Getting started/Using mathematical operations

From semantic-mediawiki.org
Jump to: navigation, search
Getting startedHelp:Getting started/Using mathematical operations
Property with a number type annotation

Data

  • Create a Property:Has number with the Number type
  • Add annotations to a page that contain something like [[Has number::12]], [[Has number::5]]

Query

Mathematical operations 1 (such as sum, product, average, median) can be used in form of:

{{#ask: [[Has number::+]]
 |?Has number
 |format=product
}}
{{#ask: [[Has number::+]]
 |?Has number
 |format=sum
}}

See also