rdf-validate

Validates RDF data graphs against SHACL shapes and reports constraint violations.

Updated May 12, 2026
One-click install
npx skills add https://github.com/angelo-v/pi-kit --skill rdf-validate-angelo-v
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: rdf-validate
Source: https://github.com/angelo-v/pi-kit/tree/main/packages/linked-data/skills/rdf-validate
Command: npx skills add https://github.com/angelo-v/pi-kit --skill rdf-validate-angelo-v

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? RDF data can silently violate structural rules such as required properties, cardinality limits, or datatype constraints. This Skill runs SHACL validation on Turtle files so violations are detected and fixed before the graph is treated as valid. ## Core Features & Use Cases - SHACL Validation: Runs the rdf_validate tool against data files, with automatic discovery of shapes files using the .shacl.ttl naming convention. - Violation Interpretation: Reports focus node, path, message, and severity for each violation, then guides fixing and re-validation until the graph conforms. - Full SHACL Support: Uses shacl-engine with SPARQL targets and SPARQL constraint components enabled, covering sh:targetClass, sh:targetNode, and sh:sparql constraints. - Use Case: After writing a persons.ttl file, validate it against PersonShape.shacl.ttl to confirm every person has the required properties before publishing the graph. ## Quick Start Validate my data/persons.ttl file against the SHACL shapes in this workspace and fix any violations found.

Frequently Asked Questions about rdf-validate

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

FAQPage Schema
How do I validate RDF data against SHACL shapes?▼

Call rdf_validate with your data files and optionally the shapes files. If shapes are omitted, all *.shacl.ttl files in the workspace are auto-discovered. The result reports conforms true or false plus violation details.

How should SHACL shapes files be named for auto-discovery?▼

Name shapes files with the .shacl.ttl double extension, such as shapes/PersonShape.shacl.ttl. Plain .ttl files are treated as data and are not auto-discovered as shapes.

Does the SHACL validator support SPARQL-based constraints?▼

Yes, the validator uses shacl-engine with full SPARQL support, including sh:SPARQLTarget and sh:sparql constraint components. SPARQL queries inside sh:select or sh:sparql must include their own PREFIX declarations.

What information is reported when SHACL validation fails?▼

Each violation includes the focus node, path, message, and severity. Fix the offending triples or update the data source, then re-run rdf_validate until the graph conforms.

When should I run SHACL validation on RDF data?▼

Run it before presenting any graph as valid when shapes exist, after writing RDF with rdf_write, and whenever explicitly asked to check a Turtle file. Never claim conformance without actually running validation.