You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some schema definitions imposes constraints on the value of some properties. Such constraints can vary from pattern matching to numeric bounds, inequalities, etc. Type constraints are not just a matter of well-formedness: From a (de)serialization point of view, constraints are sometime used to distinguish between different data types (layouts).
For instance the type attribute in Verite's KYC/AML Attestation schema is required to have the value "KYCAMLAttestation". Since JSON is the medium used by Vertie to represent schema instances, this constraint is vital for the processor to disambiguate KYC/AML Attestations from other schemas when processing an arbitrary JSON document.
The implementation of type constraints is two fold:
Syntax. How to express type constraints (equality constraints for now, since it is required by Verite).
Disambiguation. Provide an API for code generators that provides a disambiguation method between a set of types/layouts, using those constraints.
The text was updated successfully, but these errors were encountered:
Well in fact, if we specify that the type field corresponds to the http://www.w3.org/1999/02/22-rdf-syntax-ns#type property, then we don't need a syntax construct to explicitly define type constraints for Verite, since the value of the type property is always implicitly constrained by the schema.
Some schema definitions imposes constraints on the value of some properties. Such constraints can vary from pattern matching to numeric bounds, inequalities, etc. Type constraints are not just a matter of well-formedness: From a (de)serialization point of view, constraints are sometime used to distinguish between different data types (layouts).
For instance the
type
attribute in Verite's KYC/AML Attestation schema is required to have the value"KYCAMLAttestation"
. Since JSON is the medium used by Vertie to represent schema instances, this constraint is vital for the processor to disambiguate KYC/AML Attestations from other schemas when processing an arbitrary JSON document.The implementation of type constraints is two fold:
The text was updated successfully, but these errors were encountered: