Find Relations
find_relationsDiscover paths linking two concepts in Italian government data using configurable hops. Retrieve direct or multi-hop connections for semantic exploration.
Instructions
Find how two concepts are connected.
Args:
sourceUri: URI of the source concept
targetUri: URI of the target concept
max_hops: 1 | 2 | 3 (default: 1)
Returns:
Direct connections (single predicate)
Multi-hop paths up to the configured depth
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": {
"sourceUri": "<sourceUri>",
"targetUri": "<targetUri>"
},
"name": "find_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_hops | No | Maximum number of intermediate nodes to traverse. 1 preserves the previous behaviour. | |
| sourceUri | Yes | URI of the source concept | |
| targetUri | Yes | URI of the target concept |