get_relations
Extract incoming, outgoing, or all relations for a Wikidata entity, filtered by specific properties, with customizable result limits.
Instructions
Get relations of a Wikidata entity
Input Schema
Name | Required | Description | Default |
---|---|---|---|
entity_id | Yes | Wikidata entity ID | |
limit | No | Maximum number of relations | |
property_filter | No | Filter by specific properties | |
relation_type | No | Type of relations to retrieve | outgoing |
Input Schema (JSON Schema)
{
"properties": {
"entity_id": {
"description": "Wikidata entity ID",
"type": "string"
},
"limit": {
"default": 20,
"description": "Maximum number of relations",
"maximum": 100,
"type": "integer"
},
"property_filter": {
"description": "Filter by specific properties",
"items": {
"type": "string"
},
"type": "array"
},
"relation_type": {
"default": "outgoing",
"description": "Type of relations to retrieve",
"enum": [
"incoming",
"outgoing",
"all"
],
"type": "string"
}
},
"required": [
"entity_id"
],
"type": "object"
}