Resolve a name/identifier to canonical SPOKE node(s)
resolve_entityMap free-text names, synonyms, or identifiers to canonical SPOKE nodes before querying the graph, returning ranked candidates to handle case, apostrophes, and cross-vocabulary IDs.
Instructions
Map a free-text name, synonym, or identifier to the canonical SPOKE node(s).
Use this BEFORE query_spoke. It handles the things that make naive queries fail: case-sensitivity (exact {name:...} is case-sensitive), apostrophes, synonyms/brand names, and cross-vocabulary identifiers (DOID, Entrez, Ensembl, DrugBank, UMLS CUI, UBERON, GO). It uses SPOKE's range and full-text indexes, so it is fast and never scans the whole graph.
Returns ranked candidates: {label, name, identifier, matched_on, score}.
Then query by the returned exact name or identifier via the
parameters argument of query_spoke. If several candidates look plausible,
state which one you picked and why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional node label to restrict to (e.g. 'Disease', 'Gene', 'Compound', 'Anatomy', 'SideEffect'). Strongly recommended when you know the entity type - it is faster and more accurate. | |
| limit | No | Max candidates to return. | |
| query | Yes | Free-text name, synonym, or identifier to resolve (e.g. 'multiple sclerosis', "Parkinson's disease", 'Tylenol', 'EGFR', 'DOID:9352', 'ENSG00000130203', 'DB00619'). |