Help:Property page – Filter for data values

From Linux Web Expert

Revision as of 02:54, 29 March 2021 by >Kghbln (+ cat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

File:smw-property-page-filter.png
Demonstrates the use of a value filter on the property page
File:Smw-property-page-filter-results.png
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

#scite could not render a citation text for reference "gh:smw:2878" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:4497" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:2878 
  2. ^ gh:smw:4497 
  3. ^ gh:smw:1178