#ask: syntax – "annotation" query marker

From semantic-mediawiki.org
< #ask: syntax elements
#ask: syntax elements#ask: syntax – "annotation" query marker
#ask: syntax details:
Syntax
@annotation
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..

Rationale[edit]

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.

Example[edit]

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

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

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

Note[edit]

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]

References

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