]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - vendor/cxtm/tmcl/level-1/valid/scope-association.ctm
examples: explore project work through native Topic Maps (slice 22U)
[topic-maps.git] / vendor / cxtm / tmcl / level-1 / valid / scope-association.ctm
1 %prefix tmcl http://psi.topicmaps.org/tmcl/
2 %prefix tmdm http://psi.topicmaps.org/iso13250/model/
3
4 lmg isa person.
5 person isa tmcl:topic-type.
6
7 employed-by(employee: lmg) @ incomplete
8
9 employed-by isa tmcl:association-type.
10 employee isa tmcl:role-type.
11
12 violated isa tmcl:topic-role-constraint;
13 tmcl:card-min: 1;
14 tmcl:card-max: 1.
15 tmcl:constrained-topic-type(tmcl:constraint: violated, tmcl:constrained: person)
16 tmcl:constrained-statement(tmcl:constraint: violated, tmcl:constrained: employed-by)
17 tmcl:constrained-role(tmcl:constraint: violated, tmcl:constrained: employee)
18
19 c2 isa tmcl:scope-constraint;
20 tmcl:card-min: 1;
21 tmcl:card-max: 1.
22 tmcl:constrained-statement(tmcl:constraint: c2, tmcl:constrained: employed-by)
23 tmcl:constrained-scope(tmcl:constraint: c2, tmcl:constrained: tmdm:subject)
24
25 c isa tmcl:association-role-constraint.
26 tmcl:constrained-statement(tmcl:constraint: c, tmcl:constrained: employed-by)
27 tmcl:constrained-role(tmcl:constraint: c, tmcl:constrained: employee)