aquaduct data strategies llcscience

01 — open-source tool

ontology-term-validate

Catches ontology identifiers that are correctly formed and mean the wrong thing. It checks each identifier against EBI OLS4 and reports the pairs where the label written next to it belongs to a different term.

github.com/aquaduct-data/ontology-term-validate →

02 — the defect

Valid, and wrong

NCIT:C5189 and NCIT:C51899 differ by one character. The first is Breast Extraskeletal Osteosarcoma. The second is Radical Cystoprostatectomy. Both are real and both parse, so a schema validator accepts either. If code writes the first while its label says the second, nothing fails.

A public example

That defect sat in a published GA4GH Phenopacket example until it was corrected in November 2026 (ga4gh/phenopacket-schema#451). The issue that reported it suggests adding automated identifier/label validation. This tool is that check.

03 — what it does

Finds pairs, resolves, classifies

It finds identifier and label pairs in a source tree, resolves each identifier against EBI OLS4, and classifies every pair as OK, SYNONYM, MISMATCH, OBSOLETE or UNRESOLVED. An unanswered lookup is reported as cannot determine, never as clean.

Exit codes that do not mislead

Exit 0 means every pair was checked and is clean. An empty scan and an unresolved lookup each have their own non-zero code, so a check that could not run is never mistaken for one that passed.

04 — what it does not do

Scope

It does not validate schemas, and it does not judge whether a term is the right one clinically: it checks only that an identifier and its label agree. It covers what OLS4 serves, so some ontologies, OMIM for example, come back unresolved. It needs the network unless given a local map.

Rust sources

The Rust reader is pattern-based, not a Rust parser. Read a Rust mismatch before acting on it, and do not read a clean result as proof. The repository lists the cases it does not read.

known limits →

05 — data

It reads source trees and never writes into the tree it scans. It uses no patient-derived data of any kind. Its network traffic goes to EBI OLS4, a free public read-only API, with no credentials and no telemetry.

06 — provenance and licence

Provenance

Built while contributing corrections to the GA4GH Phenopacket Schema. Prepared with AI assistance, disclosed in the commit history.