Skip to content
Skillpedia
Databases14k · #11151

ontology

What it does

This skill manages the ontology, which is the vocabulary and rules that define how a knowledge graph is structured. It is for people designing or checking the structure behind their graph.

When to use it

  • ✓When you want to list the concepts in an existing vocabulary.
  • ✓When you want to check an ontology for contradictions or terms that cannot be satisfied.
  • ✓When you want to create an ontology from a text description or a set of records.

Skill link

https://github.com/semantica-agi/semantica/blob/main/plugins/skills/ontology/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/semantica-agi/semantica/blob/main/plugins/skills/ontology/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you check my ontology for contradictions and tell me which terms cause problems?”

5 new skills a week. 1 minute to read.

How it works

The agent loads the ontology, checks it for consistency and satisfiability, and reports errors and warnings. It can also list concepts, build a new ontology from text or records, and check instance data against shape rules.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

/semantica:ontology

Manage ontology definitions and validation. Usage: /semantica:ontology <task> [args]

Entry points: OntologyEngine (authoring, export, alignments) and OntologyValidator (consistency checking).


concepts <scheme_uri>

List SKOS concepts in a vocabulary scheme.

from semantica.ontology import OntologyEngine
from semantica.triplet_store import TripletStore

store = TripletStore(backend="oxigraph")   # needs semantica[tripletstore-oxigraph]
engine = OntologyEngine(store=store)       # list_concepts/list_vocabularies need a
                                            # configured store — raises ProcessingError without one
concepts = engine.list_concepts(scheme_uri)
vocabs = engine.list_vocabularies()

validate <ontology>

Check an ontology for consistency and satisfiability.

from semantica.ontology import OntologyValidator

validator = OntologyValidator(check_consistency=True, check_satisfiability=True)
result = validator.validate(ontology)   # dict or path to an ontology file
# result.valid, result.errors, result.warnings

For SHACL shape validation of instance data use SHACLGenerator / SHACLValidationReport:

from semantica.ontology import SHACLGenerator

build <text|data>

Generate an ontology from unstructured text or structured records.

engine = OntologyEngine()
onto = engine.from_text(text)          # LLM-assisted (needs an llm-* extra + API key)
onto = engine.from_data(records)       # deterministic, from structured data

export <ontology> <path> [--format turtle]

engine.export_owl(onto, path, format="turtle")
engine.export_shacl(onto, path, format="turtle")

align <source_uri> <target_uri> <predicate>

engine.create_alignment(source_uri, target_uri, predicate)
engine.get_alignments(entity_uri)
engine.list_alignments()

evaluate <ontology>

Quality-gate an ontology (OntologyEvaluator / OntologyQualityReport under the hood).

report = engine.evaluate(onto)
FAQ

What is an ontology?

It is a formal set of terms and rules describing the kinds of things in your data and how they relate.

What does a consistency check find?

It flags contradictions in the rules that would make the ontology unreliable.

Does it need a special store?

Some listing tasks need a configured triple store, and the skill says so if one is missing.

Details

Original description by the author

Manage ontology schemas, concepts, alignments, and SHACL/OWL validation for Semantica knowledge graphs. Uses OntologyEngine and OntologyValidator.

repo: semantica-agi/semantica

Popularity

GitHub stars
14k
Ranking position
#11151
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills