search_ontology_terms
Search across BioPortal ontologies to find ontology terms by query. Retrieve term IDs, labels, ontologies, and URLs.
Instructions
Search for ontology terms in BioPortal.
This function searches across BioPortal ontologies for terms matching the given query. It returns a list of tuples containing the term ID, preferred label, ontology, and ontology URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search term (e.g., "melanoma", "breast cancer", "neuron"). | |
| api_key | No | BioPortal API key. If not provided, uses BIOPORTAL_API_KEY environment variable. | |
| ontologies | No | Comma-separated list of ontology acronyms to search in (e.g., "NCIT,GO,HP"). If None, searches across all ontologies. | |
| max_results | No | Maximum number of results to return (default: 10). | |
| require_exact_match | No | If True, only return exact matches (default: False). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |