If I do not misunderstood Wandora is not supporting schema validation and constrains (no validators and TMCL), what it will be the right approach in order to implement validation of the following example constrains:
- Code: Select all
ecm isa tmcl:schema;
- "Educational Concept Map schema";
tmcl:abbreviation: "ECM"
tmcl:description: "A meta-schema for ECM, describing the allowed structure.";
ecm:educational-topic-type isa tmcl:topic-type;
has-name(tmdm:topic-name, 1, 1);
plays-role(ecm:prerequisite, ecm:is-requirement-of, 0, 1);
plays-role(ecm:subordinate, ecm:is-requirement-of, 0, 1);
plays-role(ecm:linked, ecm:is-related-to, 0, 1);
plays-role(ecm:not-linked, ecm:is-not-related-to, 0, 1);
plays-role(ecm:suggested, ecm:is-suggestd-link-of, 0, 1);
plays-role(ecm:suggester, ecm:is-suggestd-link-of, 0, 1);
overlaps(tmdm:topic).
ecm:educational-association-type isa tmcl:topic-type;
is_abstract(); overlaps(tmdm:association-type).
ecm:educational-role-type isa tmcl:role-type;
is_abstract(); overlaps(tmdm:role-type).
tmdm:supertype-subtype(tmdm:supertype : ecm:educational-association-type,
tmdm:subtype: ecm:is-requirement-of).
tmdm:supertype-subtype(tmdm:supertype : ecm:educational-association-type,
tmdm:subtype: ecm:is-related-to).
tmdm:supertype-subtype(tmdm:supertype : ecm:educational-association-type,
tmdm:subtype: ecm:is-not-related-to).
tmdm:supertype-subtype(tmdm:supertype : ecm:edcuational-association-type,
tmdm:subtype: ecm:is-suggested-link-of).
tmdm:supertype-subtype(tmdm:supertype : ecm:educational-role-type,
tmdm:subtype: ecm:prerequisite).
ecm:is-requirement-of isa ecm:educational-association-type;
has-role(ecm:prerequisite, 1, 1);
has-role(ecm:subordinate, 1, 1).
ecm:prerequisite isa tmcl:educational-role-type.
ecm:subordinate isa ecm:educational-role-type.
........
Kind Regards,
Frosina