ontology

Manage a typed knowledge graph for structured agent memory.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/zangxin75/openclaw-skills --skill ontology-zangxin75
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ontology
Source: https://github.com/zangxin75/openclaw-skills/tree/main/ontology
Command: npx skills add https://github.com/zangxin75/openclaw-skills --skill ontology-zangxin75

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured way to store, query, and manage complex information by representing it as a typed knowledge graph, enabling more sophisticated reasoning and data sharing between agents.

Core Features & Use Cases

  • Entity Management: Create, read, update, and delete entities with defined types and properties.
  • Relationship Mapping: Define and query relationships between entities to build a connected knowledge base.
  • Constraint Enforcement: Ensure data integrity through schema validation for types, properties, and relations.
  • Use Case: Remember details about a project, its tasks, and the people involved, then query for all tasks assigned to a specific person that are blocked by another task.

Quick Start

Use the ontology skill to create a new person entity named 'Alice'.

Frequently Asked Questions about ontology

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a knowledge graph for structured agent memory?

Build a typed knowledge graph for agent memory by creating and linking entities with defined properties. This enables sophisticated reasoning and data sharing by representing complex information as connected nodes with enforced schema constraints.

How does entity management work in a typed knowledge graph?

Entity management in a typed knowledge graph works via CLI scripts that perform CRUD operations on typed objects. You create entities with defined properties, enforce schema validation, and manage structured data records for complex projects.

How do I query relationships between entities in a knowledge graph?

Query relationships in a knowledge graph by using CLI scripts to map and retrieve connected objects. You can define specific relations between entities and query for linked items, such as finding all tasks assigned to a person and blocked by another task.

Can I enforce schema validation and constraints on knowledge graph data?

You can enforce schema validation on knowledge graph data by defining types, properties, and relations. This constraint enforcement ensures data integrity by validating all entities and relationships against the defined schema during creation and updates.

Do I need a graph database to use structured memory for composable skills?

You do not need a separate graph database to use structured memory for composable skills. This system operates via standalone CLI scripts for CRUD and querying, managing the typed knowledge graph and multi-step action planning directly through schema validation.

What is the best way to plan multi-step actions as graph transformations?

Plan multi-step actions as graph transformations by representing each step as a modification to your typed knowledge graph. Use the CLI scripts to update entity states and relationships, ensuring the action sequence maintains schema constraints and data integrity.