Semantic MediaWiki/markup/ask

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Semantic MediaWiki‎ | markup
Revision as of 15:27, 6 February 2025 by Woozle (talk | contribs)
Jump to navigation Jump to search
Semantic MediaWiki "#ask" syntax

Syntax

Operators

  • «::» : "equals"
  • «::>» : "greater than"

Dates

By default, the filter condition «<property_name>::<property_value>» means «WHERE <property_name> equals <property/value>». Note that <property_value> that is filtering for a date with no time will not pull up pages where <property_value> is set to a full timestamp in which the time is not 00:00.

Official Documentation

Operators

Note that there does not seem to be any documentation specifically about available comparison operators. The «::>» and «::<» operators are mentioned in passing in a couple of places:

  • smw:Help:Calendar format - «Don't worry that the comparison operators are «<» and «>» instead of «<=» and «>=»; the return values of the parser functions are set so that this will not be an issue.» This doesn't clarify whether this is true in general or only within the Calendar context.
  • smw:Help:$smwgQStrictComparators - by default, «::>» and «::<» are treated as «» and «»