#ask: syntax – "annotation" query marker

From semantic-mediawiki.org
< #ask: syntax elements
#ask: syntax elements#ask: syntax – "annotation" query marker
#ask: syntax details:
Description Marks an inline query as part of an annotation1
Datatype support All datatypes
Component query marker
Software Semantic MediaWiki
Since version Semantic MediaWiki 3.0.0 Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x.
Keyword self-reference · post process · annotation

The @annotation query marker was introduced in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..


To clearly identify which inline query using either the #ask or #show parser function is used as input for an annotation process, the @annotation marker is used to distinguish them, e.g. [[Another property::{{#show: {{FULLPAGENAME}} |?Some property |link=none |@annotation }}]] (display and annotate) as opposed to {{#show: {{FULLPAGENAME}} |?Some property |link=none }} (display) which is the default behavior.


Output of a query used to provide the data value of an annotation:

[[SomeProperty::{{#show: {{FULLPAGENAME}} |?AnotherProperty |link=none |@annotation }}]]

<sandbox.semantic-mediawiki.org>: More examples for this query marker


Post-processing of jobs created by this query marker is done by API-module "smwtask"Allows to invoke and execute internal Semantic MediaWiki tasks.2 See also configuration parameter $smwgPostEditUpdateSets how many jobs should be executed as part of a post-edit event.

See also[edit]


  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2572
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:3318