Optional ReadonlyvirtualMarks the resource as dynamically generated.
When true, indicates the resource is at least partially computed rather than stored.
Inheritance — inherited from parent; conflicting parents without child override are reported as an error.
Optional ReadonlynameHuman-readable name for the shape.
Inheritance — always from child; not inherited.
Optional ReadonlydescriptionHuman-readable description of the shape.
Inheritance — always from child; not inherited.
Optional ReadonlynamespaceDefault namespace for converting property names to IRIs.
Property names without explicit IRI mappings are resolved relative to this namespace.
Inheritance — inherited from parent; conflicting parents without child override are reported as an error.
Optional ReadonlyextendsParent shape(s) this shape inherits from.
Inherited entries and constraints are merged into the derived shape. When a child overrides an inherited property, constraints are enforced conjunctively: values must satisfy both the child's and all inherited constraints. This ensures overrides can only restrict, never relax, inherited definitions.
When inheriting from multiple shapes with different namespace values, an overriding namespace must be declared in this shape.
Inheritance — structural; outside inheritance scope.
Optional ReadonlyclassTarget class for resource instances.
The absolute IRI identifying the primary class that resource instances must belong to. Shape-specific and not
inherited. If defined, this value is exposed through the property mapped to @type using type.
Inheritance — shape-specific target class; outside inheritance scope.
Optional ReadonlyclassesAncillary class constraints for resource instances.
Additional class IRIs that resource instances must conform to. Empty arrays are ignored.
Inheritance — union of parent class and child/parent classes.
Optional ReadonlypatternIRI path pattern that resource identifiers must match.
Patterns are IRI-like templates using {name} placeholders for single path segments and /* for trailing
wildcards. Patterns may be absolute or root-relative; root-relative patterns match absolute IRIs, ignoring the
origin.
Inheritance — only the trailing /* wildcard admits narrowing: a child may replace /* with more specific
segments (for example, /products/* to /products/{id}/reviews/{rid}), provided the fixed prefix matches.
All other cases require exact equality; a mismatch is reported as an error.
Optional ReadonlyinAllowed resource identifiers (closed enumeration).
When specified, resource identifiers must be members of this list. IRIs must be absolute. Empty arrays are ignored.
Inheritance — intersection of parent and child sets; empty result is reported as an error.
Optional ReadonlyhasRequired resource identifiers that must be present.
When specified, all listed resource identifiers must appear. IRIs must be absolute. Empty arrays are ignored.
Inheritance — union of parent and child required values; child must require all parent values.
Constraints for resource shape factories.
See
SHACL § 2.2 Node Shapes