bc_get_term_hierarchical_children
Retrieve hierarchical children of a specific ontology term, including subclasses and 'part of' relationships, from the Ontology Lookup Service (OLS). Useful for exploring term dependencies and structure in biomedical ontologies.
Instructions
Query the Ontology Lookup Service (OLS) for hierarchical children of a term.
This function retrieves the hierarchical children of a specific ontology term, including subclasses and terms related via hierarchical properties like 'part of'.
Args: term_id (str): The term ID in CURIE format (e.g., "EFO:0000001"). ontology_id (str): The ontology ID (e.g., "efo"). size (int): Maximum number of children to return (default: 20).
Returns: dict: Dictionary containing hierarchical children or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ontology_id | Yes | The ontology ID where the term is defined (e.g., 'efo', 'go', 'chebi') | |
size | No | The maximum number of children to return | |
term_id | Yes | The term ID (CURIE) to get children for (e.g., 'EFO:0000001', 'GO:0008150') |