brainkb_sparql
Run an arbitrary SPARQL query. Requires an Admin/SuperAdmin role (the sparql_admin capability) — for ordinary questions prefer brainkb_search, brainkb_read_space, or the provenance/delta tools, which need no admin role.
Large results come back a page at a time. A SELECT without its own
LIMIT/OFFSET returns at most `limit` rows (0 = the server's page size, 500 by
default) starting at `offset`; the response's `page` says whether there is
more (`has_more`) and where to continue (`next_offset`). Add ORDER BY for
stable pages. A query that sets its own LIMIT runs as written. Any result
too big for one response is cut to its leading rows with a `truncated` note.
Prefer COUNT(*) first when you only need to know how much there is.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| sparql_query | Yes |