ontology-engineering

ontology-engineering is a skill for Claude Code from fabio-rovai/open-ontologies. It costs 47 tokens per session (2,587 once invoked), scanned A, original, MIT.

A set of instructions for creating and managing ontologies—structured descriptions of things, their properties, and how they relate—in RDF and OWL formats.

In plain words
What is it for?
Use it to build, load, query, validate, and review ontologies and other RDF data.
Why use it?
It provides a repeatable way to check that knowledge-graph data is valid, complete, and consistent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the open-ontologies plugin — 2 skills, 1 MCP server shipped together

Good fit Use it to build, load, query, validate, and review ontologies and other RDF data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabio-rovai/open-ontologies/ontology-engineering
About the project

Open Ontologies is a Rust tool for planning, checking, applying, and rolling back changes to production ontologies, which are formal descriptions of concepts and their relationships. It helps ontology maintainers and reviewers inspect the consequences of edits and verify the resulting evidence with a Lean 4 checker. The catalogue includes add-ons such as skills, an instruction, a plugin, and an MCP integration for working with it.

fabio-rovai/open-ontologies · 1,502 stars · on GitHub · tesseractsemantics.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fabio-rovai/open-ontologies --skill ontology-engineering
Clone the repo
git clone --depth 1 https://github.com/fabio-rovai/open-ontologies

Made for: Claude Code.

Or install open-ontologies, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ontology-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabio-rovai/open-ontologies/ontology-engineering/github.svg)](https://agentmods.dev/skills/fabio-rovai/open-ontologies/ontology-engineering)
Your own site
<a href="https://agentmods.dev/skills/fabio-rovai/open-ontologies/ontology-engineering"><img src="https://agentmods.dev/badge/skills/fabio-rovai/open-ontologies/ontology-engineering/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ontology-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabio-rovai/open-ontologies/ontology-engineering"><img src="https://agentmods.dev/badge/skills/fabio-rovai/open-ontologies/ontology-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02587
Opus 5.5 $0.00019 $0.01035
Sonnet 5.5 $0.00009 $0.00517
Haiku 4.5 $0.00005 $0.00259

Measured 13d ago against content hash 9db9b34c21fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ontology-engineering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ontology-engineering/SKILL.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ontology Engineering Workflow

You have access to the Open Ontologies MCP server, which provides 122 tools for AI-native ontology engineering backed by an in-memory Oxigraph triple store. 114 of them are advertised in a default build, and the other 8 require an optional Cargo feature and return an error without it: four need embeddings, two need plugins, and two need postgres or duckdb.

Core Workflow

When building or modifying ontologies, follow this workflow. Decide which tools to call and in what order based on results -- this is not a fixed pipeline.

1. Generate

  • Understand the domain requirements (natural language, competency questions, methodology constraints)
  • Generate Turtle/OWL directly -- you know OWL, RDF, BORO, 4D modeling natively

2. Validate and Load

  • Call onto_validate on the generated Turtle -- if it fails, fix syntax errors and re-validate
  • Call onto_load to load into the Oxigraph triple store. For repos that mount a folder of .ttl files via [general] ontology_dirs, prefer onto_repo_load so the same compile-cache / TTL-eviction path is exercised. Use onto_repo_list to discover candidate files.
  • Call onto_stats to verify class count, property count, triple count match expectations

3. Verify

  • Call onto_lint to check for missing labels, comments, domains, ranges -- fix any issues found
  • Call onto_query with SPARQL to verify structure (expected classes, subclass hierarchies, competency questions)
  • If a reference ontology exists, call onto_diff to compare

4. Iterate

  • If any step reveals problems, fix the Turtle and restart from step 2
  • Continue until validation passes, stats match, lint is clean, and SPARQL queries return expected results

5. Persist

  • Call onto_save to write the final ontology to a .ttl file
  • Call onto_version to save a named snapshot for rollback

Cache and Multi-Ontology Loading

The server keeps a single active ontology in memory plus an on-disk N-Triples compile cache for everything it has parsed. Switch between several ontologies without paying re-parse costs:

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed 9db9b34c21fb
  2. 28d ago Changed 22ed28a76205
  3. 1mo ago Changed 1bd5e159ee62
  4. 1mo ago Changed 9ec3ad961560
  5. 1mo ago Changed c51f55ba6d84
  6. 1mo ago Changed 487545d1ac16
  7. 1mo ago First seen · 153 lines · 47 tokens per session scan A ddb6f26ce463

Subscribe to this mod's changes

ontology-engineering is a skill published in the GitHub repository fabio-rovai/open-ontologies (1,502 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 2,587 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mykg

Run mykg knowledge-graph commands inside Claude Code from one slash command /mykg. The user describes intent in natural language (extract, append, sync, resume, approve, walkthrough, parse-docs, fetch-web, query); the skill parses intent, builds the right mykg CLI command from the live --help output, confirms, runs…

SenolIsci/mykg · 175 tokens

prepare-data

Profile and prepare raw source files before modeling or loading them into Cruxible; validate keys, grain, joins, and transformation needs, then produce a concrete readiness report.

cruxible-ai/cruxible · 37 tokens

five-ring-ontology-engineering-lifecycle

A five-stage method for planning an enterprise ontology, a structured model of the concepts and relationships used across a business, from source material through ongoing use.

SuperChason/ontology-driven-ai-data-management-skills · 76 tokens

ontology-ai-application-pattern-selection

A method for choosing how an AI system should handle a business problem after deciding that an ontology—a structured map of concepts and relationships—is suitable. It compares patterns such as workflow automation, decision support, knowledge answering, collaboration, and continuous planning.

SuperChason/ontology-driven-ai-data-management-skills · 100 tokens

ontology-ai-scenario-fit-and-spike

A method for deciding whether an ontology is suitable for an enterprise AI scenario and testing that choice with a small end-to-end sample. An ontology is a structured model of concepts, rules, and relationships.

SuperChason/ontology-driven-ai-data-management-skills · 102 tokens

ontology-constraint-and-knowledge-injection

A method for deciding how an ontology’s knowledge should reach an AI model: directly in its instructions, through RAG, or through fine-tuning. RAG retrieves relevant information at answer time; fine-tuning changes the model using training examples.

SuperChason/ontology-driven-ai-data-management-skills · 100 tokens