2 %prefix tmcl http://psi.topicmaps.org/tmcl/
3 %prefix tmdm http://psi.topicmaps.org/iso13250/model/
6 email: "larsga@garshol.priv.no" @scope1;
7 email: "larsga@garshol.priv.no" @scope2.
9 email isa tmcl:occurrence-type.
10 person isa tmcl:topic-type.
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)
16 violated isa tmcl:unique-value-constraint.
17 tmcl:constrained-statement(tmcl:constraint : violated, tmcl:constrained : email)
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)