Semantic MediaWiki and related extensions
|
The CLASS_CONSTRAINT_SCHEMA
schema type defines constraint definitions that can be assigned to a class (aka. category) using the Constraint schema
property.
To easily identify pages that contain a constraint schema it is suggested to use smw/schema:Constraint:...
as naming convention.
type
defines the type and is fixed to CLASS_CONSTRAINT_SCHEMA
constraints
the section that contains constraints definitionstags
simple tags to categorize a schema{ "type": "CLASS_CONSTRAINT_SCHEMA", "constraints": { ... }, "tags": [ "class constraint", "..." ] }
mandatory_properties
(array) specifies mandatory propertiesshape_constraint
(array) specifies shapes of properties and dependent characteristicsproperty
specifies the related propertyproperty_type
specifies expected type of the propertymax_cardinality
specifies the maximum number of values a property can contain for the given contextmin_textlength
specifies the minimum length of the characters expected for values assigned to the propertycustom_constraint
property/data/schema/class-constraint-schema.v1.json