ontocore
OntoCore is the public façade API for the semantic workspace engine.
This crate re-exports the stable surface of OntoCore for Rust applications. Implementation lives in the ontocore-* crates (ontocore-core, ontocore-catalog, ontocore-query, etc.) — use those directly when you need lower-level control.
Quick start
use Workspace;
let workspace = open?;
let diagnostics = workspace.diagnostics;
let result = workspace.query?;
for row in &result.rows
Modules
| Module | Role |
|---|---|
workspace |
High-level Workspace::open API — incremental index, diff, import graph |
diff |
Semantic catalog diff, git refs, breaking-change heuristics |
catalog |
Index builder and entity catalog |
query |
SQL virtual tables and SPARQL |
diagnostics |
Lint rule collection |
parser |
RDF/OBO parsing |
owl |
Horned-OWL bridge, patches, Manchester |
reasoner |
OntoLogos classification facade |
refactor |
Workspace refactoring |
lsp |
LSP protocol types (feature lsp, enabled by default) |
Ecosystem
| Component | Role |
|---|---|
OntoCore (ontocore, ontocore-*) |
Semantic workspace engine — this crate |
| OntoLogos | Reasoning engine (classification, consistency, explanations) |
| OntoCode | VS Code IDE powered by OntoCore |
| External plugins (e.g. owlmake) | Workflow/build/release automation — integrate via OntoCore plugin APIs, not core dependencies |
Binaries
- CLI:
ontocore(ontocore-clicrate) —cargo install ontocore-cli --locked - LSP:
ontocore-lsp— bundled in the OntoCode VS Code extension
See docs/ontocore/ in the OntoCode repository.