]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - vendor/cxtm/tmcl/level-1/invalid/variant-too-many.ctm
examples: explore project work through native Topic Maps (slice 22U)
[topic-maps.git] / vendor / cxtm / tmcl / level-1 / invalid / variant-too-many.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 - "Lars Marius Garshol"
7 ("garshol, lars marius" @ sort)
8 ("garshol lars marius" @ sort).
9
10 person isa tmcl:topic-type.
11
12 c isa tmcl:topic-name-constraint;
13 tmcl:card-min: 1;
14 tmcl:card-max: 1.
15 tmcl:constrained-topic-type(tmcl:constraint: c, tmcl:constrained: person)
16 tmcl:constrained-statement(tmcl:constraint: c, tmcl:constrained: tmdm:topic-name)
17
18 violated isa tmcl:variant-name-constraint;
19 tmcl:card-min: 1;
20 tmcl:card-max: 1.
21 tmcl:constrained-topic-type(tmcl:constraint: violated, tmcl:constrained: person)
22 tmcl:constrained-statement(tmcl:constraint: violated, tmcl:constrained: tmdm:topic-name)
23 tmcl:constrained-scope-topic(tmcl:constraint: violated, tmcl:constrained: sort)