本文へスキップ
Skillpedia
データベース14k · #11151

ontology

できること

このスキルは、ナレッジグラフがどのように構成されるかを定める語彙と規則であるオントロジーを管理します。グラフの背後にある構造を設計したり確認したりする人向けです。

使う場面

  • ✓既存の語彙にある概念の一覧が欲しいとき。
  • ✓オントロジーに矛盾や満たせない用語がないかを確認したいとき。
  • ✓テキストの説明や記録の集まりから、オントロジーを作りたいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/semantica-agi/semantica/blob/main/plugins/skills/ontology/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のオントロジーに矛盾がないか確認し、問題を起こしている用語を教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはオントロジーを読み込み、一貫性と充足可能性を確認して、エラーと警告を報告します。また、概念の一覧、テキストや記録からの新しいオントロジーの構築、形状ルールに対するインスタンスデータの確認もできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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)
よくある質問

オントロジーとは何ですか?

データ内にあるものの種類と、それらの関係を説明する、正式な用語と規則の集まりです。

一貫性の確認では何が見つかりますか?

オントロジーを信頼できないものにする規則の矛盾を見つけ、印を付けます。

特別なストアが必要ですか?

一部の一覧の作業には設定されたトリプルストアが必要で、ない場合はスキルがそれを伝えます。

詳細

作者による元の説明

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

repo: semantica-agi/semantica

人気

GitHubのスター
14k
ランキング
#11151
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル