Values
Restricts a SPARQL query's variables to the rows of another query's result set by joining an inline block into every group, so one query is constrained by or batched over another's results.
Instructions
Restricts variables of a SPARQL query or update to the rows of a SPARQL result set, so one query is constrained by, or batched over, the results of another: an inline VALUES block with the rows is joined into every group of the query. The variables stay variables (still projected, still in templates). Columns default to the result's variables; vars selects and orders them; a row that does not bind a column leaves it free (UNDEF). Subqueries that do not project a column keep their own copy; the query must not assign a restricted variable itself (AS or VALUES). Blank nodes are rejected. Substitute is the one-variable, one-value case.
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": {
"query": "<query>",
"data": "<data>"
},
"name": "Values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | A SPARQL result set (as produced by SELECT) whose variables and rows become the VALUES block. The variable names must match those used in the query. | |
| vars | No | Optional subset and ordering of variable names to emit as columns. Defaults to all variables of the result set. | |
| query | Yes | The SPARQL query or update whose variables are restricted. It must not assign them itself (AS, VALUES). |