bc_get_chebi_terms_by_chemical
Retrieve ChEBI terms related to a chemical name by querying the Ontology Lookup Service (OLS). Specify the chemical name, result size, and exact match preference for accurate biological entity identification.
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 |