bc_get_chebi_terms_by_chemical
Retrieve ChEBI terms and details for a specified chemical name using the Ontology Lookup Service (OLS). Enables precise chemical identification for biomedical research.
Instructions
Query the Ontology Lookup Service (OLS) for ChEBI terms related to a chemical name.
This function searches for ChEBI (Chemical Entities of Biological Interest) terms associated with a given chemical name using the OLS API.
Args: chemical_name (str): The chemical or drug name to search for (e.g., "aspirin"). size (int): Maximum number of results to return (default: 10). exact_match (bool): Whether to perform an exact match search (default: False).
Returns: dict: Dictionary containing ChEBI terms and information or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chemical_name | Yes | The chemical or drug name to search for (e.g., 'aspirin', 'glucose') | |
exact_match | No | Whether to perform an exact match search | |
size | No | The maximum number of results to return |