2 %prefix tmcl http://psi.topicmaps.org/tmcl/
3 %prefix tmdm http://psi.topicmaps.org/iso13250/model/
5 def has-occurrence($tt, $ot, $min, $max)
6 ?c isa tmcl:topic-occurrence-constraint;
10 tmcl:constrained-topic-type(tmcl:constraint : ?c, tmcl:constrained : $tt)
11 tmcl:constrained-statement(tmcl:constraint : ?c, tmcl:constrained : $ot)
14 def has-scope($st, $tt, $min, $max)
15 ?c isa tmcl:scope-constraint;
19 tmcl:constrained-statement(tmcl:constraint : ?c, tmcl:constrained : $st)
20 tmcl:constrained-scope(tmcl:constraint : ?c, tmcl:constrained : $tt)
23 def requires-scope($tt, $st, $t, $min, $max)
24 ?c isa tmcl:scope-required-constraint;
28 tmcl:constrained-topic-type(tmcl:constraint : ?c, tmcl:constrained : $tt)
29 tmcl:constrained-statement(tmcl:constraint : ?c, tmcl:constrained : $st)
30 tmcl:constrained-scope-topic(tmcl:constraint : ?c, tmcl:constrained : $t)
33 description isa tmcl:occurrence-type;
34 has-scope(language, 1, 1).
36 language isa tmcl:topic-type;
37 has-occurrence(description, 0, *);
38 requires-scope(description, english, 1, 1);
39 requires-scope(description, norwegian, 1, 1).
41 norwegian isa language;
42 description: "Very nice language" @ english;
43 description: "Flott språk" @ norwegian.
46 description: "Very nice language" @ english;
47 description: "Flott språk" @ norwegian.