]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - vendor/cxtm/tmcl/level-1/valid/occurrences-unique2.ctm
perf(tmdm): index topic normalization merge candidates
[topic-maps.git] / vendor / cxtm / tmcl / level-1 / valid / occurrences-unique2.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 email: "larsga@garshol.priv.no".
7
8 larsga isa person;
9 foo: "larsga@garshol.priv.no".
10
11 email isa tmcl:occurrence-type.
12 foo isa tmcl:occurrence-type.
13 person isa tmcl:topic-type.
14
15 c isa tmcl:topic-occurrence-constraint;
16 tmcl:card-max: 1.
17 tmcl:constrained-topic-type(tmcl:constraint: c, tmcl:constrained: person)
18 tmcl:constrained-statement(tmcl:constraint: c, tmcl:constrained: email)
19
20 c3 isa tmcl:topic-occurrence-constraint;
21 tmcl:card-max: 1.
22 tmcl:constrained-topic-type(tmcl:constraint: c3, tmcl:constrained: person)
23 tmcl:constrained-statement(tmcl:constraint: c3, tmcl:constrained: foo)
24
25 c4 isa tmcl:unique-value-constraint.
26 tmcl:constrained-statement(tmcl:constraint : c4, tmcl:constrained : email)
27
28 c5 isa tmcl:unique-value-constraint.
29 tmcl:constrained-statement(tmcl:constraint : c5, tmcl:constrained : email)