visualize-admin / visualization-tool

The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
https://visualize.admin.ch
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

Shared dimension querying #1450

Closed ptbrowne closed 4 months ago

ptbrowne commented 4 months ago

Goal

Ability to query datasets by termset. I use termset as this is the word used in SPARQL, and I find that Shared Dimension might be a little confusing, since in a single dimension, we can have several termsets.

In this PR, I add the querying of cubes by termsets. This is not yet directly done in the app UI, but I added stories. In the future, we will be able to use this querying for

The story is available here : https://visualization-tool-q9hub87q3-ixt1.vercel.app/storybook/index.html?path=/story/data-search--search

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 12, 2024 10:23am
ptbrowne commented 4 months ago

I think when we'll merge the cubes, we need to apply the AND condition? Maybe I missed something, or maybe it's like this only in the story? 😁

Right now there is no controls over do we want to select year and/or shared dimension in the UI, so we should display all the possible cubes, so I think having a OR here makes sense.

Example: Searching for possible cubes for Photovoltaikanlagen. Since in the UI you do not have the possibility to "unselect" the "year" checkbox (there is no such checkbox), if this was AND, you could miss some cubes that would not have the Year dimension, but would have the canton dimension.