run_sparql
Run raw SPARQL SELECT queries for advanced analyses standard tools can't handle: cross-cube joins, aggregations, custom filters. Caps rows at 500 and runtime at 30 seconds.
Instructions
Run a raw SPARQL SELECT query. Advanced escape hatch — use sparingly.
Prefer the structured tools. This exists for analytical queries the guarded tools cannot express (cross-cube joins, aggregations, custom filters).
Guardrails, learned from probing: LINDAS times out on unanchored scans, so
always anchor on a known class such as ?x a <https://cube.link/Cube>.
A bare SELECT * WHERE { ?s ?p ?o } will time out. This tool caps the
result at 500 rows and the runtime at 30 seconds.
Args: query: A complete SPARQL SELECT query, including its own PREFIX lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| rows | 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. | |
| row_count | Yes | ||
| provenance | No | live_sparql | |
| retrieved_at | Yes |