-
Notifications
You must be signed in to change notification settings - Fork 8
Clustering filter values
Simon edited this page Jul 8, 2024
·
9 revisions
Sometimes, you might want to cluster filter values.
These clusters can be set in the clustering/filterOptionValues field in the Settings file (src/app/config/settings.ts).
As an example, in the src/app/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']
}
}
}This project is still in the prototyping phase. If you have any questions, thoughts or feedback, please reach out to Simon Dirks (mail@simondirks.com).
- Rendering components by type
- Rendering components by predicate
- Pre-defined predicate render components