Open ontologies

From akillness/jeo-skills · View interactive version

Open ontologies is an AI agent skill from the GitHub repository akillness/jeo-skills. Operate fabio-rovai/open-ontologies, the Rust RDF/OWL semantic planning and verification engine: inspect and validate ontologies, plan changes, query/reason, produce certificates, or connect its MCP interface. Use when users name Open Ontologies, `open-ontologies`, `oo-cert`, or ask for change-impac

How to use this skill

Skill file

Open Ontologies

When to use this skill

Instructions

  1. Start with the bundled offline source check, before reading or running an upstream binary:

Use an authorized absolute source directory with no symlink path components. Exit 0 plus source_checked: true means only the manifest-listed public-file hashes matched; 1 means a listed file is missing or mismatched; 2 means invalid, unsafe, or unreadable input. A report is never runtime proof: runtime_verified stays false.

  1. To get a working binary, after the user approves the clone, crate/Git-patch download, compile, and the copy into BIN_DIR, run scripts/install.sh from the skill root. It clones the pinned commit into SOURCE_DIR (default ~/.local/share/open-ontologies/src), runs preflight.py on it, builds with cargo build --locked (PROFILE=release by default; a first release build takes several minutes — about 3–7 minutes observed on Apple Silicon — and roughly 1 GB of target output), copies the binary to BIN_DIR/open-ontologies (default ~/.local/bin), then runs scripts/smoke.py. If the active cargo is older than 1.88 it picks the newest installed stable rustup toolchain that qualifies, or set RUST_TOOLCHAIN. It refuses to overwrite an existing binary or reset a checkout at another commit without --force. It never starts a server or registers an MCP client.
  2. Verify any binary you intend to use with python3 scripts/smoke.py --binary /path/to/open-ontologies [--json]. It runs one local batch process with --no-connect against a temporary data directory: loads two triples, confirms a SPARQL query finds no dependsOn row, runs reason --profile rdfs, and confirms exactly one inferred row appears. Exit 0 is runtime proof for the CLI batch/RDFS surface of that binary on that host only; it proves nothing about MCP transports, certificates, other profiles, or the user's data. Exit 1 is a failed check, 2 means the binary could not be run.
  3. Identify the intended backend and exact ontology inputs. Inspect current source files and scope before planning; do not write/apply a plan without explicit authorization for that data and destination.
  4. Use the installed binary's own --help for exact subcommands and flags (there is no --version; the first --help line identifies the tool). batch - accepts a JSON array of {"command","args"} objects on stdin; query takes one SPARQL string as a single argument. The pinned README demonstrates printf 'load base.ttl\\nplan proposed.ttl\\n' | open-ontologies batch -; treat it as an example, not a command to run without input review.
  5. Keep evidence classes separate: engine result, supplied-rule result, prover opinion, and independently checked certificate are not interchangeable. Report unknown, incomplete, unsupported constructs, and budget exhaustion as such, never as a negative answer or complete proof.
  6. Before MCP setup or any runtime command on user data, obtain approval for the exact install/build/download, client registration, listener bind/auth, remote data access, provider call, graph/database mutation, or public deployment. Inspect transport and client scope first; stdio package metadata and source serve-http are different exposure modes.
  7. Preserve each helper's scope: preflight.py uses only Python stdlib and selected-file hashing and never executes upstream code or touches the network; smoke.py executes the binary but writes only inside a temporary directory; install.sh is the only script with network and filesystem side effects.

Examples

Best practices

Completion

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.