2.0.6 • Published 8 months ago

shacl-ast v2.0.6

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

shacl-ast

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

Installation

npm i shacl-ast

Usage

import { ShapesGraph } from "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.5

8 months ago

2.0.4

8 months ago

2.0.6

8 months ago

2.0.3

8 months ago

2.0.2

10 months ago

1.0.5

11 months ago

2.0.1

10 months ago

2.0.0

11 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago