Skip to content

OntoCore crate map

OntoCore is currently implemented by the ontocore-* crates. The ontocore crate is the public façade.

Façade

Crate Role
ontocore Public API — Workspace, module re-exports
[dependencies]
ontocore = "0.13"
# Optional: ontocore = { version = "0.13", features = ["lsp", "plugins"] }
use ontocore::workspace::Workspace;
use ontocore::catalog::IndexBuilder;  // lower-level

Implementation crates

Crate Role
ontocore-core Types, workspace scanner, limits, path jail
ontocore-parser RDF parsing (Oxigraph), OBO index
ontocore-catalog Index builder, entity API, graph payloads
ontocore-query SQL virtual tables, SPARQL
ontocore-owl Horned-OWL facade, patches, Manchester
ontocore-obo OBO Format 1.4 patch write-back
ontocore-diagnostics Lint rules
ontocore-reasoner OntoLogos classification facade
ontocore-refactor Workspace refactoring
ontocore-diff Semantic catalog diff, git compare
ontocore-docs Markdown/HTML documentation export
ontocore-robot ROBOT CLI wrappers
ontocore-lsp Language server binary + protocol types
ontocore-plugin Plugin manifest discovery (v0.14 host foundation)
ontocore-cli ontocore binary

ontocore-robot is not re-exported by ontocore — use ontocore-robot or the CLI directly for ROBOT interop.

Module map (ontocore)

ontocore module Source crate
workspace Wraps ontocore-catalog
catalog ontocore-catalog
query ontocore-query
diagnostics ontocore-diagnostics
parser ontocore-parser
owl ontocore-owl
obo ontocore-obo
reasoner ontocore-reasoner
refactor ontocore-refactor
diff ontocore-diff
docs ontocore-docs
lsp ontocore-lsp (feature lsp, opt-in)
plugin ontocore-plugin (feature plugins, opt-in)

Examples

cargo run -p ontocode --example ontocore_workspace
cargo run -p ontocode --example index_and_query

See Rust library guide for classification and error-handling examples.