Ontology-Driven Development for VS CodeBuild an ontology from your requirements, and let it drive development. Ontology-Driven Development (ODD) is a VS Code extension and a command-line tool (
New to the idea? Read What Is Ontology-Driven Development?, then try the hands-on tutorial.
From requirements to an ontologyGive each requirement an ID, list the IDs in the ontology's
Run ODD: Create Sample Ontology... and pick Meeting Room Booking (Object Ontology) to see a complete example. The format reference covers every field. The
|
| Command | What it does |
|---|---|
oont validate <path>... [--format text\|json] [--strict] |
Checks files or whole directories. Exit code 0 means no errors, 1 means errors (or warnings with --strict), 2 means a usage or file problem. |
oont trace <path>... [--root <dir>] [--strict] |
Checks that every action type has x-implementedBy and x-tests, and that the paths in them exist. Same exit codes. |
oont coverage <path>... [--root <dir>] [--strict] |
Checks that each validation's requirement is named, together with its action, in a line of the action's x-tests. |
oont commits <range> --ontology <file> --code <path>... [--since <commit>] |
Checks that each code commit's Ontology: trailer names elements that were in the ontology before the commit, with Requirements: IDs from its registry. |
oont review-context <base>..<head> --ontology <file> [--code <path>...] [-o <out>] |
Writes Markdown review material for an agent or a person: the commits and trailers, the named elements as written, their requirements, and the diffs. It calls no LLM. |
oont export tools\|summary\|turtle <file> [-o <out>] |
Writes the agent tool definitions, the LLM context summary or Turtle, identical to the extension's exports. |
The CLI runs locally, with no network access and no telemetry. Install it from npm (Node.js 20 or later):
npm install -g @yaggytter/object-ontology-cli
oont validate path/to/ontologies
See the CLI reference for options, output formats and CI use.
A diagram you will enjoy using
- Readable schema cards keep datatype properties inside their class instead of turning every triple into visual noise.
- Accessible, meaningful colors automatically choose readable node text and explain how related entities form color families.
- A spacious, zoomable canvas includes zoom in/out, reset to 100%, fit-to-screen, layout switching, and PNG export.
- Fast navigation searches classes, relations, and properties. Double-clicking a node focuses its neighborhood.
- SPARQL queries run against the open ontology, entirely on your machine, with results shown as text and reflected on the diagram (highlight matches or filter out the rest).
- An adaptive Inspector stays beside the graph on wide screens and becomes a dismissible sheet in narrow editor groups.
- Safe Turtle write-back re-parses every generated edit before accepting it. Create classes and relations, rename entities, and edit properties or descriptions directly from the diagram.
- English and Japanese UI follows the VS Code display language.
- Local-first operation sends no ontology contents or usage telemetry from the extension.
Two styles of ontology: the center and the connection layer
In ontology-driven development, the Object Ontology is the center: it holds the concepts and the operations that drive the code. Semantic Web ontologies connect it to glossaries, standard vocabularies and external knowledge. The extension supports both.
| Semantic Web (OWL / RDF / SKOS) | Object Ontology (*.oont.yaml) |
|
|---|---|---|
| Answers | What things are and how they relate | What the business operates on, and how it may change |
| Identity | Global IRIs, reusable W3C vocabularies | Primary keys inside one system |
| Changes | Not modeled (SPARQL Update is separate) | First-class action types with parameters, rules and validations |
| Best AI fit | Grounding answers: GraphRAG, glossaries, provenance | Acting safely: actions become typed agent tools with guard rails |
The choosing guide and the use-case catalog explain when to use which, and how to combine them.
Object Ontology at a glance

objectOntology: 1
name: Corner Cafe Orders
objectTypes:
Order:
primaryKey: orderId
properties:
orderId: { type: string }
status: { type: string, enum: [open, preparing, served, cancelled] }
actionTypes:
markServed:
parameters:
order: { type: objectRef, objectType: Order, required: true }
rules:
- { op: modifyObject, objectType: Order, object: order, set: { status: served } }
validations:
- description: Only an order that is being prepared can be served.
- Diagram, edit, and query with the same canvas: object types, interfaces (hexagons), link types with cardinality badges, and an Actions panel. Diagram edits are surgical YAML changes that are re-parsed before they are applied, and comments are kept.
- Problems and outline: broken references, unknown fields, duplicate example keys, and undefined or unreferenced requirement IDs are reported at their exact location. A bundled JSON Schema adds completion for
*.oont.json(and for*.oont.yamlwith the Red Hat YAML extension). - SPARQL runs over an RDF projection (OWL + an
oont:vocabulary), with nine Object-Ontology example queries such as "what can be done to each type?", "follow links between objects" and "requirements and the elements that realize them". - AI-agent exports open as untitled documents for you to review: action types as tool definitions (JSON Schema, the shape used by MCP and function-calling APIs), a compact LLM context summary in Markdown, and Turtle for combining with Semantic Web data. The same exports are available from the CLI as
oont export. Neither the extension nor the CLI calls an LLM or the network.

The format is this extension's own; it is not Palantir's file format and does not connect to Foundry.
Get started in one minute
- Install Ontology-Driven Development from the VS Code Marketplace.
- Run ODD: Create Sample Ontology... from the Command Palette and pick Meeting Room Booking (Object Ontology). Save it as
room-booking.oont.yaml. - Press
Cmd+Alt+Oon macOS orCtrl+Alt+Oon Windows/Linux. You can also use the diagram button in the editor title bar. - Select Meeting room or Booking. The Inspector lists its properties, links and the requirements it realizes. Open Actions to see each action with its rules and requirements.
- Add a requirement to the
requirements:registry that nothing references, and watch the warning appear in the Problems panel. Then runoont validate room-booking.oont.yamlfor the same result in a terminal.
Continue with the Getting Started guide, the ODD tutorial or the other tutorials. For OWL and RDF, open any .ttl file and press the same shortcut.
What you can do
Explore
- Switch between a class-focused Schema view and a raw Triples view.
- Search and focus entities, inspect incoming and outgoing relations, and see entity/relation/property counts.
- Drag nodes into a useful arrangement; positions are remembered per file and view when you reopen the diagram.
- Choose the organic
fcoselayout or layereddagrelayout. - Export the current diagram as PNG or its saved layout as JSON.
Query with SPARQL
Open the SPARQL panel from the toolbar to run SPARQL 1.1 queries against the ontology you have open. SELECT, ASK, and CONSTRUCT/DESCRIBE are supported. Press Run or Ctrl/Cmd+Enter to execute.
New to SPARQL? The panel ships nine example queries that work on any ontology, ordered from "show me anything" up through OPTIONAL, FILTER, aggregation, ASK, and CONSTRUCT — pick one and run it. The SPARQL tutorial walks through them.
Results show as text — a table of bindings for SELECT, a boolean for ASK, or subject/predicate/object rows for CONSTRUCT — and are reflected on the diagram:
- Highlight accents matching nodes and their connecting edges while keeping the rest of the graph visible.
- Filter dims everything the query did not match, and composes with the search box and double-click focus.
- No graph effect shows the text result only.

Queries execute locally in the extension host (powered by Comunica); no ontology contents leave your machine.
Edit safely
Turtle files support diagram editing. You can create classes and relations, rename entities, add/rename/retype/delete properties, and edit descriptions. Every write is applied to an in-memory candidate and re-parsed first. If verification fails, the source file is left unchanged.
Text editing remains first-class: Turtle also has outline, hover, completion, and Rename Symbol (F2) support.
Bring existing ontologies
RDF/XML and JSON-LD are viewable directly. Use ODD: Convert to Turtle for Editing... when you want diagram write-back. The conversion creates a new document and does not overwrite the source file.
Format support
| Format | Extensions | Diagram | Edit from diagram |
|---|---|---|---|
| Turtle | .ttl, .turtle |
Yes | Yes |
| TriG | .trig |
Yes | No |
| N-Triples | .nt |
Yes | No |
| Notation3 | .n3 |
Yes | No |
| RDF/XML / OWL/XML | .rdf, .owl |
Yes | Convert first |
| JSON-LD | .jsonld |
Yes | Convert first |
| Object Ontology (YAML) | .oont.yaml, .oont.yml |
Yes | Yes |
| Object Ontology (JSON) | .oont.json |
Yes | Convert to YAML first |
SPARQL querying works on every format in this table — it runs against the parsed triples (or, for Object Ontology files, their RDF projection), so no conversion is needed.
See Format Support for parser and editing details.
Commands
| Command | Default keybinding |
|---|---|
| ODD: Open Diagram Preview | Cmd+Alt+O / Ctrl+Alt+O |
| ODD: Convert to Turtle for Editing... | — |
| ODD: Export Diagram Layout as JSON... | — |
| ODD: Create Sample Ontology... | — |
| ODD: Export Actions as AI Agent Tools (JSON Schema)... | — |
| ODD: Export Ontology Summary for LLM Context... | — |
| ODD: Export Object Ontology as Turtle (OWL)... | — |
| ODD: Convert Object Ontology JSON to YAML for Editing... | — |
Cmd+Shift+O / Ctrl+Shift+O remains VS Code's built-in Go to Symbol in Editor command.
Settings
| Setting | Default | Description |
|---|---|---|
ontologyDrivenDevelopment.preview.autoRefreshDebounceMs |
300 |
Delay in milliseconds before a source edit refreshes the diagram. |
ontologyDrivenDevelopment.preview.defaultView |
schema |
Initial view: schema or triples. |
ontologyDrivenDevelopment.preview.layout |
fcose |
Automatic layout: fcose or dagre. |
Documentation and help
- Getting Started
- Ontology-driven development: What Is ODD? · Tutorial: From Requirements to an Ontology · ODD in Practice (illustrated guide)
- Reference: Object Ontology Format · CLI (
oont) - Build Your First Ontology
- Edit From the Diagram
- Import an Existing OWL File
- Ask Questions with SPARQL
- Your First Object Ontology
- Object Ontology × AI Agents
- Semantic Web Ontologies × LLMs
- Run It with Claude Code — Object Ontology Agents
- Run It with Claude Code — Semantic Web Answers
- Choosing an Ontology Style · Use Cases
- Format Support
- Troubleshooting
- Support · Privacy · Security
- Contributing · Changelog
Before opening an issue, check the troubleshooting guide. Bugs and focused feature requests are welcome in GitHub Issues.
Privacy and trust
Ontology-Driven Development processes ontology documents locally in the VS Code extension host and webview. The extension does not include telemetry, advertising, accounts, or an extension-owned network service. The oont CLI also works only on local files, with no network access and no telemetry. See the Privacy Notice for the exact data flow and the Security Policy for reporting vulnerabilities.
License
Released under the MIT License. Bundled dependency notices are listed in THIRD_PARTY_NOTICES.md.
