Shape definition for numeric values.
Constraints for the number shape factory.
Value range bounds for numeric shape factories.
Creates a numeric shape.
Creates a shape for 8-bit signed integer values.
Creates a shape for 16-bit signed integer values.
Creates a shape for 32-bit signed integer values.
Creates a shape for 64-bit signed integer values.
Creates a shape for IEEE 754 single-precision floating-point values.
Creates a shape for IEEE 754 double-precision floating-point values.
Creates a shape for arbitrary-precision integer values.
Creates a shape for arbitrary-precision decimal values.
Numeric shape and factories.
Defines shapes and factories for validating numeric values, mapping the JSON number type to XSD 1.0 numeric datatypes.
¹ XSD 1.0 datatypes are referenced by RDF 1.1 and JSON-LD 1.1 as normative
² Numeric types with ranges exceeding JavaScript's safe integer range (±2⁵³-1) or requiring arbitrary precision cannot be fully represented in JSON/JavaScript
Compatibility
Defining Numeric Shapes
Typed Numeric Factories
Specialised factories map to XSD numeric datatypes with predefined precision:
Using in Resource Shapes
See