search_cubes
Find statistical data cubes in Swiss open data by topic, returning cube URIs for further analysis. Supports language, publisher, and version filters.
Instructions
Find statistical data cubes in LINDAS by topic.
The entry point. Returns cube URIs you then pass to get_cube_structure.
By default only the newest published version of each cube is returned;
set latest_only=False to see every version.
Check truncated before you conclude anything from the result.
returned alone cannot tell a complete answer from a first page.
truncated: false—cubesholds every cube that matched. You may say so.truncated: true— more cubes matched than you got back, or that could not be ruled out cheaply. Do NOT report the result as the complete set, and do NOT answer "there are N cubes about X" fromreturned.
On truncated: true, widen in this order:
Raise
limit(up to 100) and search again — usually enough.Still truncated at 100? Narrow instead of paging: add
creator_urifromlist_publishersto ask one federal body at a time.Set
latest_only=Falseif you specifically need historical versions. It widens rather than narrows — every version becomes its own hit — so use it to inspect a cube's history, not to escape truncation.
total_matched carries the exact number when one is available and null
otherwise. null is not an error and not zero: with latest_only=true the
count the store can give cheaply counts cube versions, while this tool
returns version-collapsed cubes (measured: 127 versions collapse to 35 cubes
for "wald"), so no comparable number exists. truncated is still reliable
there — prefer it over guessing from total_matched.
Args:
query: Topic term, e.g. "Wald", "Abfluss", "Energie". Matched against
cube names and descriptions in the chosen language.
language: Language for names and descriptions.
creator_uri: Restrict to one publishing body (from list_publishers).
limit: Maximum cubes to return (1-100).
latest_only: Collapse versions to the newest per cube.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| language | No | de | |
| creator_uri | No | ||
| latest_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cubes | Yes | ||
| query | Yes | ||
| source | No | Data: LINDAS Linked Data Service, Swiss Federal Archives — https://lindas.admin.ch. Each cube declares its own licence; check the `licence` field before reuse. | |
| language | Yes | ||
| returned | Yes | ||
| truncated | Yes | True when more cubes match than are returned, or when that could not be ruled out. False means `cubes` holds every match. Errs towards True: a wrong True costs one more query, a wrong False silently hides results. | |
| match_type | No | 'none' when nothing matched — distinguishes a real miss from an error. | exact |
| provenance | No | live_sparql | |
| suggestion | No | Actionable next step when match_type is 'none' (e.g. which tool to try). | |
| latest_only | Yes | ||
| retrieved_at | Yes | ||
| total_matched | No | Total cubes matching the query, on the same unit as `returned`. None means the store could not be asked cheaply for a comparable number — with latest_only=true the count LINDAS gives counts cube VERSIONS, not the version-collapsed cubes returned here (measured: 127 versions vs 35 cubes for 'wald'), so a number would be misleading. Read `truncated` instead. |