Skip to content

Rust & CLI (OntoIndex)

OntoIndex is the Rust engine behind OntoCode: the ontoindex CLI, published ontoindex-* crates on crates.io, and the ontoindex-lsp language server (also bundled inside the VS Code extension).

Looking for the VS Code extension only? See the VS Code extension path.

Quick start

cargo install ontoindex-cli --locked
ontoindex query /path/to/ontologies "SELECT * FROM classes"
ontoindex validate /path/to/ontologies

No clone required. Release binaries: release integrity.

CLI getting started — install options, first commands, fixtures.

CLI workflows

Task Guide / command
Index and inspect ontoindex inspect <workspace>CLI reference
SQL virtual tables ontoindex querySQL reference
SPARQL ontoindex sparqlSPARQL reference
Lint / CI gate ontoindex validateCI integration
EL / RL / RDFS classify ontoindex classifyReasoner
Turtle patches ontoindex patchPatch reference
Workspace refactor ontoindex refactorRefactoring guide

Rust library embedding

Topic Guide
Crate map, examples Rust library guide
Index + query in code examples/index_and_query.rs
Per-crate READMEs crates/ on GitHub

Published crates (dependency order): ontoindex-coreontoindex-parserontoindex-owlontoindex-diagnosticsontoindex-catalogontoindex-queryontoindex-reasonerontoindex-refactorontoindex-robotontoindex-lspontoindex-cli.

Integrators

Topic Guide
Custom editor / tool via LSP LSP API
Patch JSON wire format Patch reference
Limits and exit codes Workspace limits · Errors

Enterprise & CI

Help