ReadonlykindDiscriminator identifying this as a numeric 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 0. A merge keeps
the child's value.
Optional ReadonlydatatypeRDF datatype IRI for the numeric 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 ReadonlyintegralRestricts values to integers.
When true, validated values must be integers (no fractional part); fractional values are rejected. Decouples
integrality from datatype, so custom or non-XSD integral types are declarable without relying on a
recognised datatype IRI. The integer-family factories (byte, short, int, long,
integer) set it; float, double, and decimal leave it unset.
Inheritance — a child may add the constraint but not drop it: overriding an integral parent with a non-integral child is rejected.
Optional ReadonlyminExclusive minimum value (value must be strictly greater).
Inheritance — child value must be ≥ parent value, narrowing the exclusive lower bound.
Optional ReadonlymaxExclusive maximum value (value must be strictly less).
Inheritance — child value must be ≤ parent value, narrowing the exclusive upper bound.
Optional ReadonlyminInclusive minimum value (value must be greater than or equal).
Inheritance — child value must be ≥ parent value, narrowing the inclusive lower bound.
Optional ReadonlymaxInclusive maximum value (value must be less than or equal).
Inheritance — child value must be ≤ parent value, narrowing the inclusive 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 numeric values.
Validates numeric values with range and value constraints. Supports XSD 1.0 numeric datatypes including integers, decimals, and floating-point values.
Inheritance
When a resource!ResourceShape extends a parent via extends, numeric-valued entries are merged according to the following rules. The child is the extending shape; the parent is the inherited shape.
kindmodeldatatypeintegralminExclusivemaxExclusiveminInclusivemaxInclusiveinhasValueInclusive/exclusive pairs are independently merged: a child may define an exclusive bound alongside a parent's inclusive bound (or vice versa), narrowing the range without removing the original constraint.
Cross-Field Validation
minExclusivemust be < mergedmaxExclusiveminInclusivemust be ≤ mergedmaxInclusivehasValueentries must be members of the mergedinset (if defined)See
XSD 1.0 Part 2: Datatypes § 3 Built-in Datatypes