🦀 ClawHub
Ontology KG
by @2233admin
Typed knowledge graph for AI agent memory. Create entities, link relations, enforce constraints. JSONL append-only storage, zero dependencies. Use when agent...
⚡ When to Use
📦 Core Types
💡 Examples
# Init storage
mkdir -p memory/ontology
touch memory/ontology/graph.jsonlCreate entities
python3 scripts/ontology.py create --type Person --props '{"name":"Alice"}'
python3 scripts/ontology.py create --type Project --props '{"name":"Website","status":"active"}'Link them
python3 scripts/ontology.py relate --from proj_001 --rel has_owner --to p_001Query
python3 scripts/ontology.py query --type Task --where '{"status":"open"}'
python3 scripts/ontology.py related --id proj_001 --rel has_taskValidate all constraints
python3 scripts/ontology.py validate
TERMINAL
clawhub install ontology-kg