Help:Property page – Filter for data values

From semantic-mediawiki.org
< Help:Property page
Property pageHelp:Property page – Filter for data values
Demonstrates the use of a value filter on the property page
Demonstrates the use of a value filter on the property page (tooltip, filter result count)

Property pages provide a field that allows for filtering data values annotated to the respective property. The filter restricts the display of applicable pages to the results determined.1. A concise tooltip2 is provided and the "Usage" tab displays the number of all applicable filtered results even if not all of them may be shown on the page.

The filter allows to match plain (as-is) values. However a filter may also take query expressions:

  • in: – the filter results should include the term, e.g. 'in:Foo'
  • not: – the filter results should not include the term, e.g. 'not:Bar'
  • phrase: – the filter results should include the term in the given order, e.g. 'phrase:Foo Bar Baz'

Depending on the Query Engine used it can support case insensitivity out-of the box (ElasticSearch or in parts SQL if using full-text search).

Also note that different datatypes, i.e. the datatype assigned to the respective property may interpret expressions differently, for example for propeties with datatype "Date"Holds particular points in time, 'in:2020' will mean to filter anything between [[Date:≥1.1.2020]] [[Date:<<1.1.2021]]3

See also[edit]


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2878
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:4497
  3. ^  |  Semantic MediaWiki: GitHub pull request gh:smw:1178