Imported from akillness/jeo-skills (
.agent-skills/open-ontologies/SKILL.md). Install upstream withnpx skills add akillness/jeo-skills --skill open-ontologies. Copyright stays with the author.
Open Ontologies
When to use this skill
- Use for Open Ontologies CLI/MCP operation: inspect RDF/OWL inputs, validate syntax or SHACL, plan semantic changes, reason/query, compare/diff, or verify certificates with the project's checker.
- Use when the user names
open-ontologies,oo-cert, anonto_*MCP tool, or asks for change-impact, entailment, provenance, or certified ontology results. - Route visual ontology editing/class-hierarchy authoring to Protégé or
orionbelt-ontology-builder; route general document-to-graph pipelines, extraction, or vector/backend integration tosemantica. - Route generic database administration, hosted-provider setup, or unrelated RDF tooling to the matching platform skill; this package does not replace those operators.
Instructions
- Start with the bundled offline source check, before reading or running an upstream binary:
- From the
jeo-skillsrepository root:python3 .agent-skills/open-ontologies/scripts/preflight.py --repo /absolute/path/to/upstream --json - From an installed
open-ontologiesskill root:python3 scripts/preflight.py --repo /absolute/path/to/upstream --jsonUse an authorized absolute source directory with no symlink path components. Exit0plussource_checked: truemeans only the manifest-listed public-file hashes matched;1means a listed file is missing or mismatched;2means invalid, unsafe, or unreadable input. A report is never runtime proof:runtime_verifiedstaysfalse.
- From the
- To get a working binary, after the user approves the clone, crate/Git-patch download, compile, and the copy into
BIN_DIR, runscripts/install.shfrom the skill root. It clones the pinned commit intoSOURCE_DIR(default~/.local/share/open-ontologies/src), runspreflight.pyon it, builds withcargo build --locked(PROFILE=releaseby 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 toBIN_DIR/open-ontologies(default~/.local/bin), then runsscripts/smoke.py. If the active cargo is older than 1.88 it picks the newest installed stable rustup toolchain that qualifies, or setRUST_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. - Verify any binary you intend to use with
python3 scripts/smoke.py --binary /path/to/open-ontologies [--json]. It runs one localbatchprocess with--no-connectagainst a temporary data directory: loads two triples, confirms a SPARQL query finds nodependsOnrow, runsreason --profile rdfs, and confirms exactly one inferred row appears. Exit0is 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. Exit1is a failed check,2means the binary could not be run. - 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.
- Use the installed binary's own
--helpfor exact subcommands and flags (there is no--version; the first--helpline identifies the tool).batch -accepts a JSON array of{"command","args"}objects on stdin;querytakes one SPARQL string as a single argument. The pinned README demonstratesprintf 'load base.ttl\\nplan proposed.ttl\\n' | open-ontologies batch -; treat it as an example, not a command to run without input review. - 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.
- 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-httpare different exposure modes. - Preserve each helper's scope:
preflight.pyuses only Python stdlib and selected-file hashing and never executes upstream code or touches the network;smoke.pyexecutes the binary but writes only inside a temporary directory;install.shis the only script with network and filesystem side effects.
Examples
- “Compare these two RDF files and show semantic consequences before I apply anything.”
- “Check whether this entailment has a certificate and distinguish undecided from false.”
- “Configure the Open Ontologies MCP server for my editor.”
- “Install Open Ontologies from the pinned source and prove the binary actually works before I point it at my ontology.”
Best practices
- Use
oo-certonly on the assertion/derivation artifacts it is intended to check, and preserve its exit status and verdict text. - Planning or a successful validation does not mutate production data; applying, importing, or writing artifacts is a separate approval boundary.
- Read
references/upstream.mdand verify the matching pinned source before choosing exact flags. The offline helper checks selected file hashes only, not Git HEAD or runtime readiness;smoke.pyis the runtime check, scoped to CLI batch/RDFS. - Prefer
--no-connectand an explicit throw-away--data-dirfor exploratory CLI runs so nothing reaches a daemon or the default~/.open-ontologiesstore.
Completion
- Report the mode used (
offline-selected-files, CLI, stdio MCP, or HTTP MCP), exact source evidence consumed, approval boundary crossed, and observed result. Afterinstall.sh, report the toolchain it selected, the installed path, and thesmoke.pyverdict. - Claim runtime readiness only after a separately approved run of the installed binary/client (
smoke.pyexit0is that evidence for the CLI batch surface); never promote a selected-file hash match, tool presence, build success, or source inspection into runtime proof.
References
references/upstream.md- setup, verified build/toolchain facts, command families, scope limits, license, safety.scripts/install.sh- approved clone +cargo build --locked --features embeddings+ copy toBIN_DIR+jeo-ontologyCLI + smoke test.scripts/onto_ops.py- deterministic CLI (jeo-ontology save|update|delete|search|init-store) wrapping validated Turtle/N-Triples mutations, SPARQL queries, keyword search, and~/.open-ontologiesstore setup.scripts/smoke.py- runtime check of one binary (load, query, RDFS reason, query) in a temporary data directory.references/source.json- selected pinned file SHA256s; not a whole-revision attestation.evals/evals.json- authored routing and boundary scenarios, not executed model-quality tests.
