bc_search_ontology_terms
Search across multiple ontologies in the Ontology Lookup Service to find relevant terms. Specify search criteria, including term, ontology IDs, and match type, to retrieve precise results.
Instructions
Query the Ontology Lookup Service (OLS) for terms across multiple ontologies.
This function provides a general search across ontologies in OLS, allowing you to find terms from multiple ontologies or search all ontologies at once.
TIP: Use get_available_ontologies() first to discover which ontologies are available and their IDs before searching.
Args: search_term (str): The term to search for. ontologies (str): Comma-separated ontology IDs (e.g., "efo,go,chebi"). Empty for all. Use get_available_ontologies() to see available options. size (int): Maximum number of results to return (default: 20). exact_match (bool): Whether to perform an exact match search (default: False).
Returns: dict: Dictionary containing terms from various ontologies or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
exact_match | No | Whether to perform an exact match search | |
ontologies | No | Comma-separated list of ontology IDs to search in (e.g., 'efo,go,chebi'). Leave empty to search all ontologies. Use get_available_ontologies() to see all available ontology IDs. | |
search_term | Yes | The term to search for across all ontologies | |
size | No | The maximum number of results to return |