Comparing two versions of the nature inventory.

This project compares species records from the cantonal inventory. You can ask questions in German, compare counts and habitats, and check how records were matched.

The demo uses made-up records and locations. The full application runs locally with a prepared inventory database.

Sample sitesV1 / V2 comparison
Dry grassland
records

Choose a site to see its record counts.

Fictional locations

Species in this demo

Each version contains four species that the other doesn’t.

Version 112species
Version 212species
8 in both4 V1 only4 V2 only

Try the comparison

Choose a question, then open a chart row to see the underlying records.

Sample inventory16 species · 6 sites · synthetic data
Query steps

Run a question to see the query steps.

Result

Species comparison

Records by species
V1V2

Select a species to see its records.

Follow up:
Tool call


                

The tool names and arguments match the Python application. The demo calculates results from its own sample records.

How the application works

The two inventories don’t share stable identifiers. A matching table connects their records, with a confidence level for each match.

When you ask a question, the planner chooses a tool and its arguments. The backend checks them, queries a read-only SQLite database, and returns the data for a table, chart or map. Follow-up questions keep the previous subject.

You can inspect the tool call above, or read the technical notes for the implementation and tests.

About the data

The species names in this demo are real. The counts, locations and matches are made up; no cantonal inventory data is published here.

A missing record means there was no match in the second version. It doesn’t tell us whether a species has disappeared. The development dataset and record matches are provisional.

The full application needs a prepared delta database. Setup instructions are in the repository. The official inventory is available in MapBS, and source geodata can be ordered from the Geodaten-Shop.