ohi
ohi helps you find, download, and manage ontologies. ohi LinkML helps you write, check, and convert LinkML schemas.
It's a single native command-line tool for Linux, macOS and Windows, with libraries for Python, JavaScript/TypeScript, C/C++/Rust, and the JVM.
| What it does | |
|---|
| ohi | Search ontologies, download their files and manage ontology projects locally | Docs · Browse |
| ohi LinkML | Validate LinkML schemas and turn them into JSON Schema, SHACL, OWL, Pydantic and more | Docs · Playground |
[!NOTE]
⭐ If you like ohi, consider giving it a star – it helps others find the project!
Install
On Linux, macOS, or Windows with Git Bash, MSYS2, Cygwin or WSL:
. <(curl -sSfL https://ohi.dev/install.sh)
ohi version
In PowerShell:
irm https://ohi.dev/install.ps1 | iex
ohi version
Read the scripts before running them: install.sh, install.ps1.
For other ways to install (mise, manual download, the JAR) and how to verify a download, see
the install guide.
Ontologies
Find an ontology on ohi.dev and download it:
ohi search foaf
ohi get foaf/foaf@2014-01-14 --format owl-turtle
Or record the ontologies your project depends on, so anyone can download the same files later:
ohi init
ohi add w3c/prov-o@2013 --format owl-turtle
ohi sync # on another machine, after cloning
ohi.yaml lists what you asked for, and ohi.lock.json lists the exact files and their checksums.
Commit both. See the ohi docs for the
first-ontology walkthrough,
projects and the full CLI reference.
LinkML
LinkML is a YAML-based language that lets you model your data or domain once.
ohi LinkML is the engine that turns it into code, ontologies, and schemas your tools already use:
ohi linkml validate model.yaml
ohi linkml to json-schema model.yaml
ohi linkml to shacl model.yaml
ohi linkml from owl ontology.ttl # turn an OWL ontology into LinkML
It tells you exactly what is wrong with your schema, and where:

- Runs everywhere. Native binaries, the JVM, Node.js, the browser (no install – try the playground), Python, and C, C++ or Rust.
- Fast. 22.9–38.5x faster than LinkML-Python, even on very large schemas.
- Consistent. Every generator is rigorously tested against the same set of LinkML models.
Run ohi linkml --help for the full list of generators and importers, or read
the LinkML docs.
Libraries
Also available