ohi LinkML

Model your data or domain once, in a simple YAML schema. ohi LinkML checks it and turns it into the code, ontologies, and schemas your tools already use.

Free and open source · Apache 2.0

One model, many formats

LinkML is an open language for data and domain modeling.

You write your data model or ontology once. ohi LinkML then generates the artifacts needed for your stack: your API, database, knowledge graph and business logic all use the same source of truth.

You can also convert your existing models in Apache Ossie, OWL, or RDFS to LinkML to get started.

schema.yaml
classes:
  Book:
    attributes:
      title:
        required: true
      author:
        range: Person
Schemas
JSON SchemaGraphQLFrictionlessSHACL
Ontologies
OWLRDFSApache Ossie
Code
PydanticTypeScriptScala
Docs
MarkdownER diagrams

Precise validation

ohi LinkML tells you exactly what is wrong in your schema, or writes a JSON report for your tools.

Runs anywhere

Browsers, Node.js, the JVM, Python, and native binaries for Linux, macOS and Windows.

Quick, even on huge schemas

Natively-compiled CLI starts in milliseconds and stays fast even with huge schemas.

Install

Terminal
$ . <(curl -sSfL https://raw.githubusercontent.com/NeverBlink-OSS/linkml-scala/refs/heads/main/cli/install.sh)
$ linkml-scala validate schema.yaml

Linux, macOS, and WSL. Read the script before you run it: cli/install.sh. Or download a binary from the latest release.