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 query — SQL reference |
| SPARQL | ontoindex sparql — SPARQL reference |
| Lint / CI gate | ontoindex validate — CI integration |
| EL / RL / RDFS classify | ontoindex classify — Reasoner |
| Turtle patches | ontoindex patch — Patch reference |
| Workspace refactor | ontoindex refactor — Refactoring 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-core → ontoindex-parser → ontoindex-owl → ontoindex-diagnostics → ontoindex-catalog → ontoindex-query → ontoindex-reasoner → ontoindex-refactor → ontoindex-robot → ontoindex-lsp → ontoindex-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¶
- FAQ —
cargo installvs clone, MSRV, pre-1.0 API stability - Troubleshooting
- Best practices
Related¶
- VS Code extension path — Marketplace install, explorer, inspector
- Documentation home