]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - vendor/cxtm/tmcl/level-1/invalid/association-roles-too-many.ctm
examples: explore project work through native Topic Maps (slice 22U)
[topic-maps.git] / vendor / cxtm / tmcl / level-1 / invalid / association-roles-too-many.ctm
1
2 %prefix tmcl http://psi.topicmaps.org/tmcl/
3
4 foo(violator: bar, violator: baz)
5
6 foo isa tmcl:association-type.
7 violator isa tmcl:role-type.
8 bar isa quux.
9 baz isa quux.
10 quux isa tmcl:topic-type.
11
12 violated isa tmcl:association-role-constraint;
13 tmcl:card-min: 1;
14 tmcl:card-max: 1.
15
16 tmcl:constrained-statement(tmcl:constraint: violated, tmcl:constrained: foo)
17 tmcl:constrained-role(tmcl:constraint: violated, tmcl:constrained: violator)
18
19 c isa tmcl:topic-role-constraint.
20 tmcl:constrained-topic-type(tmcl:constraint: c, tmcl:constrained: quux)
21 tmcl:constrained-statement(tmcl:constraint: c, tmcl:constrained: foo)
22 tmcl:constrained-role(tmcl:constraint: c, tmcl:constrained: violator)