shacl-validation

Validate RDF data against SHACL shapes and generate detailed reports.

8|1|Updated Jun 7, 2026
One-click install
npx skills add https://github.com/sparq-org/sparq --skill shacl-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shacl-validation
Source: https://github.com/sparq-org/sparq/tree/main/skills/shacl-validation
Command: npx skills add https://github.com/sparq-org/sparq --skill shacl-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sparq-core, sparq-shacl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill validates RDF data against SHACL shapes, ensuring conformance to specified constraints and providing detailed reports on any violations or conformances.

Core Features & Use Cases

  • SHACL Core Constraints: Validates against SHACL Core constraints including class, datatype, cardinality, ranges, paths, logical, node/property, qualified, closed, and value constraints.
  • SHACL-SPARQL Constraints: Includes SHACL-SPARQL constraints for more complex validations.
  • Custom SPARQL-based Constraints: Allows for the creation of custom SPARQL-based constraint components.
  • Validation Reports: Generates detailed reports on the validation process, including conformance flags and per-violation results.
  • Use Case: Ideal for agents that need to check RDF data against SHACL shapes, run shape validation, produce validation reports, or apply SHACL rules to infer/expand graphs.

Quick Start

Use the shacl-validation skill to validate the RDF data in 'data.rdf' against the shapes in 'shapes.rdf'.

Frequently Asked Questions about shacl-validation

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

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

SHACL validation checks RDF data conformance against specified shapes using SHACL Core and SPARQL constraints, producing detailed reports on violations or conformances for systems needing strong data integrity.

What SHACL constraints are supported for RDF data validation?

Supported constraints include SHACL Core class, datatype, cardinality, ranges, paths, logical, node/property, qualified, closed, and value constraints, plus SHACL-SPARQL constraints for more complex validations and custom SPARQL-based components.

Can I create custom SPARQL-based constraints for SHACL validation?

Yes, you can create custom SPARQL-based constraint components for SHACL validation, enabling more complex validations beyond the built-in SHACL Core and SHACL-SPARQL constraints.

Do I need sparq-core and sparq-shacl to run SHACL validation?

Yes, sparq-core and sparq-shacl are required dependencies for SHACL validation, providing the necessary engine and constraint checking capabilities to validate RDF data against SHACL shapes.

What information is included in a SHACL validation report?

SHACL validation reports include conformance flags and per-violation results, providing detailed information on any violations or conformances found during the RDF data validation process.

When should I use SHACL validation for RDF data integrity?

Use SHACL validation when systems need strong data integrity and conformance checks, requiring RDF data to conform to specified SHACL shapes and constraints before processing or integration.