/shacl2ts

Generate TypeScript from SHACL shapes

Primary LanguageTypeScriptApache License 2.0Apache-2.0

shacl2ts

Command line program and library for transforming SHACL to TypeScript.

Getting started

Install dependencies

npm install

The package is also available on npmjs as shacl2ts.

Running

Generate JSON for the SHACL AST

./cli.sh ast-json __tests__/testShapesGraph.ttl 2>/dev/null

Example SHACL