Langsung ke konten
Skillpedia
Dokumentasi51k Β· #3511

ontology-term-resolution

Fungsinya

Alat ini membantu menemukan dan memverifikasi identifier istilah ilmiah. Alat ini mengubah nama deskriptif menjadi kode unik (ID) dan memastikan apakah kode yang sudah ada masih valid dan terkini.

Kapan dipakai

  • βœ“Saat memberi anotasi data dengan istilah ilmiah.
  • βœ“Saat mengisi formulir pengajuan data.
  • βœ“Saat memeriksa validitas kode pada file lama.

Link skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/ontology-term-resolution/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/ontology-term-resolution/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œCari ID untuk 'left ventricle' dalam ontologi UBERON.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini mencari istilah yang Anda deskripsikan di basis data ilmiah atau memverifikasi kode yang Anda berikan. Alat ini menggunakan layanan seperti OLS dan Bioregistry untuk memastikan identifier sudah benar dan terbaru.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

…
Pertanyaan umum

Apa itu 'ontology ID'?

Ini adalah kode unik dan terstandar yang mewakili konsep ilmiah tertentu, seperti jenis sel, penyakit, atau bagian tubuh.

Mengapa penting untuk memeriksa ID?

ID yang salah atau sudah usang dapat menyebabkan kesalahan dalam analisis data, sehingga hasil ilmiah sulit dipahami dan direproduksi.

Apa arti 'obsolete' untuk sebuah ID?

Artinya ID tersebut sudah tidak digunakan lagi dan telah digantikan oleh ID baru. Alat ini dapat menyarankan ID penggantinya.

Detail

Deskripsi asli dari pembuat

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

repo: K-Dense-AI/scientific-agent-skills

Popularitas

Bintang GitHub
51k
Peringkat
#3511
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa