/knowledge-authoring:extract-ontologiesfrom knowledge-authoring
Extracts, authors, and validates reviewed domain ontologies from source evidence before Semantic OKF materialization, producing competency questions, evidence ledgers, vocabulary alignments, RDF graphs, OWL 2 axioms and profiles, instance data, SHACL shapes, fixtures, SPARQL checks, and validation reports. Use when Codex must perform ontology learning, evidence-led semantic modeling, entity or relation extraction, vocabulary alignment, OWL 2 engineering, or SHACL constraint design from documents, schemas, or datasets. Do not use it to create, expand, refresh, or repair a Semantic OKF snapshot, or to consult an existing knowledge bundle.
Ships in knowledge-authoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn source evidence into a reviewed semantic model before lifecycle materialization. Deliver approved mappings and constraints as ordinary output artifacts. For requests outside this authoring boundary, return an explicit diagnostic without importing or invoking another skill.
SKILL.md, references/, scripts/, and declared Python requirements.owl:sameAs, disjointness, inverse properties, property characteristics, keys, or cardinalities without direct evidence and human review.rdfs:domain and rdfs:range as type-producing axioms, not input constraints. Put record-shape requirements in SHACL.owl:equivalentClass, owl:equivalentProperty, or owl:sameAs when equivalence is uncertain.Read extraction-workflow.md before extracting from source material. Read semantic-modeling.md before choosing OWL axioms, profiles, graph boundaries, or SHACL constraints. Read turtle-patterns.md when authoring RDF artifacts. Read standards-and-tools.md when exact standards status, validation scope, or tool limitations matter.
Create or adapt this bundle unless the user specifies another contract:
scope.md # domain boundary, consumers, profile, assumptions
evidence.csv # exact source locator, interpretation, confidence, and review-state ledger
ontology.ttl # OWL 2 terminology and ontology metadata
data.ttl # accepted instance assertions
shapes.ttl # SHACL validation contract
competency-questions.rq # ASK/SELECT queries tied to numbered questions
validation-report.ttl # machine-readable SHACL report when shapes are run
Scaffold the first six files with:
python scripts/scaffold_ontology_bundle.py OUTPUT_DIR \
--ontology-iri https://example.org/ontology/domain \
--version-iri https://example.org/ontology/domain/1.0.0 \
--prefix ex \
--title "Domain ontology" \
--owl-profile rl
Do not publish the scaffold unchanged. Replace comments, fill the evidence ledger, and add positive and negative fixtures appropriate to the domain.
For a plan-only request, keep the response compact: use 6–10 ordered steps, name each core artifact once, state each applicable bundled command once, and surface no more than five unresolved review decisions. Name scaffold_ontology_bundle.py and validate_semantic_artifacts.py directly when they apply. Include only safety boundaries triggered by the request instead of restating the complete policy.
For offline or reproducible authoring, explicitly pin ontology sources, imports, and JSON-LD contexts to supplied local versions and forbid remote dereferencing during validation.
Install the pinned validator dependencies once in an isolated environment:
python -m venv .venv
# POSIX: . .venv/bin/activate
# PowerShell: ./.venv/Scripts/Activate.ps1
python -m pip install -r scripts/requirements.txt
Then validate local graph files:
python scripts/validate_semantic_artifacts.py \
--data OUTPUT_DIR/data.ttl \
--ontology OUTPUT_DIR/ontology.ttl \
--shapes OUTPUT_DIR/shapes.ttl \
--inference none \
--report OUTPUT_DIR/validation-report.ttl
Use --inference rdfs, owlrl, or both only when that entailment regime is part of the declared validation contract. The bundled validator parses RDF graphs, meta-validates SHACL, and runs pySHACL; it deliberately does not certify OWL 2 DL/profile conformance or full logical consistency.
agents/openai.yaml (opens in a new tab)references/extraction-workflow.md (opens in a new tab)references/semantic-modeling.md (opens in a new tab)references/standards-and-tools.md (opens in a new tab)references/turtle-patterns.md (opens in a new tab)scripts/requirements.in (opens in a new tab)scripts/requirements.txt (opens in a new tab)scripts/scaffold_ontology_bundle.py (opens in a new tab)scripts/validate_semantic_artifacts.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin knowledge-authoring8 skills in this plugin
/build-classical-chunked-knowledge-skillBuilds a new standalone classical Semantic OKF expert that preserves the complete immutable knowledge and accepted BM25, topic, PPMI association, and fusion retrieval while adding exact structure-aware chunks, linked-neighbor metadata, and query-budgeted nonredundant context selection. Use when papers or other large files make a generated knowledge skill send excessive evidence tokens to an answering model and the original build-classical-knowledge-skill must remain unchanged./build-classical-knowledge-skillBuilds a ready-to-use, standalone knowledge skill directly from a closed Semantic OKF source manifest, a classical retrieval plan, and reviewed application guidance. Use when Codex must generate both the embedded knowledge folder and its read-only expert consultation skill in one atomic operation, with deterministic BM25, topic, PPMI association, and fusion retrieval, exact physical citations, deep validation, and no model downloads or sibling-skill dependency./build-semantic-okf-knowledge-skillBuilds a ready-to-use, standalone knowledge skill directly from a closed Semantic OKF source manifest, reviewed application guidance, and one exact canonical retrieval family. Use when Codex must generate both the embedded knowledge folder and its read-only consultation skill atomically for legacy, embeddings, classical, adaptive, entity-graph, ensemble, Graphify, or Turso; preserve the matched native builder and consultant behavior; add exact physical citations; validate every artifact; and avoid sibling-skill runtime dependencies.Other plugins' skills for the same job