]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - vendor/cxtm/tmcl/level-1/invalid/occurrence-unique2.ctm
perf(tmdm): index topic normalization merge candidates
[topic-maps.git] / vendor / cxtm / tmcl / level-1 / invalid / occurrence-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" @scope1;
7 email: "larsga@garshol.priv.no" @scope2.
8
9 email isa tmcl:occurrence-type.
10 person isa tmcl:topic-type.
11
12 c isa tmcl:topic-occurrence-constraint.
13 tmcl:constrained-topic-type(tmcl:constraint: c, tmcl:constrained: person)
14 tmcl:constrained-statement(tmcl:constraint: c, tmcl:constrained: email)
15
16 violated isa tmcl:unique-value-constraint.
17 tmcl:constrained-statement(tmcl:constraint : violated, tmcl:constrained : email)
18
19 c2 isa tmcl:scope-constraint.
20 tmcl:constrained-statement(tmcl:constraint: c2, tmcl:constrained: email)
21 tmcl:allowed-scope(tmcl:allows: c2, tmcl:allowed: tmdm:subject)