sparql_autocomplete
Suggests predicate or class IRIs from a QLever dataset that match given text, ordered by usage frequency, to help choose schema terms before writing a SPARQL query.
Instructions
Use this BEFORE sparql_query when unsure which predicates or classes exist. Suggests predicate or class IRIs from the dataset that contain the given text, ordered by how often they are used. For entities, use search_entities.
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": {
"search_term": "<search_term>"
},
"name": "sparql_autocomplete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | What to complete: 'predicate' (default) or 'class' (rdf:type objects) | predicate |
| limit | No | Maximum number of completions to return (default: 20, max: 100) | |
| search_term | Yes | Text to match (case-insensitive substring of the IRI), e.g. 'birth'. Use an empty string to list the most frequent ones. |