AGENT SKILL
knowledge-representation
Knowledge representation in AI
- License 许可
- MIT
- 最近更新
- 2026-03-01
- Stars
- ★ 3
- Forks
- 2
01 前言 Front Matter
- name
- knowledge-representation
- license
- MIT
- metadata
- { "audience": "machine-learning-engineers", "category": "artificial-intelligence" }
- description
- Knowledge representation in AI
- compatibility
- opencode
02 资源文件 3
- 资产文件assets/linear-small.svg1.0 KB
- 资产文件assets/linear.png6.8 KB
- 许可证LICENSE.txt11.1 KB
03 SKILL.md 正文
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
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
# 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
04 同仓库更多 Skills
xamarin
Xamarin cross-platform development
★ 3
wrangling
Data wrangling fundamentals
★ 3
windows
Windows operating system administration and scripting
★ 3
wide-column
Wide-column data model
★ 3
wide-column-stores
Wide-column database stores
★ 3
websockets
WebSocket implementation and best practices
★ 3