g3-toolkit API Reference
    Preparing search index...

    Class ShaclValidator

    Stateful SHACL validator (P3.1).

    Holds a fixed set of shapes so callers can validate() repeatedly against different UGMs without re-passing the shape list each time. Internally delegates to validateShacl() and summarizeValidation().

    const v = new ShaclValidator(shapes);
    const results = v.validate(ugm);
    const summary = v.summarize(results);
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    shapes: ShaclShape[]

    Methods

    • Parameters

      Returns {
          failing: number;
          passing: number;
          shapeId: string;
          shapeName: string;
          totalNodes: number;
          violationCount: number;
      }[]