Query parliamentary SPARQL
itparl_query_sparqlRun a read-only SELECT or ASK against one chamber’s official RDF endpoint. See itparl_list_reference with query_constraints for supported syntax and prefixes for predeclared namespaces. SELECT defaults to 100 rows with a 1,000-row cap on the limit argument. Use an explicit LIMIT up to 10,000 when needed. The response includes the canonical query submitted to the source.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chamber": "<chamber>",
"query": "<query>"
},
"name": "itparl_query_sparql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Server-added SELECT limit, default 100 and capped at 1,000. Omit for ASK or when the query has an explicit LIMIT. | |
| query | Yes | A local SELECT or ASK query in the chamber’s supported SPARQL subset. | |
| chamber | Yes | Official RDF endpoint to query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | No | SPARQL query form. | |
| rows | No | SELECT rows in source order, keyed by bound variable name. | |
| error | No | Present when the call failed. Absent on success. | |
| boolean | No | ASK answer. | |
| notices | No | Information about applied query constraints. | |
| sources | No | Official endpoint and source attribution. | |
| row_count | No | Number of SELECT rows returned. | |
| variables | No | SELECT variable names in source order. | |
| elapsed_ms | No | Elapsed time for the upstream query in milliseconds. | |
| totalCount | No | Complete SELECT result count before the top-level LIMIT, available when OFFSET is absent or zero and the response falls below both the effective LIMIT and the source ceiling. | |
| executed_query | No | Exact canonical SPARQL text submitted to the chamber. | |
| possibly_truncated | No | Whether SELECT reached the endpoint’s 10,000-row response ceiling. |