source: subversion/applications/rendering/OSMLabelOptimizer/misc/svgmap.owl @ 29147

Last change on this file since 29147 was 21607, checked in by esscue, 9 years ago
  • Ontology extended (added some inverse properties)
  • new osmarender patch (added #id to linkedgeodb way and node URIs)
  • added extractRDF.xsl stylesheet: extracts RDF information from osmarender svg maps
File size: 11.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE rdf:RDF [
3  <!ENTITY owl "http://www.w3.org/2002/07/owl#">
4  <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
5  <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
6  <!ENTITY svgmap "http://www.openstreetmap.org/osmarender/ontology/svgmap/01/svgmap">
7  <!ENTITY vocabulary "http://linkedgeodata.org/vocabulary">
8  <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
9]>
10<rdf:RDF xml:base="&svgmap;"
11         xmlns:owl="&owl;"
12         xmlns:rdf="&rdf;"
13         xmlns:rdfs="&rdfs;">
14
15<!-- Ontology Information -->
16  <owl:Ontology rdf:about="">
17    <owl:imports>
18      <owl:Ontology rdf:about="&vocabulary;"/>
19    </owl:imports>
20  </owl:Ontology>
21
22<!-- Classes -->
23  <owl:Class rdf:about="#AreaFeature">
24    <rdfs:subClassOf rdf:resource="#Feature"/>
25  </owl:Class>
26
27  <owl:Class rdf:about="#AreaFeatureLabel">
28    <rdfs:subClassOf rdf:resource="#Label"/>
29  </owl:Class>
30
31  <owl:Class rdf:about="#Feature"/>
32  <owl:Class rdf:about="#Label"/>
33  <owl:Class rdf:about="#LineFeature">
34    <rdfs:subClassOf rdf:resource="#Feature"/>
35  </owl:Class>
36
37  <owl:Class rdf:about="#LineFeatureLabel">
38    <rdfs:subClassOf rdf:resource="#Label"/>
39  </owl:Class>
40
41  <owl:Class rdf:about="#OSMArea">
42    <rdfs:subClassOf rdf:resource="#OSMData"/>
43    <owl:equivalentClass rdf:resource="http://linkedgeodata.org/triplify/way"/>
44  </owl:Class>
45
46  <owl:Class rdf:about="#OSMData"/>
47  <owl:Class rdf:about="#OSMNode">
48    <rdfs:subClassOf rdf:resource="#OSMData"/>
49    <owl:equivalentClass rdf:resource="http://linkedgeodata.org/triplify/node"/>
50  </owl:Class>
51
52  <owl:Class rdf:about="#OSMWay">
53    <rdfs:subClassOf rdf:resource="#OSMData"/>
54    <owl:equivalentClass rdf:resource="http://linkedgeodata.org/triplify/way"/>
55  </owl:Class>
56
57  <owl:Class rdf:about="#PointFeature">
58    <rdfs:subClassOf rdf:resource="#Feature"/>
59  </owl:Class>
60
61  <owl:Class rdf:about="#PointFeatureLabel">
62    <rdfs:subClassOf rdf:resource="#Label"/>
63  </owl:Class>
64
65  <owl:Class rdf:about="#SVGCircleElement">
66    <rdfs:subClassOf rdf:resource="#SVGElement"/>
67  </owl:Class>
68
69  <owl:Class rdf:about="#SVGElement">
70    <rdfs:subClassOf rdf:resource="#XMLElement"/>
71  </owl:Class>
72
73  <owl:Class rdf:about="#SVGGElement">
74    <rdfs:subClassOf rdf:resource="#SVGElement"/>
75  </owl:Class>
76
77  <owl:Class rdf:about="#SVGMap"/>
78  <owl:Class rdf:about="#SVGPathElement">
79    <rdfs:subClassOf rdf:resource="#SVGElement"/>
80  </owl:Class>
81
82  <owl:Class rdf:about="#SVGSVGElement">
83    <rdfs:subClassOf rdf:resource="#SVGElement"/>
84  </owl:Class>
85
86  <owl:Class rdf:about="#SVGTextElement">
87    <rdfs:subClassOf rdf:resource="#SVGElement"/>
88  </owl:Class>
89
90  <owl:Class rdf:about="#SVGTextPathElement">
91    <rdfs:subClassOf rdf:resource="#SVGElement"/>
92  </owl:Class>
93
94  <owl:Class rdf:about="#SVGUseElement">
95    <rdfs:subClassOf rdf:resource="#SVGElement"/>
96  </owl:Class>
97
98  <owl:Class rdf:about="#XMLElement"/>
99  <owl:Class rdf:about="http://linkedgeodata.org/triplify/node"/>
100  <owl:Class rdf:about="http://linkedgeodata.org/triplify/way"/>
101  <owl:Class rdf:nodeID="b19">
102    <owl:unionOf rdf:parseType="Collection">
103      <rdf:Description rdf:about="#SVGCircleElement"/>
104      <rdf:Description rdf:about="#SVGGElement"/>
105    </owl:unionOf>
106  </owl:Class>
107
108  <owl:Class rdf:nodeID="b18">
109    <owl:unionOf rdf:parseType="Collection">
110      <rdf:Description rdf:about="#SVGCircleElement"/>
111      <rdf:Description rdf:about="#SVGPathElement"/>
112    </owl:unionOf>
113  </owl:Class>
114
115<!-- Object Properties -->
116  <owl:ObjectProperty rdf:about="#areaFeatureDrawnBy">
117    <rdfs:domain rdf:resource="#AreaFeature"/>
118    <rdfs:range rdf:nodeID="b18"/>
119    <rdfs:subPropertyOf rdf:resource="#drawnBy"/>
120  </owl:ObjectProperty>
121
122  <owl:ObjectProperty rdf:about="#areaFeatureLabelDrawnBy">
123    <rdfs:domain rdf:resource="#AreaFeatureLabel"/>
124    <rdfs:range rdf:resource="#SVGTextElement"/>
125    <rdfs:subPropertyOf rdf:resource="#labelDrawnBy"/>
126  </owl:ObjectProperty>
127
128  <owl:ObjectProperty rdf:about="#areaFeatureShownBy">
129    <rdfs:subPropertyOf rdf:resource="#shownBy"/>
130    <owl:inverseOf rdf:resource="#showsAreaFeature"/>
131  </owl:ObjectProperty>
132
133  <owl:ObjectProperty rdf:about="#areaFeatureStandsFor">
134    <rdfs:domain rdf:resource="#AreaFeature"/>
135    <rdfs:range rdf:resource="#OSMArea"/>
136    <rdfs:subPropertyOf rdf:resource="#standsFor"/>
137  </owl:ObjectProperty>
138
139  <owl:ObjectProperty rdf:about="#drawnBy">
140    <rdfs:domain rdf:resource="#Feature"/>
141    <rdfs:range rdf:resource="#SVGElement"/>
142  </owl:ObjectProperty>
143
144  <owl:ObjectProperty rdf:about="#draws">
145    <owl:inverseOf rdf:resource="#drawnBy"/>
146  </owl:ObjectProperty>
147
148  <owl:ObjectProperty rdf:about="#drawsAreaFeature">
149    <rdfs:subPropertyOf rdf:resource="#draws"/>
150    <owl:inverseOf rdf:resource="#areaFeatureDrawnBy"/>
151  </owl:ObjectProperty>
152
153  <owl:ObjectProperty rdf:about="#drawsAreaFeatureLabel">
154    <rdfs:subPropertyOf rdf:resource="#drawsLabel"/>
155    <owl:inverseOf rdf:resource="#areaFeatureLabelDrawnBy"/>
156  </owl:ObjectProperty>
157
158  <owl:ObjectProperty rdf:about="#drawsLabel">
159    <owl:inverseOf rdf:resource="#labelDrawnBy"/>
160  </owl:ObjectProperty>
161
162  <owl:ObjectProperty rdf:about="#drawsLineFeature">
163    <rdfs:subPropertyOf rdf:resource="#draws"/>
164    <owl:inverseOf rdf:resource="#lineFeatureDrawnBy"/>
165  </owl:ObjectProperty>
166
167  <owl:ObjectProperty rdf:about="#drawsLineFeatureLabel">
168    <rdfs:subPropertyOf rdf:resource="#drawsLabel"/>
169    <owl:inverseOf rdf:resource="#lineFeatureLabelDrawnBy"/>
170  </owl:ObjectProperty>
171
172  <owl:ObjectProperty rdf:about="#drawsPointFeature">
173    <rdfs:subPropertyOf rdf:resource="#draws"/>
174    <owl:inverseOf rdf:resource="#pointFeatureDrawnBy"/>
175  </owl:ObjectProperty>
176
177  <owl:ObjectProperty rdf:about="#drawsPointFeatureLabel">
178    <rdfs:subPropertyOf rdf:resource="#drawsLabel"/>
179    <owl:inverseOf rdf:resource="#pointFeatureLabelDrawnBy"/>
180  </owl:ObjectProperty>
181
182  <owl:ObjectProperty rdf:about="#hasAreaFeatureLabel">
183    <rdfs:domain rdf:resource="#AreaFeature"/>
184    <rdfs:range rdf:resource="#AreaFeatureLabel"/>
185    <rdfs:subPropertyOf rdf:resource="#hasLabel"/>
186  </owl:ObjectProperty>
187
188  <owl:ObjectProperty rdf:about="#hasLabel">
189    <rdfs:domain rdf:resource="#Feature"/>
190    <rdfs:range rdf:resource="#Label"/>
191  </owl:ObjectProperty>
192
193  <owl:ObjectProperty rdf:about="#hasLineFeatureLabel">
194    <rdfs:domain rdf:resource="#LineFeature"/>
195    <rdfs:range rdf:resource="#LineFeatureLabel"/>
196    <rdfs:subPropertyOf rdf:resource="#hasLabel"/>
197  </owl:ObjectProperty>
198
199  <owl:ObjectProperty rdf:about="#hasNode">
200    <rdfs:domain rdf:resource="#OSMWay"/>
201    <rdfs:range rdf:resource="#OSMNode"/>
202    <owl:equivalentProperty rdf:resource="http://linkedgeodata.org/triplify/hasNode"/>
203  </owl:ObjectProperty>
204
205  <owl:ObjectProperty rdf:about="#hasPointFeatureLabel">
206    <rdfs:domain rdf:resource="#PointFeature"/>
207    <rdfs:range rdf:resource="#PointFeatureLabel"/>
208    <rdfs:subPropertyOf rdf:resource="#hasLabel"/>
209  </owl:ObjectProperty>
210
211  <owl:ObjectProperty rdf:about="#isAreaFeatureLabel">
212    <rdfs:subPropertyOf rdf:resource="#isLabel"/>
213    <owl:inverseOf rdf:resource="#hasAreaFeatureLabel"/>
214  </owl:ObjectProperty>
215
216  <owl:ObjectProperty rdf:about="#isLabel">
217    <owl:inverseOf rdf:resource="#hasLabel"/>
218  </owl:ObjectProperty>
219
220  <owl:ObjectProperty rdf:about="#isLineFeatureLabel">
221    <rdfs:subPropertyOf rdf:resource="#isLabel"/>
222    <owl:inverseOf rdf:resource="#hasLineFeatureLabel"/>
223  </owl:ObjectProperty>
224
225  <owl:ObjectProperty rdf:about="#isNodeOf">
226    <owl:inverseOf rdf:resource="#hasNode"/>
227  </owl:ObjectProperty>
228
229  <owl:ObjectProperty rdf:about="#isPointFeatureLabel">
230    <rdfs:subPropertyOf rdf:resource="#isLabel"/>
231    <owl:inverseOf rdf:resource="#hasPointFeatureLabel"/>
232  </owl:ObjectProperty>
233
234  <owl:ObjectProperty rdf:about="#labelDrawnBy">
235    <rdfs:domain rdf:resource="#Label"/>
236    <rdfs:range rdf:resource="#SVGElement"/>
237  </owl:ObjectProperty>
238
239  <owl:ObjectProperty rdf:about="#lineFeatureDrawnBy">
240    <rdfs:domain rdf:resource="#LineFeature"/>
241    <rdfs:range rdf:resource="#SVGUseElement"/>
242    <rdfs:subPropertyOf rdf:resource="#drawnBy"/>
243  </owl:ObjectProperty>
244
245  <owl:ObjectProperty rdf:about="#lineFeatureLabelDrawnBy">
246    <rdfs:domain rdf:resource="#LineFeatureLabel"/>
247    <rdfs:range rdf:resource="#SVGTextElement"/>
248    <rdfs:subPropertyOf rdf:resource="#labelDrawnBy"/>
249  </owl:ObjectProperty>
250
251  <owl:ObjectProperty rdf:about="#lineFeatureShownBy">
252    <rdfs:subPropertyOf rdf:resource="#shownBy"/>
253    <owl:inverseOf rdf:resource="#showsLineFeature"/>
254  </owl:ObjectProperty>
255
256  <owl:ObjectProperty rdf:about="#lineFeatureStandsFor">
257    <rdfs:domain rdf:resource="#LineFeature"/>
258    <rdfs:range rdf:resource="#OSMWay"/>
259    <rdfs:subPropertyOf rdf:resource="#standsFor"/>
260  </owl:ObjectProperty>
261
262  <owl:ObjectProperty rdf:about="#pointFeatureDrawnBy">
263    <rdfs:domain rdf:resource="#PointFeature"/>
264    <rdfs:range rdf:nodeID="b19"/>
265    <rdfs:subPropertyOf rdf:resource="#drawnBy"/>
266  </owl:ObjectProperty>
267
268  <owl:ObjectProperty rdf:about="#pointFeatureLabelDrawnBy">
269    <rdfs:domain rdf:resource="#PointFeatureLabel"/>
270    <rdfs:range rdf:resource="#SVGTextElement"/>
271    <rdfs:subPropertyOf rdf:resource="#labelDrawnBy"/>
272  </owl:ObjectProperty>
273
274  <owl:ObjectProperty rdf:about="#pointFeatureShownBy">
275    <rdfs:subPropertyOf rdf:resource="#shownBy"/>
276    <owl:inverseOf rdf:resource="#showsPointFeature"/>
277  </owl:ObjectProperty>
278
279  <owl:ObjectProperty rdf:about="#pointFeatureStandsFor">
280    <rdfs:domain rdf:resource="#PointFeature"/>
281    <rdfs:range rdf:resource="#OSMNode"/>
282    <rdfs:subPropertyOf rdf:resource="#standsFor"/>
283  </owl:ObjectProperty>
284
285  <owl:ObjectProperty rdf:about="#shownBy">
286    <owl:inverseOf rdf:resource="#shows"/>
287  </owl:ObjectProperty>
288
289  <owl:ObjectProperty rdf:about="#shows">
290    <rdfs:domain rdf:resource="#SVGMap"/>
291    <rdfs:range rdf:resource="#Feature"/>
292  </owl:ObjectProperty>
293
294  <owl:ObjectProperty rdf:about="#showsAreaFeature">
295    <rdfs:range rdf:resource="#AreaFeature"/>
296    <rdfs:subPropertyOf rdf:resource="#shows"/>
297  </owl:ObjectProperty>
298
299  <owl:ObjectProperty rdf:about="#showsLineFeature">
300    <rdfs:range rdf:resource="#LineFeature"/>
301    <rdfs:subPropertyOf rdf:resource="#shows"/>
302  </owl:ObjectProperty>
303
304  <owl:ObjectProperty rdf:about="#showsPointFeature">
305    <rdfs:range rdf:resource="#PointFeature"/>
306    <rdfs:subPropertyOf rdf:resource="#shows"/>
307  </owl:ObjectProperty>
308
309  <owl:ObjectProperty rdf:about="#standingFor">
310    <owl:inverseOf rdf:resource="#standsFor"/>
311  </owl:ObjectProperty>
312
313  <owl:ObjectProperty rdf:about="#standingForAreaFeature">
314    <rdfs:subPropertyOf rdf:resource="#standingFor"/>
315    <owl:inverseOf rdf:resource="#areaFeatureStandsFor"/>
316  </owl:ObjectProperty>
317
318  <owl:ObjectProperty rdf:about="#standingForLineFeature">
319    <rdfs:subPropertyOf rdf:resource="#standingFor"/>
320    <owl:inverseOf rdf:resource="#lineFeatureStandsFor"/>
321  </owl:ObjectProperty>
322
323  <owl:ObjectProperty rdf:about="#standingForPointFeature">
324    <rdfs:subPropertyOf rdf:resource="#standingFor"/>
325    <owl:inverseOf rdf:resource="#pointFeatureStandsFor"/>
326  </owl:ObjectProperty>
327
328  <owl:ObjectProperty rdf:about="#standsFor">
329    <rdfs:domain rdf:resource="#Feature"/>
330    <rdfs:range rdf:resource="#OSMData"/>
331  </owl:ObjectProperty>
332
333  <owl:ObjectProperty rdf:about="http://linkedgeodata.org/triplify/hasNode">
334    <owl:equivalentProperty rdf:resource="#hasNode"/>
335  </owl:ObjectProperty>
336</rdf:RDF>
Note: See TracBrowser for help on using the repository browser.