Facets for filtering - NEU-DSG/Leaflet-core GitHub Wiki

Facets are the clickable boxes that data points (pins on the map) on and off. They are what allow filtering.

  • Facets should exist for the following fields:
    • Neighborhood (Wikidata’s “located in the administrative territorial entity” property)
    • Type of art (Wikidata’s “instance of” property)
    • Material (Wikidata's “made from material” property)
    • Date of inception (Wikidata's “inception” property)
      • The following is a suggestion for groups of dates. The numbers in parentheses indicate the current number of artworks that exist for each date grouping. The groups become more frequent in more recent centuries as this reflects the nature of our dataset: we aim to show more recent pieces of art in Boston than the older ones.
        • 1700-1799 (2)
        • 1800-1899 (5)
        • 1900-1929 (5)
        • 1930-1969 (4)
        • 1970-1979 (11)
        • 1980-1989 (16)
        • 1990-1999 (20)
        • 2000-2009 (37)
        • 2010-2019 (54)
        • 2020-2029 (17)
  • Facets should show the number of results. In the suggested grouping above, this is displayed in the parentheses next to the dates. (If this slows down the app we might consider removing this, but since our dataset will only ever reach into the thousands of entries maximum, it should probably be okay.)
  • Facet categories should work as logical ANDs, but facet values within each category should work as ORs. For example, if both "Mural" and "Sculpture" are selected under Type of art and both "2000-2009" and "2010-2019" are selected under Date, the results should filter as follows: (Type of art = “Mural” OR “Sculpture”) AND (Date = “2000-2009” OR “2010-2019”).