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