g3-toolkit API Reference
    Preparing search index...

    Interface ShaclShape

    interface ShaclShape {
        closed?: boolean;
        description?: string;
        id: string;
        ignoredProperties?: string[];
        name?: string;
        properties: ShaclPropertyConstraint[];
        targetClass: string;
        targets?: ShaclShapeTarget[];
    }
    Index

    Properties

    closed?: boolean

    sh:closed - when true, the shape is closed-world: node properties beyond the declared constraint paths (and ignoredProperties) are violations. Absent/false = open (SHACL's default).

    description?: string
    id: string
    ignoredProperties?: string[]

    sh:ignoredProperties - paths exempt from the closed-world check (only meaningful when closed is true).

    name?: string
    targetClass: string

    The class the validator matches nodes against. Required because the validator targets by class only; shapes with other target kinds still name their primary class here.

    targets?: ShaclShapeTarget[]

    Every target the shape declares, when there is more than the one class (several classes, subjects-of, objects-of, a node, or a SPARQL target). Display metadata today: the validator does not resolve these, and the shape browser renders all of them alongside targetClass. A shapes-graph parser would populate it.