Install
openclaw skills install graph-schema-validationValidate knowledge graph schemas and data against defined ontology, RDF/OWL, or property graph schema constraints.
openclaw skills install graph-schema-validationValidate knowledge graph schemas and data against defined constraints.
This skill ensures graph data conforms to schema definitions, ontology rules, and consistency requirements.
Input Schema:
Student: student_id (UNIQUE), name, email
Course: course_code (UNIQUE), title, credits
Relationship: (Student)-[:ENROLLED_IN]->(Course)
Input Data:
(Student {name: "Alice"}) # INVALID: missing student_id
(Student {student_id: "S001", name: "Bob"})-[:ENROLLED_IN]->(Course) # OK
Validation Report:
Violations: 1
- Node S002: Missing required property student_id
- Suggestion: Add student_id to Student node
:StudentShape a sh:NodeShape ;
sh:targetClass :Student ;
sh:property [
sh:path :student_id ;
sh:datatype xsd:string ;
sh:minCount 1
] .
CREATE CONSTRAINT student_id_unique ON (s:Student) REQUIRE s.student_id IS UNIQUE
CREATE INDEX ON (s:Student)(name)
✓ Validate before production deployment
✓ Enforce constraints at database level
✓ Use consistent property naming
✓ Define validation rules early
✓ Maintain validation tests
✓ Document constraint rules
✓ Review violation reports carefully
See validation-patterns.md for validation strategies and example-validations.md for domain validation examples.
Version: 1.0.0