Skip to content

Examples index

Runnable examples for the Strixonomy engine CLI, Rust embedding, and IDE workflows.

Prefer the tutorial folder

After First success, point CLI commands at your strixonomy-tutorial directory (or unzipped strixonomy-tutorial.zip). Paths like fixtures/ exist only in a git clone. IDE-only users can skip CLI cookbooks.

CLI cookbooks (copy-paste)

Guide Description
Query cookbook SQL and SPARQL over virtual tables
Sample patches strixonomy patch JSON for Turtle, OBO, RDF/XML, and OWL/XML write-back
Refactoring Rename, merge, replace, migrate, move, extract
DL Query Manchester class expressions (CLI / Workbench DL mode)
Plugins plugins list|info|enable|disable|run against plugin-workspace
Classify Reasoner profiles and CI exit semantics
Realize / instance check ABox realization and check-instance (v0.23+)
SWRL Rule patches + LSP validate/list (v0.23+)
Semantic diff Git refs, PR summary, directory compare
Docs export Markdown/HTML documentation export
Index vs inspect Stats-only vs diagnostic summary
# Tutorial folder (recommended)
strixonomy validate ~/strixonomy-tutorial
strixonomy query ~/strixonomy-tutorial "SELECT short_name FROM classes"

# Git clone (secondary)
cargo run -- validate fixtures
cargo run -- query fixtures "SELECT short_name FROM classes"

End-to-end workflow (clone)

cargo run -- validate fixtures
cargo run -- classify fixtures --profile el --format json
cargo run -- diff HEAD..WORKTREE --format markdown

Then try a patch preview: Sample patches. VS Code path: First success (~10 min).

Rust examples (examples/)

Example Run Description
index_and_query cargo run -p strixonomy-workspace --example index_and_query Workspace + SQL query on fixtures/
strixonomy_workspace cargo run -p strixonomy-workspace --example strixonomy_workspace High-level Workspace API
workspace_operations cargo run -p strixonomy-workspace --example workspace_operations Classify, import graph, docs export
error_handling cargo run -p strixonomy-workspace --example error_handling strixonomy::Error handling
semantic_diff cargo run -p strixonomy-workspace --example semantic_diff Git/workspace semantic diff (optional git repo)

Fixture workspaces

Location Description
fixtures/ on GitHub Primary tutorial corpus (example.ttl, complex-classes.ttl, …)
Fixtures README Per-file purpose and smoke commands
examples/obo-workflow/ Minimal OBO workspace — see OBO workflow guide
examples/protege-roundtrip/ Protégé-style Turtle + OWL/XML / RDF/XML fixtures (v0.18)
examples/plugin-workspace/ Sample plugin manifests — see Plugins cookbook · Plugin authoring

Download tutorial files without cloning:

mkdir strixonomy-tutorial && cd strixonomy-tutorial
curl -fsSLO https://raw.githubusercontent.com/eddiethedean/strixonomy/v0.27.0/fixtures/example.ttl
curl -fsSLO https://raw.githubusercontent.com/eddiethedean/strixonomy/v0.27.0/fixtures/complex-classes.ttl

VS Code tutorial

First success (~10 min) — install extension, open tutorial pack, browse and edit.