source: trunk/src/unit_tests/poems.xtm

Last change on this file was 356, checked in by lgiessmann, 14 years ago

TM-SPARQL: added some unit-tests for processing single triples in a SELECT-WHERE statement => fixed some bugs in the SPARQL-queries

File size: 103.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<tm:topicMap version="2.0" xmlns:tm="http://www.topicmaps.org/xtm/">
3  <!-- ===================================================================== -->
4  <!--  Isidorus                                                             -->
5  <!--  (c) 2008-2010 Marc Kuester, Christoph Ludwig, Lukas Georgieff        -->
6  <!--                                                                       -->
7  <!--  Isidorus is freely distributable under the LLGPL license.            -->
8  <!--  This ajax module uses the frameworks PrototypeJs and Scriptaculous,  -->
9  <!--  both are distributed under the MIT license.                          -->
10  <!--  You can find a detailed description in trunk/docs/LLGPL-LICENSE.txt, -->
11  <!--  trunk/docs/LGPL-LICENSE.txt and in                                   -->
12  <!--  trunk/src/ajax/javascripts/external/MIT-LICENSE.txt.                 -->
13  <!-- ===================================================================== -->
14  <!-- ===================================================================== -->
15  <!-- === TMCL meta-model topics ========================================== -->
16  <!-- ===================================================================== -->
17  <tm:topic id="topictype">
18    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/topic-type"/> <!-- naming of psis: Prague, March 25-27, 2008, page 12 -->
19    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
20  </tm:topic>
21
22  <tm:topic id="occurrencetype">
23    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/occurrence-type"/>
24    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
25  </tm:topic>
26
27  <tm:topic id="associationtype">
28    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/association-type"/>
29    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
30  </tm:topic>
31
32  <tm:topic id="roletype">
33    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/role-type"/>
34    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
35  </tm:topic>
36
37  <tm:topic id="nametype">
38    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/name-type"/>
39    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
40  </tm:topic>
41
42  <tm:topic id="scopetype">
43    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/scope-type"/>
44    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
45  </tm:topic>
46
47  <!-- role types used to include the topictype metatypes in associations -->
48  <tm:topic id="topictype-role">
49    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/topic-type-role"/>
50    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
51  </tm:topic>
52
53  <tm:topic id="occurrencetype-role">
54    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/occurrence-type-role"/>
55    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
56  </tm:topic>
57
58  <tm:topic id="associationtype-role">
59    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/association-type-role"/>
60    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
61  </tm:topic>
62
63  <tm:topic id="roletype-role">
64    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/role-type-role"/>
65    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
66  </tm:topic>
67
68  <tm:topic id="otherroletype-role">
69    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/other-role-type-role"/>
70    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
71  </tm:topic>
72
73  <tm:topic id="othertopictype-role">
74    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/other-topic-type-role"/>
75    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
76  </tm:topic>
77
78  <tm:topic id="nametype-role">
79    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/name-type-role"/>
80    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
81  </tm:topic>
82
83  <tm:topic id="scopetype-role">
84    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/scope-type-role"/>
85    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
86  </tm:topic>
87
88  <!-- the constraint roletype -->
89  <tm:topic id="constraint-role">
90    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/constraint-role"/>
91    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
92  </tm:topic>
93
94  <!-- ===================================================================== -->
95  <!-- === TMCL model topics =============================================== -->
96  <!-- ===================================================================== -->
97
98  <!-- the constraint topic is the common supertype of all constraint types
99       defined by TMCL. -->
100  <tm:topic id="constraint">
101    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/constraint"/>
102    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
103  </tm:topic>
104 
105  <!-- this occurrence type is used to type a single occurrence on each
106       constraint type. This occurrence holds the TMQL value used to
107       evaluate constraint instances for validity. -->
108  <tm:topic id="validation-expression">
109    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/validation-expression"/>
110    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
111  </tm:topic>
112
113  <!-- the association type used to bind different components into a
114       constraint -->
115  <tm:topic id="applies-to">
116    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/applies-to"/>
117    <tm:instanceOf><tm:topicRef href="#associationtype"/></tm:instanceOf>
118  </tm:topic>
119
120  <!-- the card min facet is used on many constraint types -->
121  <tm:topic id="card-min">
122    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/card-min"/>
123    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
124  </tm:topic>
125
126  <!-- the card max facet is used on many constraint types -->
127  <tm:topic id="card-max">
128    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/card-max"/>
129    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
130  </tm:topic>
131
132  <!-- the reg exp facet is used on many constraint types -->
133  <tm:topic id="regexp">
134    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/reg-exp"/>
135    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
136  </tm:topic>
137
138  <!-- the datatype facet is used on many constraint types -->
139  <tm:topic id="datatype">
140    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/datatype"/>
141    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
142  </tm:topic>
143
144  <!-- ===================================================================== -->
145  <!-- === topics for super-subtype-associations (ako) ===================== -->
146  <!-- ===================================================================== -->
147
148  <tm:topic id="supertype-subtype">
149    <tm:subjectIdentifier href="http://psi.topicmaps.org/iso13250/model/supertype-subtype"/>
150  </tm:topic>
151
152  <tm:topic id="supertype">
153    <tm:subjectIdentifier href="http://psi.topicmaps.org/iso13250/model/supertype"/>
154  </tm:topic>
155
156  <tm:topic id="subtype">
157    <tm:subjectIdentifier href="http://psi.topicmaps.org/iso13250/model/subtype"/>
158  </tm:topic>
159
160
161  <!-- ===================================================================== -->
162  <!-- === schema type and ?schema definitions ============================= -->
163  <!-- ===================================================================== -->
164
165  <!-- constraints can be bound to a schema -->
166  <tm:topic id="schema">
167    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/schema"/>
168    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
169  </tm:topic>
170
171
172  <!-- ===================================================================== -->
173  <!-- === TMCL constraint types =========================================== -->
174  <!-- ===================================================================== -->
175
176  <!-- topictype-constraint -->
177  <tm:topic id="topictype-constraint">
178    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/topic-type-constraint"/>
179  </tm:topic> <!-- standard constraints doesn't own a valiadtion-expression-occurrence: Prague, March 25-27, 2008, page 34-36 -->
180
181  <tm:association>
182    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
183    <tm:role>
184      <tm:type><tm:topicRef href="#subtype"/></tm:type>
185      <tm:topicRef href="#topictype-constraint"/>
186    </tm:role>
187    <tm:role>
188      <tm:type><tm:topicRef href="#supertype"/></tm:type>
189      <tm:topicRef href="#constraint"/>
190    </tm:role>
191  </tm:association>
192
193  <!-- associationtype-constraint -->
194  <tm:topic id="associationtype-constraint">
195    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/association-type-constraint"/>
196  </tm:topic>
197
198  <tm:association>
199    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
200    <tm:role>
201      <tm:type><tm:topicRef href="#subtype"/></tm:type>
202      <tm:topicRef href="#associationtype-constraint"/>
203    </tm:role>
204    <tm:role>
205      <tm:type><tm:topicRef href="#supertype"/></tm:type>
206      <tm:topicRef href="#constraint"/>
207    </tm:role>
208  </tm:association>
209
210  <!-- roletype-constraint -->
211  <tm:topic id="roletype-constraint">
212    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/role-type-constraint"/>
213  </tm:topic>
214
215  <tm:association>
216    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
217    <tm:role>
218      <tm:type><tm:topicRef href="#subtype"/></tm:type>
219      <tm:topicRef href="#roletype-constraint"/>
220    </tm:role>
221    <tm:role>
222      <tm:type><tm:topicRef href="#supertype"/></tm:type>
223      <tm:topicRef href="#constraint"/>
224    </tm:role>
225  </tm:association>
226
227  <!-- occurrencetype-constraint -->
228  <tm:topic id="occurrencetype-constraint">
229    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/occurrence-type-constraint"/>
230  </tm:topic>
231
232  <tm:association>
233    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
234    <tm:role>
235      <tm:type><tm:topicRef href="#subtype"/></tm:type>
236      <tm:topicRef href="#occurrencetype-constraint"/>
237    </tm:role>
238    <tm:role>
239      <tm:type><tm:topicRef href="#supertype"/></tm:type>
240      <tm:topicRef href="#constraint"/>
241    </tm:role>
242  </tm:association>
243
244  <!-- nametype-constraint -->
245  <tm:topic id="nametype-constraint">
246    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/name-type-constraint"/>
247  </tm:topic>
248
249  <tm:association>
250    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
251    <tm:role>
252      <tm:type><tm:topicRef href="#subtype"/></tm:type>
253      <tm:topicRef href="#nametype-constraint"/>
254    </tm:role>
255    <tm:role>
256      <tm:type><tm:topicRef href="#supertype"/></tm:type>
257      <tm:topicRef href="#constraint"/>
258    </tm:role>
259  </tm:association>
260
261  <!-- abstract-topictype-constraint -->
262  <tm:topic id="abstract-topictype-constraint">
263    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/abstract-topic-type-constraint"/>
264  </tm:topic>
265
266  <tm:association>
267    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
268    <tm:role>
269      <tm:type><tm:topicRef href="#subtype"/></tm:type>
270      <tm:topicRef href="#abstract-topictype-constraint"/>
271    </tm:role>
272    <tm:role>
273      <tm:type><tm:topicRef href="#supertype"/></tm:type>
274      <tm:topicRef href="#constraint"/>
275    </tm:role>
276    </tm:association>
277
278
279  <!-- exclusive-instance -->
280  <tm:topic id="exclusive-instance">
281    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/exclusive-instance"/>
282  </tm:topic>
283
284  <tm:association>
285    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
286    <tm:role>
287      <tm:type><tm:topicRef href="#subtype"/></tm:type>
288      <tm:topicRef href="#exclusive-instance"/>
289    </tm:role>
290    <tm:role>
291      <tm:type><tm:topicRef href="#supertype"/></tm:type>
292      <tm:topicRef href="#constraint"/>
293    </tm:role>
294  </tm:association>
295
296
297  <!-- ===================================================================== -->
298  <!-- === subjectidentifier/locator constraints =========================== -->
299  <!-- ===================================================================== -->
300 
301  <!-- subjectlocator-constraint -->
302  <tm:topic id="subjectlocator-constraint">
303    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/subject-locator-constraint"/>
304  </tm:topic>
305
306  <tm:association>
307    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
308    <tm:role>
309      <tm:type><tm:topicRef href="#subtype"/></tm:type>
310      <tm:topicRef href="#subjectlocator-constraint"/>
311    </tm:role>
312    <tm:role>
313      <tm:type><tm:topicRef href="#supertype"/></tm:type>
314      <tm:topicRef href="#constraint"/>
315    </tm:role>
316  </tm:association>
317
318  <!-- subjectidentifier-constraint -->
319  <tm:topic id="subjectidentifier-constraint">
320    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/subject-identifier-constraint"/>
321  </tm:topic>
322
323  <tm:association>
324    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
325    <tm:role>
326      <tm:type><tm:topicRef href="#subtype"/></tm:type>
327      <tm:topicRef href="#subjectidentifier-constraint"/>
328    </tm:role>
329    <tm:role>
330      <tm:type><tm:topicRef href="#supertype"/></tm:type>
331      <tm:topicRef href="#constraint"/>
332    </tm:role>
333  </tm:association>
334
335
336  <!-- ===================================================================== -->
337  <!-- === names/occurrences/associations/association roles ================ -->
338  <!-- ===================================================================== -->
339
340  <!-- topicname-constraint -->
341  <tm:topic id="topicname-constraint">
342    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/topic-name-constraint"/>
343  </tm:topic>
344
345  <tm:association>
346    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
347    <tm:role>
348      <tm:type><tm:topicRef href="#subtype"/></tm:type>
349      <tm:topicRef href="#topicname-constraint"/>
350    </tm:role>
351    <tm:role>
352      <tm:type><tm:topicRef href="#supertype"/></tm:type>
353      <tm:topicRef href="#constraint"/>
354    </tm:role>
355  </tm:association>
356
357  <!-- topicoccurrence-constraint -->
358  <tm:topic id="topicoccurrence-constraint">
359    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/topic-occurrence-constraint"/>
360  </tm:topic>
361
362  <tm:association>
363    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
364    <tm:role>
365      <tm:type><tm:topicRef href="#subtype"/></tm:type>
366      <tm:topicRef href="#topicoccurrence-constraint"/>
367    </tm:role>
368    <tm:role>
369      <tm:type><tm:topicRef href="#supertype"/></tm:type>
370      <tm:topicRef href="#constraint"/>
371    </tm:role>
372  </tm:association>
373
374  <!-- occurrencedatatype-constraint -->
375  <tm:topic id="occurrencedatatype-constraint">
376    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/occurrence-datatype-constraint"/>
377  </tm:topic>
378
379  <tm:association>
380    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
381    <tm:role>
382      <tm:type><tm:topicRef href="#subtype"/></tm:type>
383      <tm:topicRef href="#occurrencedatatype-constraint"/>
384    </tm:role>
385    <tm:role>
386      <tm:type><tm:topicRef href="#supertype"/></tm:type>
387      <tm:topicRef href="#constraint"/>
388    </tm:role>
389  </tm:association>
390
391  <!-- uniqueoccurrence-constraint -->
392  <tm:topic id="uniqueoccurrence-constraint">
393    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/unique-occurrence-constraint"/>
394  </tm:topic>
395
396  <tm:association>
397    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
398    <tm:role>
399      <tm:type><tm:topicRef href="#subtype"/></tm:type>
400      <tm:topicRef href="#uniqueoccurrence-constraint"/>
401    </tm:role>
402    <tm:role>
403      <tm:type><tm:topicRef href="#supertype"/></tm:type>
404      <tm:topicRef href="#constraint"/>
405    </tm:role>
406  </tm:association>
407
408  <!-- associationrole-constraint -->
409  <tm:topic id="associationrole-constraint">
410    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/association-role-constraint"/>
411  </tm:topic>
412
413  <tm:association>
414    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
415    <tm:role>
416      <tm:type><tm:topicRef href="#subtype"/></tm:type>
417      <tm:topicRef href="#associationrole-constraint"/>
418    </tm:role>
419    <tm:role>
420      <tm:type><tm:topicRef href="#supertype"/></tm:type>
421      <tm:topicRef href="#constraint"/>
422    </tm:role>
423  </tm:association>
424
425  <!-- roleplayer-constraint -->
426  <tm:topic id="roleplayer-constraint">
427    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/role-player-constraint"/>
428  </tm:topic>
429
430  <tm:association>
431    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
432    <tm:role>
433      <tm:type><tm:topicRef href="#subtype"/></tm:type>
434      <tm:topicRef href="#roleplayer-constraint"/>
435    </tm:role>
436    <tm:role>
437      <tm:type><tm:topicRef href="#supertype"/></tm:type>
438      <tm:topicRef href="#constraint"/>
439    </tm:role>
440  </tm:association>
441
442  <!-- otherrole-constraint -->
443  <tm:topic id="otherrole-constraint">
444    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/other-role-constraint"/>
445  </tm:topic>
446
447  <tm:association>
448    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
449    <tm:role>
450      <tm:type><tm:topicRef href="#subtype"/></tm:type>
451      <tm:topicRef href="#otherrole-constraint"/>
452    </tm:role>
453    <tm:role>
454      <tm:type><tm:topicRef href="#supertype"/></tm:type>
455      <tm:topicRef href="#constraint"/>
456    </tm:role>
457  </tm:association>
458
459  <!-- ===================================================================== -->
460  <!-- === scopes ========================================================== -->
461  <!-- ===================================================================== -->
462
463  <!-- nametypescope-constraint -->
464  <tm:topic id="nametypescope-constraint">
465    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/name-type-scope-constraint"/>
466  </tm:topic>
467
468  <tm:association>
469    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
470    <tm:role>
471      <tm:type><tm:topicRef href="#subtype"/></tm:type>
472      <tm:topicRef href="#nametypescope-constraint"/>
473    </tm:role>
474    <tm:role>
475      <tm:type><tm:topicRef href="#supertype"/></tm:type>
476      <tm:topicRef href="#constraint"/>
477    </tm:role>
478  </tm:association>
479
480  <!-- occurrencetypescope-constraint -->
481  <tm:topic id="occurrencetypescope-constraint">
482    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/occurrence-type-scope-constraint"/>
483  </tm:topic>
484
485  <tm:association>
486    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
487    <tm:role>
488      <tm:type><tm:topicRef href="#subtype"/></tm:type>
489      <tm:topicRef href="#occurrencetypescope-constraint"/>
490    </tm:role>
491    <tm:role>
492      <tm:type><tm:topicRef href="#supertype"/></tm:type>
493      <tm:topicRef href="#constraint"/>
494    </tm:role>
495  </tm:association>
496
497  <!-- associationtypescope-constraint -->
498  <tm:topic id="associationtypescope-constraint">
499    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/association-type-scope-constraint"/>
500  </tm:topic>
501
502  <tm:association>
503    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
504    <tm:role>
505      <tm:type><tm:topicRef href="#subtype"/></tm:type>
506      <tm:topicRef href="#associationtypescope-constraint"/>
507    </tm:role>
508    <tm:role>
509      <tm:type><tm:topicRef href="#supertype"/></tm:type>
510      <tm:topicRef href="#constraint"/>
511    </tm:role>
512  </tm:association>
513
514
515  <!-- ===================================================================== -->
516  <!-- === own datamodel: type handling ==================================== -->
517  <!-- ===================================================================== -->
518
519  <!-- only topics that are instances of topictype are allowed as topic
520       types -->
521  <tm:topic id="ttc">
522    <tm:subjectIdentifier href="http://some.where/constraint-psis/ttc"/>
523    <tm:instanceOf><tm:topicRef href="#topictype-constraint"/></tm:instanceOf>
524  </tm:topic>
525
526  <!-- only topics that are instances of associationtype are allowed as
527       association types -->
528  <tm:topic id="atc">
529    <tm:subjectIdentifier href="http://some.where/constraint-psis/atc"/>
530    <tm:instanceOf><tm:topicRef href="#associationtype-constraint"/></tm:instanceOf>
531  </tm:topic>
532
533  <!-- only topics that are instances of roletype are allowed as
534       association role types -->
535  <tm:topic id="rtc">
536    <tm:subjectIdentifier href="http://some.where/constraint-psis/rtc"/>
537    <tm:instanceOf><tm:topicRef href="#roletype-constraint"/></tm:instanceOf>
538  </tm:topic>
539
540  <!-- only topics that are instances of occurrencetype are allowed as
541       occurrence types -->
542  <tm:topic id="otc">
543    <tm:subjectIdentifier href="http://some.where/constraint-psis/otc"/>
544    <tm:instanceOf><tm:topicRef href="#occurrencetype-constraint"/></tm:instanceOf>
545  </tm:topic>
546
547  <!-- only topics that are instances of nametype are allowed as
548       name types -->
549  <tm:topic id="ntc">
550    <tm:subjectIdentifier href="http://some.where/constraint-psis/ntc"/>
551    <tm:instanceOf><tm:topicRef href="#nametype-constraint"/></tm:instanceOf>
552  </tm:topic>
553
554
555  <!-- ===================================================================== -->
556  <!-- === own datamodel: base types ======================================= -->
557  <!-- ===================================================================== -->
558
559  <!-- author -->
560  <tm:topic id="author">
561    <tm:subjectIdentifier href="http://some.where/base-psis/author"/>
562    <tm:subjectIdentifier href="http://some.where/base-psis/author-psi"/>
563    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
564  </tm:topic>
565
566  <tm:topic id="first-name">
567    <tm:subjectIdentifier href="http://some.where/base-psis/first-name"/>
568    <tm:instanceOf><tm:topicRef href="#nametype"/></tm:instanceOf>
569  </tm:topic>
570
571  <tm:topic id="last-name">
572    <tm:subjectIdentifier href="http://some.where/base-psis/last-name"/>
573    <tm:instanceOf><tm:topicRef href="#nametype"/></tm:instanceOf>
574  </tm:topic>
575
576  <tm:topic id="author-info">
577    <tm:subjectIdentifier href="http://some.where/base-psis/author-info"/>
578    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
579  </tm:topic>
580
581  <!-- poem -->
582  <tm:topic id="poem">
583    <tm:subjectIdentifier href="http://some.where/base-psis/poem"/>
584    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
585  </tm:topic>
586
587  <tm:topic id="title">
588    <tm:subjectIdentifier href="http://some.where/base-psis/title"/>
589    <tm:instanceOf><tm:topicRef href="#nametype"/></tm:instanceOf>
590  </tm:topic>
591
592  <tm:topic id="poem-content">
593    <tm:subjectIdentifier href="http://some.where/base-psis/poem-content"/>
594    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
595  </tm:topic>
596
597  <!-- available scopes -->
598  <tm:topic id="de">
599    <tm:subjectIdentifier href="http://some.where/base-psis/de"/>
600    <tm:subjectIdentifier href="http://some.where/base-psis/ger"/>
601    <tm:instanceOf><tm:topicRef href="#scopetype"/></tm:instanceOf>
602  </tm:topic>
603
604  <tm:topic id="en">
605    <tm:subjectIdentifier href="http://some.where/base-psis/en"/>
606    <tm:instanceOf><tm:topicRef href="#scopetype"/></tm:instanceOf>
607  </tm:topic>
608
609  <tm:topic id="fr">
610    <tm:subjectIdentifier href="http://some.where/base-psis/fr"/>
611    <tm:instanceOf><tm:topicRef href="#scopetype"/></tm:instanceOf>
612  </tm:topic>
613
614  <tm:topic id="fin">
615    <tm:subjectIdentifier href="http://some.where/base-psis/fin"/>
616    <tm:instanceOf><tm:topicRef href="#scopetype"/></tm:instanceOf>
617  </tm:topic>
618
619  <tm:topic id="rus">
620    <tm:subjectIdentifier href="http://some.where/base-psis/rus"/>
621    <tm:instanceOf><tm:topicRef href="#scopetype"/></tm:instanceOf>
622  </tm:topic>
623
624  <tm:topic id="pl">
625    <tm:subjectIdentifier href="http://some.where/base-psis/pl"/>
626    <tm:instanceOf><tm:topicRef href="#scopetype"/></tm:instanceOf>
627  </tm:topic>
628 
629  <!-- region -->
630  <tm:topic id="region">
631    <tm:subjectIdentifier href="http://some.where/base-psis/region"/>
632    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
633  </tm:topic>
634
635  <tm:topic id="abstract-constraint-for-region">
636    <tm:subjectIdentifier href="http://some.where/constraint-psis/abstract-constraint-for-region"/>
637    <tm:instanceOf><tm:topicRef href="#abstract-topictype-constraint"/></tm:instanceOf>
638  </tm:topic>
639
640  <tm:association>
641    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
642    <tm:role>
643      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
644      <tm:topicRef href="#abstract-constraint-for-region"/>
645    </tm:role>
646    <tm:role>
647      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
648      <tm:topicRef href="#region"/>
649    </tm:role>
650  </tm:association>
651
652  <tm:topic id="region-name">
653    <tm:subjectIdentifier href="http://some.where/base-psis/region-name"/>
654    <tm:instanceOf><tm:topicRef href="#nametype"/></tm:instanceOf>
655  </tm:topic>
656
657  <tm:topic id="region-population">
658    <tm:subjectIdentifier href="http://some.where/base-psis/region-population"/>
659    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
660  </tm:topic>
661
662  <!-- city -->
663  <tm:topic id="city">
664    <tm:subjectIdentifier href="http://some.where/base-psis/city"/>
665  </tm:topic>
666
667  <tm:association>
668    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
669    <tm:role>
670      <tm:type><tm:topicRef href="#supertype"/></tm:type>
671      <tm:topicRef href="#region"/>
672    </tm:role>
673    <tm:role>
674      <tm:type><tm:topicRef href="#subtype"/></tm:type>
675      <tm:topicRef href="#city"/>
676    </tm:role>
677  </tm:association>
678
679  <!-- metropolis -->
680  <tm:topic id="metropolis">
681    <tm:subjectIdentifier href="http://some.where/base-psis/metropolis"/>
682  </tm:topic>
683
684  <tm:association>
685    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
686    <tm:role>
687      <tm:type><tm:topicRef href="#supertype"/></tm:type>
688      <tm:topicRef href="#region"/>
689    </tm:role>
690    <tm:role>
691      <tm:type><tm:topicRef href="#subtype"/></tm:type>
692      <tm:topicRef href="#metropolis"/>
693    </tm:role>
694  </tm:association>
695
696  <!-- country -->
697  <tm:topic id="country">
698    <tm:subjectIdentifier href="http://some.where/base-psis/country"/>
699    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
700  </tm:topic>
701
702  <tm:topic id="country-name">
703    <tm:subjectIdentifier href="http://some.where/base-psis/country-name"/>
704    <tm:instanceOf><tm:topicRef href="#nametype"/></tm:instanceOf>
705  </tm:topic>
706
707  <!-- association author-poem -->
708  <tm:topic id="written-by">
709    <tm:subjectIdentifier href="http://some.where/base-psis/written-by"/>
710    <tm:instanceOf><tm:topicRef href="#associationtype"/></tm:instanceOf>
711  </tm:topic>
712
713  <tm:topic id="writer">
714    <tm:subjectIdentifier href="http://some.where/base-psis/writer"/>
715    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
716  </tm:topic>
717
718  <tm:topic id="written">
719    <tm:subjectIdentifier href="http://some.where/base-psis/written"/>
720    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
721  </tm:topic>
722
723  <!-- association country-city -->
724  <tm:topic id="located-in">
725    <tm:subjectIdentifier href="http://some.where/base-psis/located-in"/>
726    <tm:instanceOf><tm:topicRef href="#associationtype"/></tm:instanceOf>
727  </tm:topic>
728
729  <tm:topic id="container">
730    <tm:subjectIdentifier href="http://some.where/base-psis/container"/>
731    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
732  </tm:topic>
733
734  <tm:topic id="containee">
735    <tm:subjectIdentifier href="http://some.where/base-psis/containee"/>
736    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
737  </tm:topic>
738
739  <!-- association author-city -->
740  <tm:topic id="born-in">
741    <tm:subjectIdentifier href="http://some.where/base-psis/born-in"/>
742    <tm:instanceOf><tm:topicRef href="#associationtype"/></tm:instanceOf>
743  </tm:topic>
744
745  <!-- writer already defined for written-by -->
746
747  <tm:topic id="place">
748    <tm:subjectIdentifier href="http://some.where/base-psis/place"/>
749    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
750  </tm:topic>
751
752  <!-- ===================================================================== -->
753  <!-- === own datamodel: exclusive type constraint ======================== -->
754  <!-- ===================================================================== -->
755  <!-- same instances of the type author and title are not allowed -->
756  <tm:topic id="exc">
757    <tm:subjectIdentifier href="http://some.where/constraint-psis/exc"/>
758    <tm:instanceOf><tm:topicRef href="#exclusive-instance"/></tm:instanceOf>
759  </tm:topic>
760
761  <tm:association>
762    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
763    <tm:role>
764      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
765      <tm:topicRef href="#exc"/>
766    </tm:role>
767    <tm:role>
768      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
769      <tm:topicRef href="#author"/>
770    </tm:role>
771  </tm:association>
772
773  <tm:association>
774    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
775    <tm:role>
776      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
777      <tm:topicRef href="#exc"/>
778    </tm:role>
779    <tm:role>
780      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
781      <tm:topicRef href="#poem"/>
782    </tm:role>
783  </tm:association>
784
785  <tm:association>
786    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
787    <tm:role>
788      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
789      <tm:topicRef href="#exc"/>
790    </tm:role>
791    <tm:role>
792      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
793      <tm:topicRef href="#region"/>
794    </tm:role>
795  </tm:association>
796
797  <tm:association>
798    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
799    <tm:role>
800      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
801      <tm:topicRef href="#exc"/>
802    </tm:role>
803    <tm:role>
804      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
805      <tm:topicRef href="#country"/>
806    </tm:role>
807  </tm:association>
808
809  <!-- ===================================================================== -->
810  <!-- === own datamodel: subjectIdentifier constraints ==================== -->
811  <!-- ===================================================================== -->
812  <!-- a topic of the type author has to have a psi of the form
813       "^http://some.where/psis/author/.+$"
814       and a topic of the type poem has to have a psi of the form
815       "^http://some.where/psis/poem/.+$".
816       further all topics can have mor psis of the form "^.+$" -->
817
818  <!-- subjectidentifier of author -->
819  <tm:topic id="sic-author">
820    <tm:subjectIdentifier href="http://some.where/constraint-psis/sic-author"/>
821    <tm:instanceOf><tm:topicRef href="#subjectidentifier-constraint"/></tm:instanceOf>
822    <tm:occurrence>
823      <tm:type><tm:topicRef href="#card-min"/></tm:type>
824      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
825    </tm:occurrence>
826    <tm:occurrence>
827      <tm:type><tm:topicRef href="#card-max"/></tm:type>
828      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
829    </tm:occurrence>
830    <tm:occurrence>
831      <tm:type><tm:topicRef href="#regexp"/></tm:type>
832      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^http://some.where/psis/author/.+$</tm:resourceData>
833    </tm:occurrence>
834  </tm:topic>
835
836  <tm:association>
837    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
838    <tm:role>
839      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
840      <tm:topicRef href="#sic-author"/>
841    </tm:role>
842    <tm:role>
843      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
844      <tm:topicRef href="#author"/>
845    </tm:role>
846  </tm:association>
847
848  <!-- subjectidentifier of poem -->
849  <tm:topic id="sic-poem">
850    <tm:subjectIdentifier href="http://some.where/constraint-psis/sic-poem"/>
851    <tm:instanceOf><tm:topicRef href="#subjectidentifier-constraint"/></tm:instanceOf>
852    <tm:occurrence>
853      <tm:type><tm:topicRef href="#card-min"/></tm:type>
854      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
855    </tm:occurrence>
856    <tm:occurrence>
857      <tm:type><tm:topicRef href="#card-max"/></tm:type>
858      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
859    </tm:occurrence>
860    <tm:occurrence>
861      <tm:type><tm:topicRef href="#regexp"/></tm:type>
862      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^http://some.where/psis/poem/.+$</tm:resourceData>
863    </tm:occurrence>
864  </tm:topic>
865
866  <tm:association>
867    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
868    <tm:role>
869      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
870      <tm:topicRef href="#sic-poem"/>
871    </tm:role>
872    <tm:role>
873      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
874      <tm:topicRef href="#poem"/>
875    </tm:role>
876  </tm:association>
877
878  <!-- subjectidentifier of region -->
879  <tm:topic id="sic-region">
880    <tm:subjectIdentifier href="http://some.where/constraint-psis/sic-region"/>
881    <tm:instanceOf><tm:topicRef href="#subjectidentifier-constraint"/></tm:instanceOf>
882    <tm:occurrence>
883      <tm:type><tm:topicRef href="#card-min"/></tm:type>
884      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
885    </tm:occurrence>
886    <tm:occurrence>
887      <tm:type><tm:topicRef href="#card-max"/></tm:type>
888      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
889    </tm:occurrence>
890    <tm:occurrence>
891      <tm:type><tm:topicRef href="#regexp"/></tm:type>
892      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^http://some.where/psis/region/.+$</tm:resourceData>
893    </tm:occurrence>
894  </tm:topic>
895
896  <tm:association>
897    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
898    <tm:role>
899      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
900      <tm:topicRef href="#sic-region"/>
901    </tm:role>
902    <tm:role>
903      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
904      <tm:topicRef href="#region"/>
905    </tm:role>
906  </tm:association>
907
908  <!-- subjectidentifier of country -->
909  <tm:topic id="sic-country">
910    <tm:subjectIdentifier href="http://some.where/constraint-psis/sic-country"/>
911    <tm:instanceOf><tm:topicRef href="#subjectidentifier-constraint"/></tm:instanceOf>
912    <tm:occurrence>
913      <tm:type><tm:topicRef href="#card-min"/></tm:type>
914      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
915    </tm:occurrence>
916    <tm:occurrence>
917      <tm:type><tm:topicRef href="#card-max"/></tm:type>
918      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
919    </tm:occurrence>
920    <tm:occurrence>
921      <tm:type><tm:topicRef href="#regexp"/></tm:type>
922      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^http://some.where/psis/country/.+$</tm:resourceData>
923    </tm:occurrence>
924  </tm:topic>
925
926  <tm:association>
927    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
928    <tm:role>
929      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
930      <tm:topicRef href="#sic-country"/>
931    </tm:role>
932    <tm:role>
933      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
934      <tm:topicRef href="#country"/>
935    </tm:role>
936  </tm:association>
937
938  <!-- further subjectidentifiers of all topics -->
939  <tm:topic id="sic-all">
940    <tm:subjectIdentifier href="http://some.where/constraint-psis/all"/>
941    <tm:instanceOf><tm:topicRef href="#subjectidentifier-constraint"/></tm:instanceOf>
942    <tm:occurrence>
943      <tm:type><tm:topicRef href="#card-min"/></tm:type>
944      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">0</tm:resourceData>
945    </tm:occurrence>
946    <tm:occurrence>
947      <tm:type><tm:topicRef href="#card-max"/></tm:type>
948      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">MAX_INT</tm:resourceData>
949    </tm:occurrence>
950    <tm:occurrence>
951      <tm:type><tm:topicRef href="#regexp"/></tm:type>
952      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.+$</tm:resourceData>
953    </tm:occurrence>
954  </tm:topic>
955
956  <tm:association>
957    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
958    <tm:role>
959      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
960      <tm:topicRef href="#sic-all"/>
961    </tm:role>
962    <tm:role>
963      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
964      <tm:topicRef href="#author"/>
965    </tm:role>
966  </tm:association>
967
968  <tm:association>
969    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
970    <tm:role>
971      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
972      <tm:topicRef href="#sic-all"/>
973    </tm:role>
974    <tm:role>
975      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
976      <tm:topicRef href="#poem"/>
977    </tm:role>
978  </tm:association>
979
980  <tm:association>
981    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
982    <tm:role>
983      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
984      <tm:topicRef href="#sic-all"/>
985    </tm:role>
986    <tm:role>
987      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
988      <tm:topicRef href="#region"/>
989    </tm:role>
990  </tm:association>
991
992  <tm:association>
993    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
994    <tm:role>
995      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
996      <tm:topicRef href="#sic-all"/>
997    </tm:role>
998    <tm:role>
999      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1000      <tm:topicRef href="#country"/>
1001    </tm:role>
1002  </tm:association>
1003
1004
1005  <!-- ===================================================================== -->
1006  <!-- === own datamodel: subjectLocator constraints ======================= -->
1007  <!-- ===================================================================== -->
1008  <!-- all instances of author, poem, city and country are not allowed to own a
1009       subjectLocator -->
1010
1011  <tm:topic id="slc-author-poem-city-country">
1012    <tm:subjectIdentifier href="http://some.where/constraint-psis/slc-author-poem-city-country"/>
1013    <tm:instanceOf><tm:topicRef href="#subjectlocator-constraint"/></tm:instanceOf>
1014    <tm:occurrence>
1015      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1016      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">0</tm:resourceData>
1017    </tm:occurrence>
1018    <tm:occurrence>
1019      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1020      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">0</tm:resourceData>
1021    </tm:occurrence>
1022    <tm:occurrence>
1023      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1024      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.*$</tm:resourceData>
1025    </tm:occurrence>
1026  </tm:topic>
1027
1028  <tm:association>
1029    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1030    <tm:role>
1031      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1032      <tm:topicRef href="#slc-author-poem-city-country"/>
1033    </tm:role>
1034    <tm:role>
1035      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1036      <tm:topicRef href="#author"/>
1037    </tm:role>
1038  </tm:association>
1039
1040  <tm:association>
1041    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1042    <tm:role>
1043      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1044      <tm:topicRef href="#slc-author-poem-city-country"/>
1045    </tm:role>
1046    <tm:role>
1047      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1048      <tm:topicRef href="#poem"/>
1049    </tm:role>
1050  </tm:association>
1051
1052  <tm:association>
1053    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1054    <tm:role>
1055      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1056      <tm:topicRef href="#slc-author-poem-city-country"/>
1057    </tm:role>
1058    <tm:role>
1059      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1060      <tm:topicRef href="#region"/>
1061    </tm:role>
1062  </tm:association>
1063
1064  <tm:association>
1065    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1066    <tm:role>
1067      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1068      <tm:topicRef href="#slc-author-poem-city-country"/>
1069    </tm:role>
1070    <tm:role>
1071      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1072      <tm:topicRef href="#country"/>
1073    </tm:role>
1074  </tm:association>
1075
1076  <!-- ===================================================================== -->
1077  <!-- === own datamodel: name constraints ================================= -->
1078  <!-- ===================================================================== -->
1079  <!-- instances of the type author has to own a name of the type first-name
1080       and one of the type last-name. both must be valid to the regular
1081       expression "^.+$".
1082       instances of the type poem has exactly one name of the type title
1083       with the regular expression "^.+$" -->
1084
1085  <!-- author first name -->
1086  <tm:topic id="author-first-name-constraint">
1087    <tm:subjectIdentifier href="http://some.where/constraint-psis/author-first-name-constraint"/>
1088    <tm:instanceOf><tm:topicRef href="#topicname-constraint"/></tm:instanceOf>
1089        <tm:occurrence>
1090      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1091      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1092    </tm:occurrence>
1093    <tm:occurrence>
1094      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1095      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1096    </tm:occurrence>
1097    <tm:occurrence>
1098      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1099      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.+$</tm:resourceData>
1100    </tm:occurrence>
1101  </tm:topic>
1102
1103  <tm:association>
1104    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1105    <tm:role>
1106      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1107      <tm:topicRef href="#author-first-name-constraint"/>
1108    </tm:role>
1109    <tm:role>
1110      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1111      <tm:topicRef href="#author"/>
1112    </tm:role>
1113  </tm:association>
1114
1115  <tm:association>
1116    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1117    <tm:role>
1118      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1119      <tm:topicRef href="#author-first-name-constraint"/>
1120    </tm:role>
1121    <tm:role>
1122      <tm:type><tm:topicRef href="#nametype-role"/></tm:type>
1123      <tm:topicRef href="#first-name"/>
1124    </tm:role>
1125  </tm:association>
1126 
1127  <!-- author last name -->
1128  <tm:topic id="author-last-name-constraint">
1129    <tm:subjectIdentifier href="http://some.where/constraint-psis/author-last-name-constraint"/>
1130    <tm:instanceOf><tm:topicRef href="#topicname-constraint"/></tm:instanceOf>
1131        <tm:occurrence>
1132      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1133      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1134    </tm:occurrence>
1135    <tm:occurrence>
1136      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1137      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1138    </tm:occurrence>
1139    <tm:occurrence>
1140      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1141      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.+$</tm:resourceData>
1142    </tm:occurrence>
1143  </tm:topic>
1144
1145  <tm:association>
1146    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1147    <tm:role>
1148      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1149      <tm:topicRef href="#author-last-name-constraint"/>
1150    </tm:role>
1151    <tm:role>
1152      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1153      <tm:topicRef href="#author"/>
1154    </tm:role>
1155  </tm:association>
1156
1157  <tm:association>
1158    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1159    <tm:role>
1160      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1161      <tm:topicRef href="#author-last-name-constraint"/>
1162    </tm:role>
1163    <tm:role>
1164      <tm:type><tm:topicRef href="#nametype-role"/></tm:type>
1165      <tm:topicRef href="#last-name"/>
1166    </tm:role>
1167  </tm:association>
1168
1169  <!-- poem title name -->
1170  <tm:topic id="poem-title-name-constraint">
1171    <tm:subjectIdentifier href="http://some.where/constraint-psis/poem-title-name-constraint"/>
1172    <tm:instanceOf><tm:topicRef href="#topicname-constraint"/></tm:instanceOf>
1173    <tm:occurrence>
1174      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1175      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1176    </tm:occurrence>
1177    <tm:occurrence>
1178      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1179      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1180    </tm:occurrence>
1181    <tm:occurrence>
1182      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1183      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.+$</tm:resourceData>
1184    </tm:occurrence>
1185  </tm:topic>
1186
1187  <tm:association>
1188    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1189    <tm:role>
1190      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1191      <tm:topicRef href="#poem-title-name-constraint"/>
1192    </tm:role>
1193    <tm:role>
1194      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1195      <tm:topicRef href="#poem"/>
1196    </tm:role>
1197  </tm:association>
1198
1199  <tm:association>
1200    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1201    <tm:role>
1202      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1203      <tm:topicRef href="#poem-title-name-constraint"/>
1204    </tm:role>
1205    <tm:role>
1206      <tm:type><tm:topicRef href="#nametype-role"/></tm:type>
1207      <tm:topicRef href="#title"/>
1208    </tm:role>
1209  </tm:association> 
1210
1211  <!-- region: region-name -->
1212  <tm:topic id="region-name-constraint">
1213    <tm:subjectIdentifier href="http://some.where/constraint-psis/region-name-constraint"/>
1214    <tm:instanceOf><tm:topicRef href="#topicname-constraint"/></tm:instanceOf>
1215    <tm:occurrence>
1216      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1217      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1218    </tm:occurrence>
1219    <tm:occurrence>
1220      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1221      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1222    </tm:occurrence>
1223    <tm:occurrence>
1224      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1225      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.+$</tm:resourceData>
1226    </tm:occurrence>
1227  </tm:topic>
1228
1229  <tm:association>
1230    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1231    <tm:role>
1232      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1233      <tm:topicRef href="#region-name-constraint"/>
1234    </tm:role>
1235    <tm:role>
1236      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1237      <tm:topicRef href="#region"/>
1238    </tm:role>
1239  </tm:association>
1240
1241  <tm:association>
1242    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1243    <tm:role>
1244      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1245      <tm:topicRef href="#region-name-constraint"/>
1246    </tm:role>
1247    <tm:role>
1248      <tm:type><tm:topicRef href="#nametype-role"/></tm:type>
1249      <tm:topicRef href="#region-name"/>
1250    </tm:role>
1251  </tm:association>
1252
1253  <!-- country: country-name
1254       A country hast to have at least one name with the scope "en" or "de".
1255       There can exist both names with the scopes "en" and "de". -->
1256  <tm:topic id="country-name-constraint">
1257    <tm:subjectIdentifier href="http://some.where/constraint-psis/country-name-constraint"/>
1258    <tm:instanceOf><tm:topicRef href="#topicname-constraint"/></tm:instanceOf>
1259    <tm:occurrence>
1260      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1261      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1262    </tm:occurrence>
1263    <tm:occurrence>
1264      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1265      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1266    </tm:occurrence>
1267    <tm:occurrence>
1268      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1269      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.+$</tm:resourceData>
1270    </tm:occurrence>
1271  </tm:topic>
1272
1273  <tm:association>
1274    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1275    <tm:role>
1276      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1277      <tm:topicRef href="#country-name-constraint"/>
1278    </tm:role>
1279    <tm:role>
1280      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1281      <tm:topicRef href="#country"/>
1282    </tm:role>
1283  </tm:association>
1284
1285  <tm:association>
1286    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1287    <tm:role>
1288      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1289      <tm:topicRef href="#country-name-constraint"/>
1290    </tm:role>
1291    <tm:role>
1292      <tm:type><tm:topicRef href="#nametype-role"/></tm:type>
1293      <tm:topicRef href="#country-name"/>
1294    </tm:role>
1295  </tm:association>
1296
1297  <!-- country-name scopes -->
1298  <!-- scope constraint 1: there must be either the scope en or de -->
1299  <tm:topic id="scoped-country-name-constraint-1">
1300    <tm:subjectIdentifier href="http://some.where/constraint-psis/scoped-country-name-constraint-1"/>
1301    <tm:instanceOf><tm:topicRef href="#nametypescope-constraint"/></tm:instanceOf>
1302    <tm:occurrence>
1303      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1304      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1305    </tm:occurrence>
1306    <tm:occurrence>
1307      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1308      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">2</tm:resourceData>
1309    </tm:occurrence>
1310  </tm:topic>
1311
1312  <tm:association>
1313    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1314    <tm:role>
1315      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1316      <tm:topicRef href="#scoped-country-name-constraint-1"/>
1317    </tm:role>
1318    <tm:role>
1319      <tm:type><tm:topicRef href="#nametype-role"/></tm:type>
1320      <tm:topicRef href="#country-name"/>
1321    </tm:role>
1322  </tm:association>
1323
1324  <tm:association>
1325    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1326    <tm:role>
1327      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1328      <tm:topicRef href="#scoped-country-name-constraint-1"/>
1329    </tm:role>
1330    <tm:role>
1331      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1332      <tm:topicRef href="#en"/>
1333    </tm:role>
1334  </tm:association>
1335
1336  <tm:association>
1337    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1338    <tm:role>
1339      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1340      <tm:topicRef href="#scoped-country-name-constraint-1"/>
1341    </tm:role>
1342    <tm:role>
1343      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1344      <tm:topicRef href="#de"/>
1345    </tm:role>
1346  </tm:association>
1347 
1348  <!-- scope constraint 2: there can exist the scopes de, en, pl, fr, fin or rus -->
1349  <tm:topic id="scoped-country-name-constraint-2">
1350    <tm:subjectIdentifier href="http://some.where/constraint-psis/scoped-country-name-constraint-2"/>
1351    <tm:instanceOf><tm:topicRef href="#nametypescope-constraint"/></tm:instanceOf>
1352    <tm:occurrence>
1353      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1354      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">0</tm:resourceData>
1355    </tm:occurrence>
1356    <tm:occurrence>
1357      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1358      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">6</tm:resourceData>
1359    </tm:occurrence>
1360  </tm:topic>
1361
1362  <tm:association>
1363    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1364    <tm:role>
1365      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1366      <tm:topicRef href="#scoped-country-name-constraint-2"/>
1367    </tm:role>
1368    <tm:role>
1369      <tm:type><tm:topicRef href="#nametype-role"/></tm:type>
1370      <tm:topicRef href="#country-name"/>
1371    </tm:role>
1372  </tm:association>
1373
1374  <tm:association>
1375    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1376    <tm:role>
1377      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1378      <tm:topicRef href="#scoped-country-name-constraint-2"/>
1379    </tm:role>
1380    <tm:role>
1381      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1382      <tm:topicRef href="#en"/>
1383    </tm:role>
1384  </tm:association>
1385
1386  <tm:association>
1387    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1388    <tm:role>
1389      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1390      <tm:topicRef href="#scoped-country-name-constraint-2"/>
1391    </tm:role>
1392    <tm:role>
1393      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1394      <tm:topicRef href="#pl"/>
1395    </tm:role>
1396  </tm:association>
1397
1398  <tm:association>
1399    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1400    <tm:role>
1401      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1402      <tm:topicRef href="#scoped-country-name-constraint-2"/>
1403    </tm:role>
1404    <tm:role>
1405      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1406      <tm:topicRef href="#fr"/>
1407    </tm:role>
1408  </tm:association>
1409
1410  <tm:association>
1411    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1412    <tm:role>
1413      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1414      <tm:topicRef href="#scoped-country-name-constraint-2"/>
1415    </tm:role>
1416    <tm:role>
1417      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1418      <tm:topicRef href="#fin"/>
1419    </tm:role>
1420  </tm:association>
1421
1422  <tm:association>
1423    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1424    <tm:role>
1425      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1426      <tm:topicRef href="#scoped-country-name-constraint-2"/>
1427    </tm:role>
1428    <tm:role>
1429      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1430      <tm:topicRef href="#rus"/>
1431    </tm:role>
1432  </tm:association>
1433
1434  <tm:association>
1435    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1436    <tm:role>
1437      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1438      <tm:topicRef href="#scoped-country-name-constraint-2"/>
1439    </tm:role>
1440    <tm:role>
1441      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1442      <tm:topicRef href="#de"/>
1443    </tm:role>
1444  </tm:association>
1445
1446  <!-- ===================================================================== -->
1447  <!-- === own datamodel: occurence constraints ============================ -->
1448  <!-- ===================================================================== -->
1449  <!-- every instance of the topic author can have one occurrence of the type
1450       author-info which contains a resourceRef (= datatype #anyURI) -->
1451
1452  <!-- author info occurrence -->
1453  <tm:topic id="author-occurrence-constraint">
1454    <tm:subjectIdentifier href="http://some.where/constraint-psis/author-occurrence-constraint"/>
1455    <tm:instanceOf><tm:topicRef href="#topicoccurrence-constraint"/></tm:instanceOf>
1456    <tm:occurrence>
1457      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1458      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">0</tm:resourceData>
1459    </tm:occurrence>
1460    <tm:occurrence>
1461      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1462      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1463    </tm:occurrence>
1464    <tm:occurrence>
1465      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1466      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.+$</tm:resourceData>
1467    </tm:occurrence>
1468  </tm:topic>
1469
1470  <tm:association>
1471    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1472    <tm:role>
1473      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1474      <tm:topicRef href="#author-occurrence-constraint"/>
1475    </tm:role>
1476    <tm:role>
1477      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1478      <tm:topicRef href="#author"/>
1479    </tm:role>
1480  </tm:association>
1481
1482  <tm:association>
1483    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1484    <tm:role>
1485      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1486      <tm:topicRef href="#author-occurrence-constraint"/>
1487    </tm:role>
1488    <tm:role>
1489      <tm:type><tm:topicRef href="#occurrencetype-role"/></tm:type>
1490      <tm:topicRef href="#author-info"/>
1491    </tm:role>
1492  </tm:association>
1493
1494  <!-- author info occurrence datatype -->
1495  <tm:topic id="author-info-occurrence-datatype-constraint">
1496    <tm:subjectIdentifier href="http://some.where/constraint-psis/author-poem-occurrence-datatype-constraint"/>
1497    <tm:instanceOf><tm:topicRef href="#occurrencedatatype-constraint"/></tm:instanceOf>
1498    <tm:occurrence>
1499      <tm:type><tm:topicRef href="#datatype"/></tm:type>
1500      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#anyURI</tm:resourceData>
1501    </tm:occurrence>
1502  </tm:topic>
1503
1504  <tm:association>
1505    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1506    <tm:role>
1507      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1508      <tm:topicRef href="#author-info-occurrence-datatype-constraint"/>
1509    </tm:role>
1510    <tm:role>
1511      <tm:type><tm:topicRef href="#occurrencetype-role"/></tm:type>
1512      <tm:topicRef href="#author-info"/>
1513    </tm:role>
1514  </tm:association>
1515
1516  <!-- all instances of the type poem has to have exactly one occurrence
1517       of the type poem-content with the datatype string and the either
1518       the scope en or de-->
1519  <tm:topic id="poem-occurrence-constraint">
1520    <tm:subjectIdentifier href="http://some.where/constraint-psis/poem-occurrence-constraint"/>
1521    <tm:instanceOf><tm:topicRef href="#topicoccurrence-constraint"/></tm:instanceOf>
1522    <tm:occurrence>
1523      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1524      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1525    </tm:occurrence>
1526    <tm:occurrence>
1527      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1528      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1529    </tm:occurrence>
1530    <tm:occurrence>
1531      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1532      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">.+</tm:resourceData>
1533    </tm:occurrence>
1534  </tm:topic>
1535
1536  <tm:association>
1537    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1538    <tm:role>
1539      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1540      <tm:topicRef href="#poem-occurrence-constraint"/>
1541    </tm:role>
1542    <tm:role>
1543      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1544      <tm:topicRef href="#poem"/>
1545    </tm:role>
1546  </tm:association>
1547
1548  <tm:association>
1549    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1550    <tm:role>
1551      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1552      <tm:topicRef href="#poem-occurrence-constraint"/>
1553    </tm:role>
1554    <tm:role>
1555      <tm:type><tm:topicRef href="#occurrencetype-role"/></tm:type>
1556      <tm:topicRef href="#poem-content"/>
1557    </tm:role>
1558  </tm:association>
1559
1560  <!-- poem content-occurrence datatype -->
1561  <tm:topic id="poem-content-occurrence-datatype-constraint">
1562    <tm:subjectIdentifier href="http://some.where/constraint-psis/poem-content-occurrence-datatype-constraint"/>
1563    <tm:instanceOf><tm:topicRef href="#occurrencedatatype-constraint"/></tm:instanceOf>
1564    <tm:occurrence>
1565      <tm:type><tm:topicRef href="#datatype"/></tm:type>
1566      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#string</tm:resourceData>
1567    </tm:occurrence>
1568  </tm:topic>
1569
1570  <tm:association>
1571    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1572    <tm:role>
1573      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1574      <tm:topicRef href="#poem-content-occurrence-datatype-constraint"/>
1575    </tm:role>
1576    <tm:role>
1577      <tm:type><tm:topicRef href="#occurrencetype-role"/></tm:type>
1578      <tm:topicRef href="#poem-content"/>
1579    </tm:role>
1580  </tm:association>
1581
1582
1583  <!-- the poem-content-occurrence can only appear once per topictype,
1584       so all topic with this occurrence type must have different
1585       occurrence-values -->
1586  <tm:topic id="unique-poem-occurrence-constraint">
1587    <tm:subjectIdentifier href="http://some.where/constraint-psis/unique-poem-occurrence-constraint"/>
1588    <tm:instanceOf><tm:topicRef href="#uniqueoccurrence-constraint"/></tm:instanceOf>
1589    <tm:occurrence>
1590      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1591      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1592    </tm:occurrence>
1593    <tm:occurrence>
1594      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1595      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1596    </tm:occurrence>
1597    <tm:occurrence>
1598      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1599      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.*$</tm:resourceData>
1600    </tm:occurrence>
1601  </tm:topic>
1602
1603  <tm:association>
1604    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1605    <tm:role>
1606      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1607      <tm:topicRef href="#unique-poem-occurrence-constraint"/>
1608    </tm:role>
1609    <tm:role>
1610      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1611      <tm:topicRef href="#poem"/>
1612    </tm:role>
1613  </tm:association>
1614
1615  <tm:association>
1616    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1617    <tm:role>
1618      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1619      <tm:topicRef href="#unique-poem-occurrence-constraint"/>
1620    </tm:role>
1621    <tm:role>
1622      <tm:type><tm:topicRef href="#occurrencetype-role"/></tm:type>
1623      <tm:topicRef href="#poem-content"/>
1624    </tm:role>
1625  </tm:association>
1626 
1627  <!-- add a scope to the occurrence "poem-content" -->
1628  <tm:topic id="scoped-poem-occurrence-constraint">
1629    <tm:subjectIdentifier href="http://some.where/constraint-psis/scoped-poem-occurrence-constraint"/>
1630    <tm:instanceOf><tm:topicRef href="#occurrencetypescope-constraint"/></tm:instanceOf>
1631    <tm:occurrence>
1632      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1633      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1634    </tm:occurrence>
1635    <tm:occurrence>
1636      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1637      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">2</tm:resourceData>
1638    </tm:occurrence>
1639  </tm:topic>
1640
1641  <tm:association>
1642    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1643    <tm:role>
1644      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1645      <tm:topicRef href="#scoped-poem-occurrence-constraint"/>
1646    </tm:role>
1647    <tm:role>
1648      <tm:type><tm:topicRef href="#occurrencetype-role"/></tm:type>
1649      <tm:topicRef href="#poem-content"/>
1650    </tm:role>
1651  </tm:association>
1652
1653  <tm:association>
1654    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1655    <tm:role>
1656      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1657      <tm:topicRef href="#scoped-poem-occurrence-constraint"/>
1658    </tm:role>
1659    <tm:role>
1660      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1661      <tm:topicRef href="#en"/>
1662    </tm:role>
1663  </tm:association>
1664
1665  <tm:association>
1666    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1667    <tm:role>
1668      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1669      <tm:topicRef href="#scoped-poem-occurrence-constraint"/>
1670    </tm:role>
1671    <tm:role>
1672      <tm:type><tm:topicRef href="#scopetype-role"/></tm:type>
1673      <tm:topicRef href="#de"/>
1674    </tm:role>
1675  </tm:association>
1676
1677  <!-- city population-occurrence -->
1678  <tm:topic id="region-population-occurrence-constraint">
1679    <tm:subjectIdentifier href="http://some.where/constraint-psis/region-population-occurrence-constraint"/>
1680    <tm:instanceOf><tm:topicRef href="#topicoccurrence-constraint"/></tm:instanceOf>
1681    <tm:occurrence>
1682      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1683      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1684    </tm:occurrence>
1685    <tm:occurrence>
1686      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1687      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1688    </tm:occurrence>
1689    <tm:occurrence>
1690      <tm:type><tm:topicRef href="#regexp"/></tm:type>
1691      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">^.+$</tm:resourceData>
1692    </tm:occurrence>
1693  </tm:topic>
1694
1695  <tm:association>
1696    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1697    <tm:role>
1698      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1699      <tm:topicRef href="#region-population-occurrence-constraint"/>
1700    </tm:role>
1701    <tm:role>
1702      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1703      <tm:topicRef href="#region"/>
1704    </tm:role>
1705  </tm:association>
1706
1707  <tm:association>
1708    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1709    <tm:role>
1710      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1711      <tm:topicRef href="#region-population-occurrence-constraint"/>
1712    </tm:role>
1713    <tm:role>
1714      <tm:type><tm:topicRef href="#occurrencetype-role"/></tm:type>
1715      <tm:topicRef href="#region-population"/>
1716    </tm:role>
1717  </tm:association>
1718
1719  <!-- city population-occurrence datatype -->
1720  <tm:topic id="region-population-occurrence-datatype-constraint">
1721    <tm:subjectIdentifier href="http://some.where/constraint-psis/region-population-occurrence-datatype-constraint"/>
1722    <tm:instanceOf><tm:topicRef href="#occurrencedatatype-constraint"/></tm:instanceOf>
1723    <tm:occurrence>
1724      <tm:type><tm:topicRef href="#datatype"/></tm:type>
1725      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#unsignedLong</tm:resourceData>
1726    </tm:occurrence>
1727  </tm:topic>
1728
1729  <tm:association>
1730    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1731    <tm:role>
1732      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1733      <tm:topicRef href="#region-population-occurrence-datatype-constraint"/>
1734    </tm:role>
1735    <tm:role>
1736      <tm:type><tm:topicRef href="#occurrencetype-role"/></tm:type>
1737      <tm:topicRef href="#region-population"/>
1738    </tm:role>
1739  </tm:association>
1740
1741  <!-- ===================================================================== -->
1742  <!-- === own datamodel: association (-role) constraints ================== -->
1743  <!-- ===================================================================== -->
1744  <!-- there exists one asoociation of the type written-by between the types
1745       author and poem. where one role is of type writer which has a player
1746       of type author and another role of type written which owns a player of
1747       type poem -->
1748
1749  <!-- the written role has to appear exactly once in an association of type
1750       written-by -->
1751  <tm:topic id="written-role-constraint">
1752    <tm:subjectIdentifier href="http://some.where/constraint-psis/written-role-constraint"/>
1753    <tm:instanceOf><tm:topicRef href="#associationrole-constraint"/></tm:instanceOf>
1754    <tm:occurrence>
1755      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1756      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1757    </tm:occurrence>
1758    <tm:occurrence>
1759      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1760      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1761    </tm:occurrence>
1762  </tm:topic>
1763
1764  <tm:association>
1765    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1766    <tm:role>
1767      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1768      <tm:topicRef href="#written-role-constraint"/>
1769    </tm:role>
1770    <tm:role>
1771      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
1772      <tm:topicRef href="#written-by"/>
1773    </tm:role>
1774  </tm:association>
1775
1776  <tm:association>
1777    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1778    <tm:role>
1779      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1780      <tm:topicRef href="#written-role-constraint"/>
1781    </tm:role>
1782    <tm:role>
1783      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
1784      <tm:topicRef href="#written"/>
1785    </tm:role>
1786  </tm:association>
1787
1788  <!-- the written role owns a player of the type poem -->
1789  <tm:topic id="written-role-player-constraint">
1790    <tm:subjectIdentifier href="http://some.where/constraint-psis/written-role-player-constraint"/>
1791    <tm:instanceOf><tm:topicRef href="#roleplayer-constraint"/></tm:instanceOf>
1792    <tm:occurrence>
1793      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1794      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1795    </tm:occurrence>
1796    <tm:occurrence>
1797      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1798      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1799    </tm:occurrence>
1800  </tm:topic>
1801
1802  <tm:association>
1803    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1804    <tm:role>
1805      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1806      <tm:topicRef href="#written-role-player-constraint"/>
1807    </tm:role>
1808    <tm:role>
1809      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1810      <tm:topicRef href="#poem"/>
1811    </tm:role>
1812  </tm:association>
1813
1814  <tm:association>
1815    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1816    <tm:role>
1817      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1818      <tm:topicRef href="#written-role-player-constraint"/>
1819    </tm:role>
1820    <tm:role>
1821      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
1822      <tm:topicRef href="#written-by"/>
1823    </tm:role>
1824  </tm:association>
1825
1826  <tm:association>
1827    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1828    <tm:role>
1829      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1830      <tm:topicRef href="#written-role-player-constraint"/>
1831    </tm:role>
1832    <tm:role>
1833      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
1834      <tm:topicRef href="#written"/>
1835    </tm:role>
1836  </tm:association>
1837
1838
1839  <!-- otherrole-constraint:
1840       If there is a role of the type written with a player of the type poem
1841       there must be another role of the type writer with a player of the
1842       type author. -->
1843  <tm:topic id="written-by-otherrole-constraint-for-written">
1844    <tm:subjectIdentifier href="http://some.where/contraint-psis/written-by-otherrole-constraint-for-written"/>
1845    <tm:instanceOf><tm:topicRef href="#otherrole-constraint"/></tm:instanceOf>
1846    <tm:occurrence>
1847      <tm:type>
1848        <tm:topicRef href="#card-min"/>
1849      </tm:type>
1850      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1851    </tm:occurrence>
1852    <tm:occurrence>
1853      <tm:type>
1854        <tm:topicRef href="#card-max"/>
1855      </tm:type>
1856      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1857    </tm:occurrence>
1858  </tm:topic>
1859
1860  <tm:association>
1861    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1862    <tm:role>
1863      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1864      <tm:topicRef href="#written-by-otherrole-constraint-for-written"/>
1865    </tm:role>
1866    <tm:role>
1867      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
1868      <tm:topicRef href="#written-by"/>
1869    </tm:role>
1870  </tm:association>
1871
1872  <tm:association>
1873    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1874    <tm:role>
1875      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1876      <tm:topicRef href="#written-by-otherrole-constraint-for-written"/>
1877    </tm:role>
1878    <tm:role>
1879      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
1880      <tm:topicRef href="#written"/>
1881    </tm:role>
1882  </tm:association>
1883
1884  <tm:association>
1885    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1886    <tm:role>
1887      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1888      <tm:topicRef href="#written-by-otherrole-constraint-for-written"/>
1889    </tm:role>
1890    <tm:role>
1891      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1892      <tm:topicRef href="#poem"/>
1893    </tm:role>
1894  </tm:association>
1895
1896  <tm:association>
1897    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1898    <tm:role>
1899      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1900      <tm:topicRef href="#written-by-otherrole-constraint-for-written"/>
1901    </tm:role>
1902    <tm:role>
1903      <tm:type><tm:topicRef href="#otherroletype-role"/></tm:type>
1904      <tm:topicRef href="#writer"/>
1905    </tm:role>
1906  </tm:association>
1907
1908  <tm:association>
1909    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1910    <tm:role>
1911      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1912      <tm:topicRef href="#written-by-otherrole-constraint-for-written"/>
1913    </tm:role>
1914    <tm:role>
1915      <tm:type><tm:topicRef href="#othertopictype-role"/></tm:type>
1916      <tm:topicRef href="#author"/>
1917    </tm:role>
1918  </tm:association>
1919
1920  <!-- born-in associations have to have one role of the type writer with a
1921       player of the type author. The other role is of type place with the
1922       player of the type region. -->
1923  <!-- place associationrole-constraint -->
1924
1925  <!-- writer associationrole-constraint -->
1926  <tm:topic id="born-in-writer-role-constraint">
1927    <tm:subjectIdentifier href="http://some.where/constraint-psis/born-in-writer-role-constraint"/>
1928    <tm:instanceOf><tm:topicRef href="#associationrole-constraint"/></tm:instanceOf>
1929    <tm:occurrence>
1930      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1931      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1932    </tm:occurrence>
1933    <tm:occurrence>
1934      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1935      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1936    </tm:occurrence>
1937  </tm:topic>
1938
1939  <tm:association>
1940    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1941    <tm:role>
1942      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1943      <tm:topicRef href="#born-in-writer-role-constraint"/>
1944    </tm:role>
1945    <tm:role>
1946      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
1947      <tm:topicRef href="#born-in"/>
1948    </tm:role>
1949  </tm:association>
1950
1951  <tm:association>
1952    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1953    <tm:role>
1954      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1955      <tm:topicRef href="#born-in-writer-role-constraint"/>
1956    </tm:role>
1957    <tm:role>
1958      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
1959      <tm:topicRef href="#writer"/>
1960    </tm:role>
1961  </tm:association>
1962
1963  <!-- place-role roleplayer-constraint -->
1964  <tm:topic id="born-in-writer-role-player-constraint">
1965    <tm:subjectIdentifier href="http://some.where/constraint-psis/born-in-writer-role-player-constraint"/>
1966    <tm:instanceOf><tm:topicRef href="#roleplayer-constraint"/></tm:instanceOf>
1967    <tm:occurrence>
1968      <tm:type><tm:topicRef href="#card-min"/></tm:type>
1969      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1970    </tm:occurrence>
1971    <tm:occurrence>
1972      <tm:type><tm:topicRef href="#card-max"/></tm:type>
1973      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
1974    </tm:occurrence>
1975  </tm:topic>
1976
1977  <tm:association>
1978    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1979    <tm:role>
1980      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1981      <tm:topicRef href="#born-in-writer-role-player-constraint"/>
1982    </tm:role>
1983    <tm:role>
1984      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
1985      <tm:topicRef href="#author"/>
1986    </tm:role>
1987  </tm:association>
1988
1989  <tm:association>
1990    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
1991    <tm:role>
1992      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
1993      <tm:topicRef href="#born-in-writer-role-player-constraint"/>
1994    </tm:role>
1995    <tm:role>
1996      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
1997      <tm:topicRef href="#born-in"/>
1998    </tm:role>
1999  </tm:association>
2000
2001  <tm:association>
2002    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2003    <tm:role>
2004      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2005      <tm:topicRef href="#born-in-writer-role-player-constraint"/>
2006    </tm:role>
2007    <tm:role>
2008      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
2009      <tm:topicRef href="#writer"/>
2010    </tm:role>
2011  </tm:association>
2012
2013  <!-- otherplayer-constraints:
2014       A "born-in" association must have exactly one writer-role with a
2015       player of the type author and one place-role with a player of the
2016       type city. -->
2017  <tm:topic id="born-in-otherrole-constraint-for-writer">
2018    <tm:subjectIdentifier href="http://some.where/contraint-psis/born-in-otherrole-constraint-for-writer"/>
2019    <tm:instanceOf><tm:topicRef href="#otherrole-constraint"/></tm:instanceOf>
2020    <tm:occurrence>
2021      <tm:type>
2022        <tm:topicRef href="#card-min"/>
2023      </tm:type>
2024      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
2025    </tm:occurrence>
2026    <tm:occurrence>
2027      <tm:type>
2028        <tm:topicRef href="#card-max"/>
2029      </tm:type>
2030      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
2031    </tm:occurrence>
2032  </tm:topic>
2033
2034  <tm:association>
2035    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2036    <tm:role>
2037      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2038      <tm:topicRef href="#born-in-otherrole-constraint-for-writer"/>
2039    </tm:role>
2040    <tm:role>
2041      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
2042      <tm:topicRef href="#born-in"/>
2043    </tm:role>
2044  </tm:association>
2045
2046  <tm:association>
2047    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2048    <tm:role>
2049      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2050      <tm:topicRef href="#born-in-otherrole-constraint-for-writer"/>
2051    </tm:role>
2052    <tm:role>
2053      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
2054      <tm:topicRef href="#writer"/>
2055    </tm:role>
2056  </tm:association>
2057
2058  <tm:association>
2059    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2060    <tm:role>
2061      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2062      <tm:topicRef href="#born-in-otherrole-constraint-for-writer"/>
2063    </tm:role>
2064    <tm:role>
2065      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
2066      <tm:topicRef href="#author"/>
2067    </tm:role>
2068  </tm:association>
2069
2070  <tm:association>
2071    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2072    <tm:role>
2073      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2074      <tm:topicRef href="#born-in-otherrole-constraint-for-writer"/>
2075    </tm:role>
2076    <tm:role>
2077      <tm:type><tm:topicRef href="#otherroletype-role"/></tm:type>
2078      <tm:topicRef href="#place"/>
2079    </tm:role>
2080  </tm:association>
2081
2082  <tm:association>
2083    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2084    <tm:role>
2085      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2086      <tm:topicRef href="#born-in-otherrole-constraint-for-writer"/>
2087    </tm:role>
2088    <tm:role>
2089      <tm:type><tm:topicRef href="#othertopictype-role"/></tm:type>
2090      <tm:topicRef href="#region"/>
2091    </tm:role>
2092  </tm:association>
2093
2094
2095  <!-- located-in associations have to have one role of the type container with
2096       a player of the type country. The other role is of type containee with
2097       a player of the type city. -->
2098  <!-- place associationrole-constraint -->
2099  <tm:topic id="located-in-container-role-constraint">
2100    <tm:subjectIdentifier href="http://some.where/constraint-psis/located-in-container-role-constraint"/>
2101    <tm:instanceOf><tm:topicRef href="#associationrole-constraint"/></tm:instanceOf>
2102    <tm:occurrence>
2103      <tm:type><tm:topicRef href="#card-min"/></tm:type>
2104      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
2105    </tm:occurrence>
2106    <tm:occurrence>
2107      <tm:type><tm:topicRef href="#card-max"/></tm:type>
2108      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
2109    </tm:occurrence>
2110  </tm:topic>
2111
2112  <tm:association>
2113    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2114    <tm:role>
2115      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2116      <tm:topicRef href="#located-in-container-role-constraint"/>
2117    </tm:role>
2118    <tm:role>
2119      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
2120      <tm:topicRef href="#located-in"/>
2121    </tm:role>
2122  </tm:association>
2123
2124  <tm:association>
2125    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2126    <tm:role>
2127      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2128      <tm:topicRef href="#located-in-container-role-constraint"/>
2129    </tm:role>
2130    <tm:role>
2131      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
2132      <tm:topicRef href="#container"/>
2133    </tm:role>
2134  </tm:association>
2135
2136  <!-- place-role roleplayer-constraint -->
2137  <tm:topic id="located-in-container-role-player-constraint">
2138    <tm:subjectIdentifier href="http://some.where/constraint-psis/located-in-container-role-player-constraint"/>
2139    <tm:instanceOf><tm:topicRef href="#roleplayer-constraint"/></tm:instanceOf>
2140    <tm:occurrence>
2141      <tm:type><tm:topicRef href="#card-min"/></tm:type>
2142      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
2143    </tm:occurrence>
2144    <tm:occurrence>
2145      <tm:type><tm:topicRef href="#card-max"/></tm:type>
2146      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
2147    </tm:occurrence>
2148  </tm:topic>
2149
2150  <tm:association>
2151    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2152    <tm:role>
2153      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2154      <tm:topicRef href="#located-in-container-role-player-constraint"/>
2155    </tm:role>
2156    <tm:role>
2157      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
2158      <tm:topicRef href="#country"/>
2159    </tm:role>
2160  </tm:association>
2161
2162  <tm:association>
2163    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2164    <tm:role>
2165      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2166      <tm:topicRef href="#located-in-container-role-player-constraint"/>
2167    </tm:role>
2168    <tm:role>
2169      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
2170      <tm:topicRef href="#located-in"/>
2171    </tm:role>
2172  </tm:association>
2173
2174  <tm:association>
2175    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2176    <tm:role>
2177      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2178      <tm:topicRef href="#located-in-container-role-player-constraint"/>
2179    </tm:role>
2180    <tm:role>
2181      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
2182      <tm:topicRef href="#container"/>
2183    </tm:role>
2184  </tm:association>
2185
2186
2187  <!-- otherplayer-constraints:
2188       A "located-in" association must have exactly one container-role with a
2189       player of the type country and one containee-role with a player of the
2190       type region. -->
2191  <tm:topic id="located-in-otherrole-constraint-for-container">
2192    <tm:subjectIdentifier href="http://some.where/contraint-psis/located-in-otherrole-constraint-for-container"/>
2193    <tm:instanceOf><tm:topicRef href="#otherrole-constraint"/></tm:instanceOf>
2194    <tm:occurrence>
2195      <tm:type>
2196        <tm:topicRef href="#card-min"/>
2197      </tm:type>
2198      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
2199    </tm:occurrence>
2200    <tm:occurrence>
2201      <tm:type>
2202        <tm:topicRef href="#card-max"/>
2203      </tm:type>
2204      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedInt">1</tm:resourceData>
2205    </tm:occurrence>
2206  </tm:topic>
2207
2208  <tm:association>
2209    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2210    <tm:role>
2211      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2212      <tm:topicRef href="#located-in-otherrole-constraint-for-container"/>
2213    </tm:role>
2214    <tm:role>
2215      <tm:type><tm:topicRef href="#associationtype-role"/></tm:type>
2216      <tm:topicRef href="#located-in"/>
2217    </tm:role>
2218  </tm:association>
2219
2220  <tm:association>
2221    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2222    <tm:role>
2223      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2224      <tm:topicRef href="#located-in-otherrole-constraint-for-container"/>
2225    </tm:role>
2226    <tm:role>
2227      <tm:type><tm:topicRef href="#roletype-role"/></tm:type>
2228      <tm:topicRef href="#container"/>
2229    </tm:role>
2230  </tm:association>
2231
2232  <tm:association>
2233    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2234    <tm:role>
2235      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2236      <tm:topicRef href="#located-in-otherrole-constraint-for-container"/>
2237    </tm:role>
2238    <tm:role>
2239      <tm:type><tm:topicRef href="#topictype-role"/></tm:type>
2240      <tm:topicRef href="#country"/>
2241    </tm:role>
2242  </tm:association>
2243
2244  <tm:association>
2245    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2246    <tm:role>
2247      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2248      <tm:topicRef href="#located-in-otherrole-constraint-for-container"/>
2249    </tm:role>
2250    <tm:role>
2251      <tm:type><tm:topicRef href="#otherroletype-role"/></tm:type>
2252      <tm:topicRef href="#containee"/>
2253    </tm:role>
2254  </tm:association>
2255
2256  <tm:association>
2257    <tm:type><tm:topicRef href="#applies-to"/></tm:type>
2258    <tm:role>
2259      <tm:type><tm:topicRef href="#constraint-role"/></tm:type>
2260      <tm:topicRef href="#located-in-otherrole-constraint-for-container"/>
2261    </tm:role>
2262    <tm:role>
2263      <tm:type><tm:topicRef href="#othertopictype-role"/></tm:type>
2264      <tm:topicRef href="#region"/>
2265    </tm:role>
2266  </tm:association>
2267
2268
2269  <!-- ===================================================================== -->
2270  <!-- === the "user's" topic map ========================================== -->
2271  <!-- ===================================================================== -->
2272  <tm:topic id="germany">
2273    <tm:subjectIdentifier href="http://some.where/psis/country/germany"/>
2274    <tm:instanceOf><tm:topicRef href="#country"/></tm:instanceOf>
2275    <tm:name>
2276      <tm:type><tm:topicRef href="#country-name"/></tm:type>
2277      <tm:scope><tm:topicRef href="#de"/></tm:scope>
2278      <tm:value>Deutschland</tm:value>
2279    </tm:name>
2280  </tm:topic>
2281
2282  <tm:topic id="poland">
2283    <tm:subjectIdentifier href="http://some.where/psis/country/poland"/>
2284    <tm:instanceOf><tm:topicRef href="#country"/></tm:instanceOf>
2285    <tm:name>
2286      <tm:type><tm:topicRef href="#country-name"/></tm:type>
2287      <tm:scope><tm:topicRef href="#de"/></tm:scope>
2288      <tm:value>Polen</tm:value>
2289    </tm:name>
2290  </tm:topic>
2291
2292  <tm:topic id="frankfurt_am_main">
2293    <tm:subjectIdentifier href="http://some.where/psis/region/frankfurt_am_main"/>
2294    <tm:instanceOf><tm:topicRef href="#metropolis"/></tm:instanceOf>
2295    <tm:name>
2296      <tm:type><tm:topicRef href="#region-name"/></tm:type>
2297      <tm:value>Frankfurt am Main</tm:value>
2298    </tm:name>
2299    <tm:occurrence>
2300      <tm:type><tm:topicRef href="#region-population"/></tm:type>
2301      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">659021</tm:resourceData>
2302    </tm:occurrence>
2303  </tm:topic>
2304
2305  <tm:association>
2306    <tm:type><tm:topicRef href="#located-in"/></tm:type>
2307    <tm:role>
2308      <tm:type><tm:topicRef href="#container"/></tm:type>
2309      <tm:topicRef href="#germany"/>
2310    </tm:role>
2311    <tm:role>
2312      <tm:type><tm:topicRef href="#containee"/></tm:type>
2313      <tm:topicRef href="#frankfurt_am_main"/>
2314    </tm:role>
2315  </tm:association>
2316
2317  <tm:topic id="marbach_am_neckar">
2318    <tm:subjectIdentifier href="http://some.where/psis/region/marbach_am_neckar"/>
2319    <tm:instanceOf><tm:topicRef href="#city"/></tm:instanceOf>
2320    <tm:name>
2321      <tm:type><tm:topicRef href="#region-name"/></tm:type>
2322      <tm:value>Marbach am Neckar</tm:value>
2323    </tm:name>
2324    <tm:occurrence>
2325      <tm:type><tm:topicRef href="#region-population"/></tm:type>
2326      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">15601</tm:resourceData>
2327    </tm:occurrence>
2328  </tm:topic>
2329
2330  <tm:association>
2331    <tm:type><tm:topicRef href="#located-in"/></tm:type>
2332    <tm:role>
2333      <tm:type><tm:topicRef href="#container"/></tm:type>
2334      <tm:topicRef href="#germany"/>
2335    </tm:role>
2336    <tm:role>
2337      <tm:type><tm:topicRef href="#containee"/></tm:type>
2338      <tm:topicRef href="#marbach_am_neckar"/>
2339    </tm:role>
2340  </tm:association>
2341
2342  <tm:topic id="lubowitz">
2343    <tm:subjectIdentifier href="http://some.where/psis/region/lubowitz"/>
2344    <tm:instanceOf><tm:topicRef href="#city"/></tm:instanceOf>
2345    <tm:name>
2346      <tm:type><tm:topicRef href="#region-name"/></tm:type>
2347      <tm:value>Lubowitz</tm:value>
2348    </tm:name>
2349    <tm:occurrence>
2350      <tm:type><tm:topicRef href="#region-population"/></tm:type>
2351      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">365</tm:resourceData>
2352    </tm:occurrence>
2353  </tm:topic>
2354
2355  <tm:association>
2356    <tm:type><tm:topicRef href="#located-in"/></tm:type>
2357    <tm:role>
2358      <tm:type><tm:topicRef href="#container"/></tm:type>
2359      <tm:topicRef href="#poland"/>
2360    </tm:role>
2361    <tm:role>
2362      <tm:type><tm:topicRef href="#containee"/></tm:type>
2363      <tm:topicRef href="#lubowitz"/>
2364    </tm:role>
2365  </tm:association>
2366
2367  <tm:topic id="eichendorff">
2368    <tm:subjectIdentifier href="http://some.where/psis/author/eichendorff"/>
2369    <tm:instanceOf><tm:topicRef href="#author"/></tm:instanceOf>
2370    <tm:name>
2371      <tm:type><tm:topicRef href="#first-name"/></tm:type>
2372      <tm:value>Joseph Karl Benedikt</tm:value>
2373    </tm:name>
2374    <tm:name>
2375      <tm:type><tm:topicRef href="#last-name"/></tm:type>
2376      <tm:value>von Eichendorff</tm:value>
2377    </tm:name>
2378  </tm:topic>
2379
2380  <tm:topic id="goethe">
2381    <tm:subjectIdentifier href="http://some.where/psis/author/goethe"/> <!-- must have a psi of this form -->
2382    <tm:subjectIdentifier href="http://some.where/psis/persons/goethe"/> <!-- can own psis of any form -->
2383    <tm:instanceOf><tm:topicRef href="#author"/></tm:instanceOf> <!-- must be an instanceOf author -->
2384    <tm:name>
2385      <tm:type><tm:topicRef href="#first-name"/></tm:type> <!-- must contain a name of the type first-name -->
2386      <tm:value>Johann Wolfgang</tm:value>
2387    </tm:name>
2388    <tm:name>
2389      <tm:type><tm:topicRef href="#last-name"/></tm:type> <!-- must contain a name of the type last-name -->
2390      <tm:value>von Goethe</tm:value>
2391    </tm:name>
2392    <tm:occurrence>
2393      <tm:type><tm:topicRef href="#author-info"/></tm:type> <!-- can own an occurrence of the type autor-info with the datatype anyURI -->
2394      <tm:resourceRef href="http://de.wikipedia.org/wiki/Johann_Wolfgang_von_Goethe"/>
2395    </tm:occurrence>
2396  </tm:topic>
2397
2398  <tm:association>
2399    <tm:itemIdentity href="born-in-frankfurt-goethe"/>
2400    <tm:type><tm:topicRef href="#born-in"/></tm:type>
2401    <tm:role>
2402      <tm:type><tm:topicRef href="#place"/></tm:type>
2403      <tm:topicRef href="#frankfurt_am_main"/>
2404    </tm:role>
2405    <tm:role>
2406      <tm:type><tm:topicRef href="#writer"/></tm:type>
2407      <tm:topicRef href="#goethe"/>
2408    </tm:role>
2409  </tm:association> 
2410
2411  <tm:topic id="schiller">
2412    <tm:subjectIdentifier href="http://some.where/psis/author/schiller"/> <!-- must have a psi of this form -->
2413    <tm:instanceOf><tm:topicRef href="#author"/></tm:instanceOf> <!-- must be an instanceOf author -->
2414    <tm:name>
2415      <tm:type><tm:topicRef href="#first-name"/></tm:type> <!-- must contain a name of the type first-name -->
2416      <tm:value>Johann Christoph Friedrich</tm:value>
2417    </tm:name>
2418    <tm:name>
2419      <tm:type><tm:topicRef href="#last-name"/></tm:type> <!-- must contain a name of the type last-name -->
2420      <tm:value>von Schiller</tm:value>
2421    </tm:name>
2422    <tm:occurrence>
2423      <tm:type><tm:topicRef href="#author-info"/></tm:type> <!-- can own an occurrence of the type autor-info with the datatype anyURI -->
2424      <tm:resourceRef href="http://de.wikipedia.org/wiki/Schiller"/>
2425    </tm:occurrence>
2426  </tm:topic>
2427
2428  <tm:association>
2429    <tm:type><tm:topicRef href="#born-in"/></tm:type>
2430    <tm:role>
2431      <tm:type><tm:topicRef href="#place"/></tm:type>
2432      <tm:topicRef href="#marbach_am_neckar"/>
2433    </tm:role>
2434    <tm:role>
2435      <tm:type><tm:topicRef href="#writer"/></tm:type>
2436      <tm:topicRef href="#schiller"/>
2437    </tm:role>
2438  </tm:association>
2439
2440  <tm:topic id="zauberlehrling">
2441    <tm:subjectIdentifier href="http://some.where/psis/poem/zauberlehrling"/> <!-- must have a psi of this form -->
2442    <tm:subjectIdentifier href="http://some.where/psis/der_zauberlehrling"/> <!-- can own psis of any form -->
2443    <tm:instanceOf>
2444      <tm:topicRef href="#poem"/></tm:instanceOf> <!-- must be an instanceOf poem -->
2445    <tm:name>
2446      <tm:type><tm:topicRef href="#title"/></tm:type> <!-- must have a name of the type title -->
2447      <tm:value>Der Zauberlehrling</tm:value>
2448    </tm:name>
2449    <tm:occurrence>
2450      <tm:type><tm:topicRef href="#poem-content"/></tm:type> <!-- must have an occurrence of the type poem-content with the scope de or en -->
2451      <tm:scope><tm:topicRef href="#de"/></tm:scope>
2452      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Hat der alte Hexenmeister
2453sich doch einmal wegbegeben!
2454Und nun sollen seine Geister
2455auch nach meinem Willen leben.
2456Seine Wort und Werke
2457merkt ich und den Brauch,
2458und mit GeistesstÀrke
2459tu ich Wunder auch.
2460
2461Walle! walle
2462Manche Strecke,
2463daß, zum Zwecke,
2464Wasser fließe
2465und mit reichem, vollem Schwalle
2466zu dem Bade sich ergieße.
2467
2468Und nun komm, du alter Besen!
2469Nimm die schlechten LumpenhÃŒllen;
2470bist schon lange Knecht gewesen:
2471nun erfÃŒlle meinen Willen!
2472Auf zwei Beinen stehe,
2473oben sei ein Kopf,
2474eile nun und gehe
2475mit dem Wassertopf!
2476
2477Walle! walle
2478manche Strecke,
2479daß, zum Zwecke,
2480Wasser fließe
2481und mit reichem, vollem Schwalle
2482zu dem Bade sich ergieße.
2483
2484Seht, er lÀuft zum Ufer nieder,
2485Wahrlich! ist schon an dem Flusse,
2486und mit Blitzesschnelle wieder
2487ist er hier mit raschem Gusse.
2488Schon zum zweiten Male!
2489Wie das Becken schwillt!
2490Wie sich jede Schale
2491voll mit Wasser fÃŒllt!
2492
2493Stehe! stehe!
2494denn wir haben
2495deiner Gaben
2496vollgemessen! -
2497Ach, ich merk es! Wehe! wehe!
2498Hab ich doch das Wort vergessen!
2499
2500Ach, das Wort, worauf am Ende
2501er das wird, was er gewesen.
2502Ach, er lÀuft und bringt behende!
2503WÀrst du doch der alte Besen!
2504Immer neue GÃŒsse
2505bringt er schnell herein,
2506Ach! und hundert FlÃŒsse
2507stÃŒrzen auf mich ein.
2508
2509Nein, nicht lÀnger
2510kann ichs lassen;
2511will ihn fassen.
2512Das ist TÃŒcke!
2513Ach! nun wird mir immer bÀnger!
2514Welche Mine! welche Blicke!
2515
2516O du Ausgeburt der Hölle!
2517Soll das ganze Haus ersaufen?
2518Seh ich ÃŒber jede Schwelle
2519doch schon Wasserströme laufen.
2520Ein verruchter Besen,
2521der nicht hören will!
2522Stock, der du gewesen,
2523steh doch wieder still!
2524
2525Willst am Ende
2526gar nicht lassen?
2527Will dich fassen,
2528will dich halten
2529und das alte Holz behende
2530mit dem scharfen Beile spalten.
2531
2532Seht da kommt er schleppend wieder!
2533Wie ich mich nur auf dich werfe,
2534gleich, o Kobold, liegst du nieder;
2535krachend trifft die glatte SchÀrfe.
2536Wahrlich, brav getroffen!
2537Seht, er ist entzwei!
2538Und nun kann ich hoffen,
2539und ich atme frei!
2540
2541Wehe! wehe!
2542Beide Teile
2543stehn in Eile
2544schon als Knechte
2545völlig fertig in die Höhe!
2546Helft mir, ach! ihr hohen MÀchte!
2547
2548Und sie laufen! Naß und nÀsser
2549wirds im Saal und auf den Stufen.
2550Welch entsetzliches GewÀsser!
2551Herr und Meister! hör mich rufen! -
2552Ach, da kommt der Meister!
2553Herr, die Not ist groß!
2554Die ich rief, die Geister
2555werd ich nun nicht los.
2556
2557"In die Ecke,
2558Besen, Besen!
2559Seids gewesen.
2560Denn als Geister
2561ruft euch nur zu diesem Zwecke,
2562erst hervor der alte Meister."</tm:resourceData>
2563    </tm:occurrence>
2564  </tm:topic>
2565
2566  <tm:topic id="erlkoenig">
2567    <tm:subjectIdentifier href="http://some.where/psis/poem/erlkoenig"/> <!-- must have a psi of this form -->
2568    <tm:instanceOf><tm:topicRef href="#poem"/></tm:instanceOf> <!-- must be an instanceOf poem -->
2569    <tm:name>
2570      <tm:type><tm:topicRef href="#title"/></tm:type> <!-- must have a name of the type title -->
2571      <tm:value>Der Erlkönig</tm:value>
2572    </tm:name>
2573    <tm:occurrence>
2574      <tm:type><tm:topicRef href="#poem-content"/></tm:type> <!-- must have an occurrence of the type poem-content with the scope de or en -->
2575      <tm:scope><tm:topicRef href="#en"/></tm:scope>
2576      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Who rides there so late through the night dark and drear?
2577The father it is, with his infant so dear;
2578He holdeth the boy tightly clasp'd in his arm,
2579He holdeth him safely, he keepeth him warm.
2580
2581"My son, wherefore seek'st thou thy face thus to hide?"
2582"Look, father, the Erl-King is close by our side!
2583Dost see not the Erl-King, with crown and with train?"
2584"My son, 'tis the mist rising over the plain."
2585
2586"Oh, come, thou dear infant! oh come thou with me!
2587For many a game I will play there with thee;
2588On my strand, lovely flowers their blossoms unfold,
2589My mother shall grace thee with garments of gold."
2590
2591"My father, my father, and dost thou not hear
2592The words that the Erl-King now breathes in mine ear?"
2593"Be calm, dearest child, 'tis thy fancy deceives;
2594'Tis the sad wind that sighs through the withering leaves."
2595
2596"Wilt go, then, dear infant, wilt go with me there?
2597My daughters shall tend thee with sisterly care
2598My daughters by night their glad festival keep,
2599They'll dance thee, and rock thee, and sing thee to sleep."
2600
2601"My father, my father, and dost thou not see,
2602How the Erl-King his daughters has brought here for me?"
2603"My darling, my darling, I see it aright,
2604'Tis the aged grey willows deceiving thy sight."
2605
2606"I love thee, I'm charm'd by thy beauty, dear boy!
2607And if thou'rt unwilling, then force I'll employ."
2608"My father, my father, he seizes me fast,
2609For sorely the Erl-King has hurt me at last."
2610
2611The father now gallops, with terror half wild,
2612He grasps in his arms the poor shuddering child;
2613He reaches his courtyard with toil and with dread,--
2614The child in his arms finds he motionless, dead.</tm:resourceData>
2615    </tm:occurrence>
2616  </tm:topic>
2617
2618  <tm:association>
2619    <tm:itemIdentity href="written-by-zauberlehrling-goethe"/>
2620    <tm:type><tm:topicRef href="#written-by"/></tm:type>
2621    <tm:role>
2622      <tm:type><tm:topicRef href="#writer"/></tm:type>
2623      <tm:topicRef href="#goethe"/>
2624    </tm:role>
2625    <tm:role>
2626      <tm:type><tm:topicRef href="#written"/></tm:type>
2627      <tm:topicRef href="#zauberlehrling"/>
2628    </tm:role>
2629  </tm:association>
2630
2631  <tm:association>
2632    <tm:itemIdentity href="written-by-erlkoenig-goethe"/>
2633    <tm:type><tm:topicRef href="#written-by"/></tm:type>
2634    <tm:role>
2635      <tm:type><tm:topicRef href="#writer"/></tm:type>
2636      <tm:topicRef href="#goethe"/>
2637    </tm:role>
2638    <tm:role>
2639      <tm:type><tm:topicRef href="#written"/></tm:type>
2640      <tm:topicRef href="#erlkoenig"/>
2641    </tm:role>
2642  </tm:association>
2643
2644  <tm:topic id="resignation">
2645    <tm:subjectIdentifier href="http://some.where/psis/poem/resignation"/> <!-- must have a psi of this form -->
2646    <tm:instanceOf><tm:topicRef href="#poem"/></tm:instanceOf> <!-- must be an instanceOf poem -->
2647    <tm:name>
2648      <tm:type><tm:topicRef href="#title"/></tm:type> <!-- must have a name of the type title -->
2649      <tm:value>Resignation - Eine Phantasie</tm:value>
2650    </tm:name>
2651    <tm:occurrence>
2652      <tm:type><tm:topicRef href="#poem-content"/></tm:type> <!-- must have an occurrence of the type poem-content with the scope de or en -->
2653      <tm:scope><tm:topicRef href="#de"/></tm:scope>
2654      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Auch ich war in Arkadien geboren,
2655Auch mir hat die Natur
2656An meiner Wiege Freude zugeschworen,
2657Auch ich war in Arkadien geboren,
2658Doch TrÀnen gab der kurze Lenz mir nur.
2659
2660Des Lebens Mai blÃŒht einmal und nicht wieder,
2661Mir hat er abgeblÃŒht.
2662Der stille Gott - o weinet, meine BrÃŒder -
2663Der stille Gott taucht meine Fackel nieder,
2664Und die Erscheinung flieht.
2665
2666Da steh ich schon auf deiner SchauerbrÃŒcke,
2667EhrwÃŒrdge Geistermutter - Ewigkeit.
2668Empfange meinen Vollmachtbrief zum GlÃŒcke,
2669Ich bring ihn unerbrochen dir zurÃŒcke,
2670Mein Lauf ist aus. Ich weiß von keiner Seligkeit.
2671
2672Vor deinem Thron erheb ich meine Klage,
2673VerhÃŒllte Richterin.
2674Auf jenem Stern ging eine frohe Sage,
2675Du thronest hier mit des Gerichtes Waage
2676Und nennest dich Vergelterin.
2677
2678Hier - spricht man - warten Schrecken auf den Bösen,
2679Und Freuden auf den Redlichen.
2680Des Herzens KrÃŒmmen werdest du entblößen,
2681Der Vorsicht RÀtsel werdest du mir lösen
2682Und Rechnung halten mit dem Leidenden.
2683
2684Hier öffne sich die Heimat dem Verbannten,
2685Hier endige des Dulders Dornenbahn.
2686Ein Götterkind, das sie mir Wahrheit nannten,
2687Die meisten flohen, wenige nur kannten,
2688Hielt meines Lebens raschen ZÃŒgel an.
2689
2690»Ich zahle dir in einem andern Leben,
2691Gib deine Jugend mir!
2692Nichts kann ich dir als diese Weisung geben.«
2693Ich nahm die Weisung auf das andre Leben,
2694Und meiner Jugend Freuden gab ich ihr.
2695
2696»Gib mir das Weib, so teuer deinem Herzen,
2697Gib deine Laura mir.
2698Jenseits der GrÀber wuchern deine Schmerzen.« -
2699Ich riß sie blutend aus dem wunden Herzen
2700Und weinte laut und gab sie ihr.
2701
2702»Du siehst die Zeit nach jenen Ufern fliegen,
2703Die blÃŒhende Natur
2704Bleibt hinter ihr - ein welker Leichnam - liegen.
2705Wenn Erd und Himmel trÃŒmmernd auseinanderfliegen,
2706Daran erkenne den erfÌllten Schwur.«
2707
2708»Die Schuldverschreibung lautet an die Toten«,
2709HohnlÀchelte die Welt,
2710»Die LÌgnerin, gedungen von Despoten,
2711Hat fÃŒr die Wahrheit Schatten dir geboten,
2712Du bist nicht mehr, wenn dieser Schein verfÀllt.«
2713
2714Frech witzelte das Schlangenheer der Spötter:
2715»Vor einem Wahn, den nur VerjÀhrung weiht,
2716Erzitterst du? Was sollen deine Götter,
2717Des kranken Weltplans schlau erdachte Retter,
2718Die Menschenwitz des Menschen Notdurft leiht?
2719
2720Ein Gaukelspiel, ohnmÀchtigen GewÌrmen
2721Vom MÀchtigen gegönnt,
2722Schreckfeuer, angesteckt auf hohen TÃŒrmen,
2723Die Phantasie des TrÀumers zu bestÌrmen,
2724Wo des Gesetzes Fackel dunkel brennt.
2725
2726Was heißt die Zukunft, die uns GrÀber decken?
2727Die Ewigkeit, mit der du eitel prangst?
2728EhrwÃŒrdig nur, weil schlaue HÃŒllen sie verstecken,
2729Der Riesenschatten unsrer eignen Schrecken
2730Im hohlen Spiegel der Gewissensangst;
2731
2732Ein LÃŒgenbild lebendiger Gestalten,
2733Die Mumie der Zeit,
2734Vom Balsamgeist der Hoffnung in den kalten
2735Behausungen des Grabes hingehalten,
2736Das nennt dein Fieberwahn - Unsterblichkeit?
2737
2738FÃŒr Hoffnungen - Verwesung straft sie LÃŒgen -
2739Gabst du gewisse GÃŒter hin?
2740Sechstausend Jahre hat der Tod geschwiegen,
2741Kam je ein Leichnam aus der Gruft gestiegen,
2742Der Meldung tat von der Vergelterin?" -
2743
2744Ich sah die Zeit nach deinen Ufern fliegen,
2745Die blÃŒhende Natur
2746Blieb hinter ihr, ein welker Leichnam, liegen,
2747Kein Toter kam aus seiner Gruft gestiegen,
2748Und fest vertraut ich auf den Götterschwur.
2749
2750All meine Freuden hab ich dir geschlachtet,
2751Jetzt werf ich mich vor deinen Richterthron.
2752Der Menge Spott hab ich beherzt verachtet,
2753Nur deine GÃŒter hab ich groß geachtet,
2754Vergelterin, ich fodre meinen Lohn.
2755
2756"Mit gleicher Liebe lieb ich meine Kinder!"
2757Rief unsichtbar ein Genius.
2758"Zwei Blumen", rief er, "- hört es, Menschenkinder -
2759Zwei Blumen blÃŒhen fÃŒr den weisen Finder,
2760Sie heißen Hoffnung und Genuß.
2761
2762Wer dieser Blumen eine brach, begehre
2763Die andre Schwester nicht.
2764Genieße, wer nicht glauben kann. Die Lehre
2765Ist ewig wie die Welt. Wer glauben kann, entbehre.
2766Die Weltgeschichte ist das Weltgericht.
2767
2768Du hast gehofft, dein Lohn ist abgetragen,
2769Dein Glaube war dein zugewognes GlÃŒck.
2770Du konntest deine Weisen fragen,
2771Was man von der Minute ausgeschlagen,
2772Gibt keine Ewigkeit zurÃŒck."</tm:resourceData>
2773    </tm:occurrence>
2774  </tm:topic>
2775
2776  <tm:association>
2777    <tm:itemIdentity href="written-by-association-shiller-resignation"/>
2778    <tm:type><tm:topicRef href="#written-by"/></tm:type>
2779    <tm:role>
2780      <tm:itemIdentity href="writer-role-schiller"/>
2781      <tm:type><tm:topicRef href="#writer"/></tm:type>
2782      <tm:topicRef href="#schiller"/>
2783    </tm:role>
2784    <tm:role>
2785      <tm:itemIdentity href="written-role-resignation"/>
2786      <tm:type><tm:topicRef href="#written"/></tm:type>
2787      <tm:topicRef href="#resignation"/>
2788    </tm:role>
2789  </tm:association>
2790
2791  <tm:topic id="mondnacht">
2792    <tm:subjectIdentifier href="http://some.where/psis/poem/mondnacht"/> <!-- must have a psi of this form -->
2793    <tm:instanceOf><tm:topicRef href="#poem"/></tm:instanceOf> <!-- must be an instanceOf poem -->
2794    <tm:name>
2795      <tm:type><tm:topicRef href="#title"/></tm:type> <!-- must have a name of the type title -->
2796      <tm:value>Mondnacht</tm:value>
2797    </tm:name>
2798    <tm:occurrence>
2799      <tm:type><tm:topicRef href="#poem-content"/></tm:type> <!-- must have an occurrence of the type poem-content with the scope de or en -->
2800      <tm:scope><tm:topicRef href="#de"/></tm:scope>
2801      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Es war, als hÀtt' der Himmel
2802Die Erde still gekÃŒsst,
2803Dass sie im BlÃŒtenschimmer
2804Von ihm nun trÀumen mÌsst'.
2805
2806Die Luft ging durch die Felder,
2807Die Ähren wogten sacht,
2808Es rauschten leis' die WÀlder,
2809So sternklar war die Nacht.
2810
2811Und meine Seele spannte
2812Weit ihre FlÃŒgel aus,
2813Flog durch die stillen Lande,
2814Als flöge sie nach Haus.</tm:resourceData>
2815    </tm:occurrence>
2816  </tm:topic>
2817
2818  <tm:association>
2819    <tm:type><tm:topicRef href="#written-by"/></tm:type>
2820    <tm:role>
2821      <tm:type><tm:topicRef href="#writer"/></tm:type>
2822      <tm:topicRef href="#eichendorff"/>
2823    </tm:role>
2824    <tm:role>
2825      <tm:type><tm:topicRef href="#written"/></tm:type>
2826      <tm:topicRef href="#mondnacht"/>
2827    </tm:role>
2828  </tm:association>
2829
2830</tm:topicMap>
Note: See TracBrowser for help on using the repository browser.