source: trunk/src/unit_tests/sparql_test.xtm

Last change on this file was 404, checked in by lgiessmann, 13 years ago

TM-SPARQL: finsihed the unit-tests for the special-uri tms:value => fixed a bug when '<date>'xml-date is given

File size: 9.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- ======================================================================= -->
3<!--  Isidorus                                                               -->
4<!--  (c) 2008-2010 Marc Kuester, Christoph Ludwig, Lukas Georgieff          -->
5<!--                                                                         -->
6<!--  Isidorus is freely distributable under the LLGPL license.              -->
7<!--  This ajax module uses the frameworks PrototypeJs and Scriptaculous,    -->
8<!--  both are distributed under the MIT license.                            -->
9<!--  You can find a detailed description in trunk/docs/LLGPL-LICENSE.txt,   -->
10<!--  trunk/docs/LGPL-LICENSE.txt and in                                     -->
11<!--  trunk/src/ajax/javascripts/external/MIT-LICENSE.txt.                   -->
12<!-- ======================================================================= -->
13
14<tm:topicMap version="2.0" xmlns:tm="http://www.topicmaps.org/xtm/">
15  <tm:topic id="topictype">
16    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/topic-type"/>
17    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
18  </tm:topic>
19
20  <tm:topic id="occurrencetype">
21    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/occurrence-type"/>
22    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
23  </tm:topic>
24
25  <tm:topic id="associationtype">
26    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/association-type"/>
27    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
28  </tm:topic>
29
30  <tm:topic id="written-by">
31    <tm:subjectIdentifier href="http://some.where/tmsparql/written-by"/>
32    <tm:instanceOf><tm:topicRef href="#associationtype"/></tm:instanceOf>
33  </tm:topic>
34
35  <tm:topic id="roletype">
36    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/role-type"/>
37    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
38  </tm:topic>
39
40  <tm:topic id="written">
41    <tm:subjectIdentifier href="http://some.where/tmsparql/written"/>
42    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
43  </tm:topic>
44
45  <tm:topic id="writer">
46    <tm:subjectIdentifier href="http://some.where/tmsparql/writer"/>
47    <tm:instanceOf><tm:topicRef href="#roletype"/></tm:instanceOf>
48  </tm:topic>
49
50  <tm:topic id="nametype">
51    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/name-type"/>
52    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
53  </tm:topic>
54
55  <tm:topic id="scopetype">
56    <tm:subjectIdentifier href="http://psi.topicmaps.org/tmcl/scope-type"/>
57    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
58  </tm:topic>
59
60  <tm:topic id="author">
61    <tm:subjectIdentifier href="http://some.where/tmsparql/author"/>
62    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
63  </tm:topic>
64
65  <tm:topic id="poem">
66    <tm:subjectIdentifier href="http://some.where/tmsparql/poem"/>
67    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
68  </tm:topic>
69
70  <tm:topic id="first-name">
71    <tm:subjectIdentifier href="http://some.where/tmsparql/first-name"/>
72    <tm:instanceOf><tm:topicRef href="#nametype"/></tm:instanceOf>
73  </tm:topic>
74
75  <tm:topic id="last-name">
76    <tm:subjectIdentifier href="http://some.where/tmsparql/last-name"/>
77    <tm:instanceOf><tm:topicRef href="#nametype"/></tm:instanceOf>
78  </tm:topic>
79
80  <tm:topic id="title">
81    <tm:subjectIdentifier href="http://some.where/tmsparql/title"/>
82    <tm:instanceOf><tm:topicRef href="#nametype"/></tm:instanceOf>
83  </tm:topic>
84
85  <tm:topic id="display-name">
86    <tm:subjectIdentifier href="http://some.where/tmsparql/display-name"/>
87    <tm:instanceOf><tm:topicRef href="#scopetype"/></tm:instanceOf>
88  </tm:topic>
89
90  <tm:topic id="de">
91    <tm:subjectIdentifier href="http://some.where/tmsparql/de"/>
92    <tm:instanceOf><tm:topicRef href="#scopetype"/></tm:instanceOf>
93  </tm:topic>
94
95  <tm:topic id="date-of-birth">
96    <tm:subjectIdentifier href="http://some.where/tmsparql/date-of-birth"/>
97    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
98  </tm:topic>
99
100  <tm:topic id="date-of-death">
101    <tm:subjectIdentifier href="http://some.where/tmsparql/date-of-death"/>
102    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
103  </tm:topic>
104
105  <tm:topic id="poem-content">
106    <tm:subjectIdentifier href="http://some.where/tmsparql/poem-content"/>
107    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
108  </tm:topic>
109
110  <tm:topic id="years">
111    <tm:subjectIdentifier href="http://some.where/tmsparql/years"/>
112    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
113  </tm:topic>
114 
115  <tm:topic id="isDead">
116    <tm:subjectIdentifier href="http://some.where/tmsparql/isDead"/>
117    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
118  </tm:topic>
119
120  <tm:topic id="isAlive">
121    <tm:subjectIdentifier href="http://some.where/tmsparql/isAlive"/>
122    <tm:instanceOf><tm:topicRef href="#occurrencetype"/></tm:instanceOf>
123  </tm:topic>
124
125  <tm:topic id="reifier-type">
126    <tm:subjectIdentifier href="http://some.where/tmsparql/reifier-type"/>
127    <tm:instanceOf><tm:topicRef href="#topictype"/></tm:instanceOf>
128  </tm:topic>
129
130 
131 
132  <tm:topic id="goethe">
133    <tm:instanceOf><tm:topicRef href="#author"/></tm:instanceOf>
134    <tm:subjectIdentifier href="http://some.where/tmsparql/author/goethe"/>
135    <tm:itemIdentity href="http://some.where/ii/goethe"/>
136    <tm:name>
137      <tm:type><tm:topicRef href="#first-name"/></tm:type>
138      <tm:value>Johann Wolfgang</tm:value>
139    </tm:name>
140    <tm:name reifier="http://some.where/ii/goethe-name-reifier">
141      <tm:type><tm:topicRef href="#last-name"/></tm:type>
142      <tm:value>von Goethe</tm:value>
143      <tm:variant>
144        <tm:itemIdentity href="http://some.where/ii/goethe-variant"/>
145        <tm:scope><tm:topicRef href="#display-name"/></tm:scope>
146        <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Goethe</tm:resourceData>
147      </tm:variant>
148    </tm:name>
149    <tm:name>
150      <tm:itemIdentity href="http://some.where/ii/goethe-untyped-name"/>
151      <tm:value>Johann Wolfgang von Goethe</tm:value> <!-- untyped name -->
152    </tm:name>
153    <tm:occurrence reifier="http://some.where/ii/goethe-occ-reifier">
154      <tm:itemIdentity href="http://some.where/ii/goethe-occ"/>
155      <tm:type><tm:topicRef href="#date-of-birth"/></tm:type>
156      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">28.08.1749</tm:resourceData>
157    </tm:occurrence>
158    <tm:occurrence>
159      <tm:type><tm:topicRef href="#date-of-death"/></tm:type>
160      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">22.03.1832</tm:resourceData>
161    </tm:occurrence>
162    <tm:occurrence>
163      <tm:itemIdentity href="http://some.where/ii/goethe-years-occ"/>
164      <tm:type><tm:topicRef href="#years"/></tm:type>
165      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#integer">82</tm:resourceData>
166    </tm:occurrence>
167    <tm:occurrence>
168      <tm:type><tm:topicRef href="#isDead"/></tm:type>
169      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#boolean">true</tm:resourceData>
170    </tm:occurrence>
171    <tm:occurrence>
172      <tm:type><tm:topicRef href="#isAlive"/></tm:type> <!-- redundancy: needed for checking booleans -->
173      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#boolean">false</tm:resourceData>
174    </tm:occurrence>
175  </tm:topic>
176
177  <tm:topic id="occ-reifier">
178    <tm:itemIdentity href="http://some.where/ii/goethe-occ-reifier"/>
179    <tm:instanceOf><tm:topicRef href="#reifier-type"/></tm:instanceOf>
180  </tm:topic>
181
182  <tm:topic id="goethe-name-reifier">
183    <tm:itemIdentity href="http://some.where/ii/goethe-name-reifier"/>
184    <tm:instanceOf><tm:topicRef href="#reifier-type"/></tm:instanceOf>
185  </tm:topic>
186
187  <tm:topic id="zauberlehrling">
188    <tm:subjectIdentifier href="http://some.where/psis/poem/zauberlehrling"/>
189    <tm:instanceOf>
190      <tm:topicRef href="#poem"/></tm:instanceOf>
191    <tm:name>
192      <tm:type><tm:topicRef href="#title"/></tm:type>
193      <tm:value>Der Zauberlehrling</tm:value>
194    </tm:name>
195    <tm:occurrence>
196      <tm:itemIdentity href="http://some.where/ii/zb/occurrence"/>
197      <tm:type><tm:topicRef href="#poem-content"/></tm:type>
198      <tm:scope><tm:topicRef href="#de"/></tm:scope>
199      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Hat der alte Hexenmeister
200        sich doch einmal wegbegeben!
201        ...
202      </tm:resourceData>
203    </tm:occurrence>
204  </tm:topic>
205
206  <tm:association reifier="http://some.where/ii/association-reifier">
207    <tm:itemIdentity href="http://some.where/ii/association"/>
208    <tm:type><tm:topicRef href="#written-by"/></tm:type>
209    <tm:role reifier="http://some.where/ii/role-reifier">
210      <tm:type><tm:topicRef href="#writer"/></tm:type>
211      <tm:topicRef href="#goethe"/>
212    </tm:role>
213    <tm:role>
214      <tm:itemIdentity href="http://some.where/ii/role-2"/>
215      <tm:type><tm:topicRef href="#written"/></tm:type>
216      <tm:topicRef href="#zauberlehrling"/>
217    </tm:role>
218  </tm:association>
219
220  <tm:topic id="association-reifier">
221    <tm:itemIdentity href="http://some.where/ii/association-reifier"/>
222    <tm:instanceOf><tm:topicRef href="#reifier-type"/></tm:instanceOf>
223  </tm:topic>
224
225  <tm:topic id="role-reifier">
226    <tm:itemIdentity href="http://some.where/ii/role-reifier"/>
227    <tm:instanceOf><tm:topicRef href="#reifier-type"/></tm:instanceOf>
228  </tm:topic>
229
230</tm:topicMap>
Note: See TracBrowser for help on using the repository browser.