]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - vendor/cxtm/tmcl/level-1/invalid/occurrence-unique.ctm
examples: explore project work through native Topic Maps (slice 22U)
[topic-maps.git] / vendor / cxtm / tmcl / level-1 / invalid / occurrence-unique.ctm
1
2 %prefix tmcl http://psi.topicmaps.org/tmcl/
3
4 lmg isa person;
5 email: "larsga@garshol.priv.no".
6
7 larsga isa person;
8 email: "larsga@garshol.priv.no".
9
10 email isa tmcl:occurrence-type.
11 person isa tmcl:topic-type.
12
13 c isa tmcl:topic-occurrence-constraint;
14 tmcl:card-min: 1;
15 tmcl:card-max: 1.
16 tmcl:constrained-topic-type(tmcl:constraint: c, tmcl:constrained: person)
17 tmcl:constrained-statement(tmcl:constraint: c, tmcl:constrained: email)
18
19 violated isa tmcl:unique-value-constraint.
20 tmcl:constrained-statement(tmcl:constraint : violated, tmcl:constrained : email)