ontology-term-resolution
Was er macht
Dieses Tool hilft dir, wissenschaftliche Begriffs-IDs zu finden und zu prüfen. Es wandelt beschreibende Namen in eindeutige Codes (IDs) um und bestätigt, ob vorhandene Codes gültig und aktuell sind.
Wann du ihn nutzt
- ✓Wenn du Daten mit wissenschaftlichen Begriffen annotierst.
- ✓Wenn du Formulare für die Dateneinreichung ausfüllst.
- ✓Wenn du die Gültigkeit von Codes in älteren Dateien prüfst.
Link zum Skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/ontology-term-resolution/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Finde die ID für 'left ventricle' in der UBERON-Ontologie.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Das Tool durchsucht wissenschaftliche Datenbanken nach Begriffen, die du beschreibst, oder prüft Codes, die du angibst. Dabei nutzt es Dienste wie OLS und Bioregistry, um sicherzustellen, dass die Identifikatoren korrekt und aktuell sind.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Ontology Term Resolution
When to use
Any time an ontology identifier is about to be written down or trusted: annotating a metadata column, filling a submission template, auditing a table someone else produced, or checking whether an ID in an old file is still current.
The rule
Never write an ontology ID from memory, and never accept one without checking it.
Ontology IDs are memorable in form and arbitrary in detail. A plausible-looking UBERON:0002108
is a real term (small intestine) that is not the liver, and nothing downstream will catch the
substitution — the ID is well-formed, the ontology is right, and the metadata is silently wrong.
Reviewers cannot spot it either, which is why these errors persist into published datasets.
OLS search and ZOOMA emit candidates. Validate each selected ID with OLS term detail, then check its definition against the sample and the target schema before accepting it. Bioregistry, Identifiers.org, ZOOMA, and Ontobee answer prefix, landing-page, and shorthand questions — they do not replace that OLS check.
Which service
| Question | Script | Authority |
|---|---|---|
| What is the term for "left ventricle"? | scripts/resolve_terms.py |
OLS |
OLS missed lab shorthand (PBMC, WT) |
scripts/map_terms.py, then validate_terms.py |
ZOOMA proposes; OLS validates the term |
Is EFO:0001067 real, current, correctly labelled? |
scripts/validate_terms.py |
OLS |
Is HPO a real prefix? Does HP:notanid match the pattern? |
scripts/lookup_prefix.py |
Bioregistry |
| Which landing page should this CURIE open? | scripts/lookup_prefix.py |
Identifiers.org + Ontobee URLs |
All four scripts take single values or files, emit TSV or JSON, and need no packages beyond the
standard library. Full traps for the non-OLS services are in references/companion-apis.md.
Resolve text to terms
cd skills/ontology-term-resolution/scripts
# one string, constrained to the ontology that should define it
python3 resolve_terms.py "liver" --ontology uberon
query rank curie iri label ontology match_type strategy defining_ontology
liver 1 UBERON:0002107 http://purl.obolibrary.org/obo/UBERON_0002107 liver uberon exact_label exact true
# a column of tissue names; anything not an exact hit is reported, not guessed
python3 resolve_terms.py --input tissues.txt --ontology uberon \
--exact-only --format tsv -o resolved.tsv
# accept fuzzy fallbacks, then review the partial hits by hand
python3 resolve_terms.py "left ventrical of heart" --ontology uberon --top 3
The search escalates exact (label and synonym) → token → fulltext and stops at the first
strategy that returns candidates, reporting which one fired. --exact-only disables the ladder
and locally rejects partial, related, broad, narrow, and unscoped synonym matches. Searches
are bounded candidate lists (--top), not exhaustive ambiguity checks.
--branch UBERON:0000465 uses OLS hierarchical ancestry, including part-of/develops-from.
Read match_type before using a result. exact_label and exact_synonym establish lexical
agreement (the latter also requires an exact synonym annotation), not correct sample context.
related_synonym, broad_synonym, narrow_synonym, unspecified_synonym, and partial require
curation. Validate every selected ID; search does not expose obsolescence in its records.
unresolved is a legitimate output. See references/curation-rules.md before normalising input.
Validate existing IDs
python3 validate_terms.py UBERON:0002107 EFO:0001067 UBERON:9999999
id status actual_label ontology replacement detail
UBERON:0002107 ok liver uberon
EFO:0001067 obsolete obsolete_parasitic infection efo MONDO:0005135 obsolete; replaced by MONDO:0005135
UBERON:9999999 not_found no such term in the ontology this prefix names
Exit code is 1 if anything failed, 0 otherwise, 2 on usage or network trouble — so it works as a CI gate on a metadata file:
# id + label columns; catches IDs that exist but are labelled as something else
python3 validate_terms.py --input metadata.tsv --strict
# a tissue column must hold UBERON anatomical entities and nothing else
…
Häufige Fragen
Was ist eine 'Ontologie-ID'?
Sie ist ein eindeutiger, standardisierter Code, der ein bestimmtes wissenschaftliches Konzept repräsentiert, etwa einen Zelltyp, eine Krankheit oder einen Körperteil.
Warum ist es wichtig, IDs zu prüfen?
Falsche oder veraltete IDs können zu Fehlern in der Datenanalyse führen. Dadurch wird es schwer, wissenschaftliche Ergebnisse nachzuvollziehen und zu reproduzieren.
Was bedeutet 'obsolete' bei einer ID?
Es bedeutet, dass die ID nicht mehr verwendet wird und durch eine neue ersetzt wurde. Das Tool kann dir die Ersatz-ID vorschlagen.
Details
Originalbeschreibung des Autors
Resolves free-text scientific labels to ontology term IDs and validates existing CURIEs against the EBI Ontology Lookup Service (OLS4). Also looks up prefixes in Bioregistry, resolves compact identifiers via Identifiers.org, maps lab shorthand with ZOOMA, and builds Ontobee term pages. Use whenever an ontology identifier must be produced or checked - annotating tissue, cell type, disease, phenotyp
Beliebtheit
- GitHub-Sterne
- 51k
- Platz im Ranking
- #3511
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
13c-metabolic-flux
51kSchätzt Stoffflüsse im Stoffwechsel anhand von Kohlenstoff-13-Isotopendaten. Nützlich für die Analyse des Zellstoffwechsels und biochemischer Stoffwechselwege.
adaptyv
51kPlant Experimente zur Proteincharakterisierung mit der Adaptyv API. Hilft beim Schätzen der Kosten, Einreichen von Sequenzen und Verfolgen der Laborergebnisse.
aeon
51kFührt Machine-Learning-Aufgaben mit Zeitreihendaten aus. Nützlich zum Klassifizieren, Prognostizieren, Erkennen von Anomalien und Finden von Mustern.
alphagenome
51kSucht vorberechnete genomische Effekte für genetische Varianten heraus. Liefert Scores und Erklärungen zu den Auswirkungen der Varianten auf das Genom.
Ähnliche Skills
technical-documentation
394kHilft deinem Agenten, klare technische Dokumentation und Agenten-Anleitungen zu schreiben und zu prüfen, damit Menschen und KI-Tools leicht folgen können.
architecture-decision-records
280kLässt deinen Agenten wichtige Entscheidungen zur Projektstruktur festhalten. So bleibt nachvollziehbar, warum etwas so gewählt wurde, und die Änderungen sind klar dokumentiert.
code-tour
280kLässt deinen Agenten Schritt-für-Schritt-Erklärungen des Codes mit genauen Datei- und Zeilenangaben erstellen. Nützlich für Einführungen, Erklärungen und Reviews.