Clustering filter values - view-a-LOD/Valeros GitHub Wiki

If you notice that multiple filter values seem to refer to the same (or a similar) thing, you might want to cluster filter values.

These clusters can be set in the clustering/filterOptionValues field in the Settings file (config/settings.ts).

Example

As an example, in the config/settings.ts file below, the "Personen" entry checks for each of the node's Type fields (rdf:type, rico:hasRecordSetType, sdo:additionalType, ...) if it refers to any of the clustered values (sdo:Person, pico:PersonObservation, foaf:Agent, ...).

filtering: {  
  filterOptions: {  
    type: {  
      label: 'Soort',  
      fieldIds: ['http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'https://www.ica.org/standards/RiC/ontology#hasRecordSetType', 'https://schema.org/additionalType'] 
    },
},
...
clustering: {  
  filterOptionValues: {  
    people: {  
      label: 'Personen',  
      valueIds: ['https://schema.org/Person', 'https://data.cbg.nl/pico#PersonObservation', 'http://xmlns.com/foaf/0.1/Agent']
    }
  }
}
⚠️ **GitHub.com Fallback** ⚠️