Run SPARQL Query
sparql_queryExecute SPARQL SELECT or CONSTRUCT queries to search and retrieve data from knowledge graphs, returning results as JSON for data analysis and integration.
Instructions
Executes a read-only SPARQL SELECT or CONSTRUCT query against the user's graphs. Returns query results as JSON. Use this for searching and retrieving data from graphs.
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": {
"sparql": "<sparql>"
},
"name": "sparql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sparql | Yes | ||
| result_format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |