ReadonlykindDiscriminator identifying this as a textual shape.
Inheritance — cannot be overridden.
ReadonlymodelPrototype value for runtime model assembly.
A retrieval placeholder matched by JSON type alone: its value is immaterial and need not be legal for the value
constraints, so factories keep an explicit model verbatim and default an unspecified one to "". A merge keeps
the child's value.
Optional ReadonlypatternRegular expression pattern that values must match.
The pattern is matched without anchoring: the constraint holds when the pattern occurs anywhere
within the value. Use anchors (^ and $) to require a match against the complete string.
Inheritance — must be strictly equal when both parent and child define it; otherwise the single defined value
carries through. Within a union, this equality makes pattern a discriminator: two
same-datatype string variants that differ only by pattern are distinct branches.
Optional ReadonlydatatypeRDF datatype IRI for the textual literal.
Infers the RDF datatype of validated JSON values, which carry no datatype information of their own.
Inheritance — must be strictly equal when both parent and child define it; otherwise the single defined value carries through. A mismatch signals incompatible datatypes.
Optional ReadonlyminMinimum string length in characters.
Inheritance — child value must be ≥ parent value, narrowing the lower bound.
Optional ReadonlymaxMaximum string length in characters.
Inheritance — child value must be ≤ parent value, narrowing the upper bound.
Optional ReadonlyinAllowed values (closed enumeration).
When specified, values must be members of this list. Empty arrays are ignored.
Inheritance — intersection of parent and child sets; empty result is reported as an error.
Optional ReadonlyhasRequired values that must be present.
When specified, all listed values must appear in the resource. Empty arrays are ignored.
Inheritance — union of parent and child required values; child must require all parent values.
Shape definition for textual values.
Validates textual values with length constraints, lexical validation, and value constraints for strings. Supports XSD 1.0 string datatypes and temporal formats.
Inheritance
When a resource!ResourceShape extends a parent via extends, string-valued entries are merged according to the following rules. The child is the extending shape; the parent is the inherited shape.
kindmodeldatatypepatternminLengthmaxLengthinhasValueCross-Field Validation
minLengthmust be ≤ mergedmaxLengthhasValueentries must be members of the mergedinset (if defined)See
XSD 1.0 Part 2: Datatypes § 3.2.1 string