]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - vendor/cxtm/tmcl/level-1/invalid/association-roles-not-enough.ctm
perf(tmdm): index topic normalization merge candidates
[topic-maps.git] / vendor / cxtm / tmcl / level-1 / invalid / association-roles-not-enough.ctm
1
2 %prefix tmcl http://psi.topicmaps.org/tmcl/
3
4 foo(violator: bar)
5
6 foo isa tmcl:association-type.
7 violator isa tmcl:role-type.
8 bar isa quux.
9 quux isa tmcl:topic-type.
10
11 violated isa tmcl:association-role-constraint;
12 tmcl:card-min: 2;
13 tmcl:card-max: 2.
14
15 tmcl:constrained-statement(tmcl:constraint: violated, tmcl:constrained: foo)
16 tmcl:constrained-role(tmcl:constraint: violated, tmcl:constrained: violator)
17
18 c isa tmcl:topic-role-constraint.
19 tmcl:constrained-topic-type(tmcl:constraint: c, tmcl:constrained: quux)
20 tmcl:constrained-statement(tmcl:constraint: c, tmcl:constrained: foo)
21 tmcl:constrained-role(tmcl:constraint: c, tmcl:constrained: violator)