Shape definition for textual values.
Constraints for the string shape factory.
Constraints for textual shape factories.
Checks whether a value is a StringShape.
Checks whether a value is a valid StringConstraints object.
Checks whether a value is a valid TextualConstraints object.
Creates a string shape.
Creates a shape for email address values.
Creates a shape for absolute URL reference values.
Creates a shape for absolute URI reference values.
Creates a shape for ISO 8601 year values (YYYY).
Creates a shape for ISO 8601 calendar date values (YYYY-MM-DD).
Creates a shape for ISO 8601 time of day values (hh:mm:ss).
Creates a shape for ISO 8601 date and time values (YYYY-MM-DDThh:mm:ss).
Creates a shape for ISO 8601 timestamp values with millisecond precision (YYYY-MM-DDThh:mm:ss.sssZ).
Creates a shape for ISO 8601 duration values (PnYnMnDTnHnMnS).
Textual shape model and factories.
Defines shapes and factories for validating textual values, mapping the JSON string type to XSD 1.1 string datatypes.
Factories check structural integrity of constraints but not their logical consistency: contradictory constraints like
minLength > maxLengthwon't be rejected.¹ XSD 1.1 datatypes are referenced by RDF 1.1 and JSON-LD 1.1 as normative
² XSD 1.1 Part 2 § D.3.4 permits optional timezone indicators for
gYearas a deviation from ISO 8601³ Requires exactly 3 fractional second digits (millisecond precision) and UTC timezone (
Zonly)Compatibility
Defining String Shapes
Specialised String Factories
Predefined factories for common string formats:
Using in Resource Shapes
See