Optional ReadonlymodelExplicit prototype value for runtime model assembly.
A retrieval placeholder matched by JSON type alone: kept verbatim, its value is immaterial and need not be legal for the value constraints. When omitted, the prototype defaults to the empty string.
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 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 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.
Constraints for the string shape factory.
Adds the prototype model value, the RDF datatype and the lexical pattern, which only the general-purpose factory accepts, to the length and value constraints shared with the specialised factories.