source: branches/new-datamodel/src/unit_tests/full_mapping.rdf

Last change on this file was 137, checked in by lgiessmann, 15 years ago

rdf-importer: added some unit-tests

File size: 7.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<rdf:RDF xmlns:isi="http://isidorus/tm2rdf_mapping/"
3         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
4         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
5         xmlns:xml="http://www.w3.org/XML/1998/namespace">
6  <!-- === topic: marge ==================================================== -->
7  <rdf:Description rdf:about="http://simpsons/marge">
8    <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Topic"/>
9    <isi:name>
10      <rdf:Description rdf:nodeID="id_283">
11        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Name"/>
12        <isi:nametype rdf:resource="http://simpsons/firstName"/>
13        <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Marjorie</isi:value>
14      </rdf:Description>
15    </isi:name>
16    <isi:name>
17      <rdf:Description rdf:nodeID="id_285">
18        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Name"/>
19        <isi:nametype rdf:resource="http://simpsons/lastName"/>
20        <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Simpson</isi:value>
21      </rdf:Description>
22    </isi:name>
23    <ns5:profession xmlns:ns5="http://simpsons/" rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Housewife</ns5:profession>
24    <isi:occurrence rdf:nodeID="id_1234"/> <!-- equal to ns5:profession, should be merged -->
25  </rdf:Description>
26
27  <rdf:Description rdf:nodeID="id_1234">
28    <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Occurrence"/>
29    <isi:occurrencetype rdf:resource="http://simpsons/profession"/>
30    <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Housewife</isi:value>
31  </rdf:Description>
32
33
34  <rdf:Description rdf:nodeID="id_283">
35    <isi:variant rdf:parseType="Resource">
36      <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Variant"/>
37      <isi:scope rdf:resource="http://simpsons/display"/>
38      <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Marge</isi:value>
39    </isi:variant>
40  </rdf:Description>
41
42
43  <rdf:Description rdf:about="http://simpsons/marge">
44    <isi:subjectIdentifier rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/marjorie</isi:subjectIdentifier>
45  </rdf:Description>
46
47  <!-- === topic: homer ==================================================== -->
48  <rdf:Description rdf:about="http://simpsons/homer">
49    <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Topic"/>
50    <isi:subjectIdentifier rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/homer_simpson</isi:subjectIdentifier>
51    <isi:subjectLocator rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://some.where/resource</isi:subjectLocator>
52    <isi:itemIdentity rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/ii/homer</isi:itemIdentity>
53    <isi:name>
54      <rdf:Description rdf:nodeID="id_266">
55        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Name"/>
56        <isi:nametype rdf:resource="http://simpsons/firstName"/>
57        <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Homer J.</isi:value>
58        <isi:variant>
59          <rdf:Description rdf:nodeID="id_272">
60            <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Variant"/>
61            <isi:scope rdf:resource="http://simpsons/display"/>
62            <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Homer</isi:value>
63          </rdf:Description>
64        </isi:variant>
65      </rdf:Description>
66    </isi:name>
67    <isi:name rdf:resource="id_2345"/> <!-- should be merged with id_266 -->
68    <isi:name>
69      <rdf:Description rdf:nodeID="id_277">
70        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Name"/>
71        <isi:nametype rdf:resource="http://simpsons/lastName"/>
72        <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Simpson</isi:value>
73      </rdf:Description>
74    </isi:name>
75    <isi:occurrence>
76      <rdf:Description rdf:nodeID="id_279">
77        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Occurrence"/>
78        <isi:occurrencetype rdf:resource="http://simpsons/profession"/>
79        <isi:scope rdf:resource="http://simpsons/en"/>
80        <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Safety Inspector</isi:value>
81      </rdf:Description>
82    </isi:occurrence>
83  </rdf:Description>
84
85  <rdf:Description rdf:about="id_2345">
86    <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Name"/>
87    <isi:nametype rdf:resource="http://simpsons/firstName"/>
88    <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Homer J.</isi:value>
89    <isi:variant>
90      <rdf:Description rdf:nodeID="id_272">
91        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Variant"/>
92        <isi:scope rdf:resource="http://simpsons/display"/>
93        <isi:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Homer</isi:value>
94      </rdf:Description>
95    </isi:variant>
96  </rdf:Description>
97
98  <!-- === association: married ============================================ -->
99  <rdf:Description rdf:nodeID="id_291">
100    <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Association"/>
101    <isi:associationtype rdf:resource="http://simpsons/married"/>
102    <isi:itemIdentity rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/married/ii-1</isi:itemIdentity>
103    <isi:role>
104      <rdf:Description rdf:nodeID="id_292">
105        <isi:itemIdentity rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/role-husband/ii</isi:itemIdentity>
106        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Role"/>
107        <isi:roletype rdf:resource="http://simpsons/husband"/>
108        <isi:player rdf:resource="http://simpsons/homer"/>
109      </rdf:Description>
110    </isi:role>
111    <isi:role>
112      <rdf:Description rdf:nodeID="id_295">
113        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Role"/>
114        <isi:roletype rdf:resource="http://simpsons/wife"/>
115        <isi:player rdf:resource="http://simpsons/marge"/>
116      </rdf:Description>
117    </isi:role>
118  </rdf:Description>
119
120  <rdf:Description rdf:nodeID="id_295">
121    <isi:itemIdentity rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/role-wife/ii</isi:itemIdentity>
122  </rdf:Description>
123
124  <rdf:Description rdf:nodeID="id_291">
125    <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Association"/>
126    <isi:itemIdentity rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/married/ii-1</isi:itemIdentity>
127    <isi:itemIdentity rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/married/ii-2</isi:itemIdentity>
128    <isi:associationtype rdf:resource="http://simpsons/married"/>
129    <isi:role>
130      <rdf:Description rdf:nodeID="id_295">
131        <isi:itemIdentity rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://simpsons/role-wife/ii</isi:itemIdentity>
132        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Role"/>
133        <isi:roletype rdf:resource="http://simpsons/wife"/>
134        <isi:player rdf:resource="http://simpsons/marge"/>
135      </rdf:Description>
136    </isi:role>
137    <isi:role>
138      <rdf:Description rdf:nodeID="id_292">
139        <rdf:type rdf:resource="http://isidorus/tm2rdf_mapping/types/Role"/>
140        <isi:roletype rdf:resource="http://simpsons/husband"/>
141        <isi:player rdf:resource="http://simpsons/homer"/>
142      </rdf:Description>
143    </isi:role>
144  </rdf:Description>
145</rdf:RDF>
Note: See TracBrowser for help on using the repository browser.