This repository contains a Rust implementation of the SHACL (Shapes Constraint Language) specification.
- Library: Use the
shaclcrate in your Rust projects for SHACL validation and processing. - WASM Bindings: The
shacl-wasmcrate provides WebAssembly bindings for use in web applications and npm packages. - Command-Line Tool: The
shacl-clicrate offers a CLI for validating RDF data against SHACL shapes. You can install it withcargo install shacl-cli. You can then use it like this:
To parse the shapes graph:
shacl-validator parse shapes.ttlTo validate a data graph against the shapes:
shacl-validator validate shapes.ttl data.ttl ... # First file is shapes, rest are data graphs. Data graphs are merged and validated together.You can use shacl-validator --help for general usage information and shacl-validator <command> --help for command-specific options.
This project is licensed under the MIT License. See the LICENSE file for details.