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

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

rdf-exporter: implemented a part of the rdf-exporter. currently associations, that do not represent type-instance or supertype-subtype associations are not exported; unit tests are not implemented at the moment, there is just a test file which can be xported "poems_light.xtm"

File size: 4.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
4         xmlns:poems="http://some.where/"
5         xmlns:arcs="http://some.where/relationship/"
6         xmlns:types="http://some.where/types/"
7         xml:base="http://some.where/">
8  <!-- === Goethe ========================================================== -->
9  <rdf:Description rdf:about="author/Goethe">
10    <rdf:type rdf:resource="types/Author"/>
11    <arcs:firstName>Johann Wolfgang</arcs:firstName>
12    <arcs:lastName rdf:parseType="Literal">von Goethe</arcs:lastName>
13
14    <!-- === born event ==================================================== -->
15    <arcs:born>
16      <types:Event>
17        <arcs:date rdf:datatype="http://www.w3.org/2001/XMLSchema#date">28.08.1749</arcs:date>
18        <arcs:place>
19          <rdf:Description rdf:about="/metropolis/FrankfurtMain">
20            <rdf:type>
21              <rdf:Description rdf:about="/types/Metropolis">
22                <rdfs:subClassOf rdf:resource="/types/Region"/>
23              </rdf:Description>
24            </rdf:type>
25            <arcs:fullName>Frankfurt am Main</arcs:fullName>
26            <arcs:population rdf:datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">659000</arcs:population>
27            <arcs:locatedIn>
28              <rdf:Description rdf:about="http://some.where/country/Germany">
29                <rdf:type>
30                  <rdf:Description rdf:about="http://some.where/types/Country"></rdf:Description>
31                </rdf:type>
32                <arcs:nativeName xml:lang="de">Deutschland</arcs:nativeName>
33                <arcs:population rdf:datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">82099232</arcs:population>
34                <arcs:officialese rdf:resource="language/German"/>
35                <arcs:capital>
36                  <rdf:Description rdf:about="http://some.where/metropolis/Berlin">
37                    <rdf:type>
38                      <rdf:Description rdf:about="http://some.where/types/Metropolis"/>
39                    </rdf:type>
40                    <arcs:locatedIn rdf:resource="/country/Germany"/>
41                    <arcs:population rdf:datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">3431473</arcs:population>
42                  </rdf:Description>
43                </arcs:capital>
44              </rdf:Description>
45            </arcs:locatedIn>
46          </rdf:Description>
47        </arcs:place>
48      </types:Event>
49    </arcs:born>
50
51    <!-- === died event ==================================================== -->
52    <arcs:died>
53      <rdf:Description xml:base="http://some.where/types/">
54        <rdf:type rdf:resource="Event"/>
55        <arcs:date rdf:datatype="#date" xml:base="http://www.w3.org/2001/XMLSchema">22.03.1832</arcs:date>
56        <arcs:place xml:base="">
57          <types:City rdf:about="http://some.where/city/Weimar" arcs:fullName="Weimar">
58            <rdfs:subClassOf rdf:resource="http://some.where/types/Region"/>
59            <arcs:population rdf:datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">64720</arcs:population>
60            <arcs:locatedIn rdf:resource="http://some.where/country/Germany"/>
61          </types:City>
62        </arcs:place>
63      </rdf:Description>
64    </arcs:died>
65
66    <!-- === wrote bag ===================================================== -->
67    <arcs:wrote>
68      <rdf:Bag rdf:nodeID="goethe_literature">
69        <rdf:li>
70          <types:Poem rdf:about="http://some.where/poem/Der_Zauberlehrling">
71            <arcs:title rdf:parseType="Literal" xml:lang="de">Der Zauberlehrling</arcs:title>
72            <arcs:dateRange rdf:parseType="Resource" xml:base="http://www.w3.org/2001/XMLSchema"> <!-- rdf:parseType="resource" == bland_node -->
73              <arcs:start rdf:datatype="#date">01.01.1797</arcs:start>
74              <arcs:end rdf:datatype="#date">31.12.1797</arcs:end>
75            </arcs:dateRange>
76            <arcs:content xml:lang="de"><![CDATA[Hat der alte Hexenmeister ...]]></arcs:content>
77          </types:Poem>
78        </rdf:li>
79      </rdf:Bag>
80    </arcs:wrote>
81  </rdf:Description>
82
83  <!-- referenced ressources by goethe -->
84  <rdf:Description rdf:nodeID="goethe_literature">
85    <rdf:li>
86      <types:Ballad rdf:about="http://some.where/ballad/Der_Erlkoenig" arcs:title="Der Erlkönig" xml:lang="de">
87        <arcs:dateRange rdf:parseType="Resource" xml:base="http://www.w3.org/2001/XMLSchema">
88          <arcs:start rdf:datatype="#date">01.01.1782</arcs:start>
89          <arcs:end  rdf:datatype="#date">31.12.1782</arcs:end>
90        </arcs:dateRange>
91        <arcs:content rdf:datatype="http://www.w3.org/2001/XMLSchema#string" xml:lang="de">Wer reitet so spÀt durch Nacht und Wind? ...</arcs:content>
92      </types:Ballad>
93    </rdf:li>
94    <rdf:li>
95      <rdf:Description rdf:about="http://some.where/poem/Prometheus" arcs:title="Prometheus">
96        <rdf:type rdf:resource="/types/Poem"/>
97        <arcs:dateRange>
98          <rdf:Description xml:base="http://does.not.exist">
99            <arcs:start rdf:datatype="http://www.w3.org/2001/XMLSchema#date">01.01.1772</arcs:start>
100            <arcs:end rdf:datatype="http://www.w3.org/2001/XMLSchema#date">31.12.1774</arcs:end>
101          </rdf:Description>
102        </arcs:dateRange>
103        <arcs:content rdf:parseType="Literal" xml:lang="de"><![CDATA[ Bedecke deinen Himmel, Zeus, ... ]]></arcs:content>
104      </rdf:Description>
105    </rdf:li>
106  </rdf:Description>
107
108  <rdf:Description rdf:about="http://some.where/language/German">
109    <rdf:type rdf:resource="types/Language"/>
110  </rdf:Description>
111</rdf:RDF>
Note: See TracBrowser for help on using the repository browser.