]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - vendor/cxtm/tmcl/level-1/invalid/scope-name-not-enough.ctm
examples: explore project work through native Topic Maps (slice 22U)
[topic-maps.git] / vendor / cxtm / tmcl / level-1 / invalid / scope-name-not-enough.ctm
1
2 %prefix tmcl http://psi.topicmaps.org/tmcl/
3 %prefix tmdm http://psi.topicmaps.org/iso13250/model/
4
5 foo isa bar; - nametype: "Foo" @ en.
6
7 bar isa tmcl:topic-type.
8 nametype isa tmcl:name-type.
9
10 c isa tmcl:topic-name-constraint;
11 tmcl:card-min: 1;
12 tmcl:card-max: 1.
13 tmcl:constrained-topic-type(tmcl:constraint: c, tmcl:constrained: bar)
14 tmcl:constrained-statement(tmcl:constraint: c, tmcl:constrained: nametype)
15
16 c2 isa tmcl:scope-constraint;
17 tmcl:card-min: 2.
18 tmcl:constrained-statement(tmcl:constraint: c2, tmcl:constrained: nametype)
19 tmcl:allowed-scope(tmcl:allows: c2, tmcl:allowed: tmdm:subject)