Skip to main content

knowledge-representation

Knowledge representation in AI

소스 정보

저장소
ffsshhttiikk/opencode-agents-skills
최근 소스 활동
2026년 2월 28일 22:52
감지된 SKILL.md 언어
영어
스타
3
포크
2

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
knowledge-representation
description
Knowledge representation in AI
license
MIT
compatibility
opencode
metadata
{"audience":"machine-learning-engineers","category":"artificial-intelligence"}
## What I do - Design knowledge structures - Build ontologies and taxonomies - Implement semantic networks - Create knowledge graphs - Represent uncertain knowledge - Build expert systems ## When to use me Use me when: - Building knowledge-based systems - Creating semantic search - Implementing reasoning systems - Integrating heterogeneous data - Building question-answering systems ## Key Concepts ### Knowledge Representation Schemes **1. Semantic Networks** ``` ┌─────────┐ │Animal │ └────┬────┘ │is-a ┌─────┴─────┐ ▼ ▼ ┌───────┐ ┌────────┐ │Mammal │ │ Bird │ └───┬───┘ └───┬────┘ │ │has-a ▼ ▼ ┌───────┐ ┌────────┐ │ Dog │ │Wings │ └───────┘ └────────┘ ``` **2. Frames** ```python class Frame: def __init__(self, name, slots): self.name = name self.slots = slots dog = Frame("Dog", { "is_a": ["Mammal"], "legs": 4, "sound": "bark", "eats": ["meat", "dog_food"], "can": ["fetch", "guard", "hunt"] }) ``` **3. Logic Representation** ``` // First-Order Logic ∀x (Dog(x) → Mammal(x)) ∀x (Mammal(x) → Animal(x)) ∃x (Dog(x) ∧ Barks(x)) // Rules IF patient.has_fever AND patient.cough THEN patient.has_cold ``` ### Knowledge Graphs ```python # RDF-like representation from rdflib import Graph, Namespace, URIRef, Literal EX = Namespace("http://example.org/") g = Graph() g.add((EX.Person, EX.hasName, Literal("Alice"))) g.add((EX.Person, EX.hasAge, Literal(30))) g.add((EX.Person, EX.worksAt, EX.Company)) ``` ### Applications - **Ontologies**: OWL, RDF schemas - **Knowledge Graphs**: Google, Wikidata - **Expert Systems**: MYCIN, DENDRAL - **Semantic Web**: Linked data
GitHub에서 보기