2.0.22 • Published 4 months ago

@shaclmate/shacl-ast v2.0.22

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

shacl-ast

Build an Abstract Syntax Tree (AST) of Shapes Constraint Language (SHACL) shapes in an RDF/JS Dataset.

Installation

npm i @shaclmate/shacl-ast

Usage

import { ShapesGraph } from "@shaclmate/shacl-ast";

const shapesGraph = ShapesGraph.fromDataset(testShapesGraph);
for (const nodeShape of shapesGraph.nodeShapes) {
  console.info("Node shape: ", nodeShape.node.value);
  for (const propertyShape of shapesGraph.propertyShapes) {
    console.info(
      "  Property shape: ",
      propertyShape.node.value,
      propertyShape.path.value,
    );
  }
}
2.0.22

4 months ago

2.0.20

4 months ago

2.0.19

4 months ago

2.0.18

4 months ago

2.0.17

4 months ago

2.0.16

4 months ago

2.0.15

6 months ago

2.0.14

6 months ago

2.0.13

8 months ago