ReadonlykindDiscriminator identifying this as a resource shape.
ReadonlymodelPrototype value for runtime model assembly.
Provides a deeply immutable model of the expected TypeScript type for resources matching this shape. When a shape extends parent shapes, inherited properties are merged into the model; local definitions override inherited ones.
Optional ReadonlyvalidatorsCustom resource validators.
ReadonlypropertiesProperty shapes defining the expected structure.
Property keys are either plain identifiers or bindings for computed values. Binding suffixes are stripped when projecting to the resource type via Projection.
Optional ReadonlyvirtualMarks the resource as dynamically generated.
When true, indicates the resource is at least partially computed rather than stored.
Optional ReadonlynameHuman-readable name for the shape.
Optional ReadonlydescriptionHuman-readable description of the shape.
Optional ReadonlynamespaceDefault namespace for converting property names to IRIs.
Property names without explicit IRI mappings are resolved relative to this namespace.
Optional ReadonlyclassClass constraint for resource instances.
The absolute IRI identifying the class that resource instances must belong to. If defined, this value is exposed
through the property mapped to @type using type.
Restricted to a single optional class, unlike SHACL which allows multiple sh:class values.
Optional ReadonlyextendsParent shape(s) this shape inherits from.
Inherited properties and constraints are merged into the derived shape.
When inheriting from multiple shapes with different namespace values, an overriding namespace must be declared in this shape.
Optional ReadonlypatternIRI path pattern that resource identifiers must match.
Optional ReadonlyinAllowed resource identifiers (closed enumeration).
When specified, resource identifiers must be members of this list. IRIs must be absolute.
Optional ReadonlyhasRequired resource identifiers that must be present.
When specified, all listed resource identifiers must appear. IRIs must be absolute.
Shape definition for linked data resources.
Validates linked data resources with structural constraints including inheritance, property definitions, and SHACL-aligned validation rules. Resource shapes define the expected structure of linked data resources and support type inference for property values.
Resource shapes are closed: validated resources may only contain properties explicitly defined in the shape. Any additional properties will cause validation to fail.
See