Install
openclaw skills install kg-schema-from-textGenerate a structured knowledge graph ontology or schema from unstructured or semi-structured text sources.
openclaw skills install kg-schema-from-textAutomatically derive structured graph schemas from natural language documentation and domain descriptions.
This skill converts textual descriptions into machine-readable graph models with entities, relationships, properties, and constraints.
Input:
A university contains students, professors, courses, and departments.
Students enroll in courses. Professors teach courses.
Departments manage both courses and professors.
Output:
Entities: Student, Professor, Course, Department
Relationships:
- Student -> ENROLLED_IN -> Course
- Professor -> TEACHES -> Course
- Department -> MANAGES -> Course
- Department -> MANAGES -> Professor
Properties:
- Student: id, name, email, enrollment_date
- Course: id, title, credits, department
- Professor: id, name, department, specialization
- Department: id, name, budget
Nodes: Student, Professor, Course, Department
Relationships: ENROLLED_IN, TEACHES, MANAGES
Properties: Names, IDs, dates, descriptions
Classes: Student, Professor, Course, Department
Properties: enrolledIn, teaches, manages
Attributes: name, id, description
✓ Use clear, consistent entity names (PascalCase)
✓ Normalize relationship directions
✓ Extract domain-specific constraints
✓ Separate schema from instance data
✓ Follow knowledge graph modeling standards
See extraction-patterns.md for entity/relationship extraction guidelines and example-schemas.md for domain examples.
Version: 1.0.0