Strabon
view endpoint/WebContent/WEB-INF/beans.xml @ 172:a69499da7b01
stick for proper responseType for KML
author | Michael Sioutis |
---|---|
date | Mon May 21 20:17:03 2012 +0300 (2012-05-21) |
parents | 4b3b6ea7513f |
children | a683d1837836 |
line source
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xmlns:jaxws="http://cxf.apache.org/jaxws"
4 xmlns="http://www.springframework.org/schema/beans"
5 xsi:schemaLocation="http://www.springframework.org/schema/beans
6 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd" >
9 <import resource="classpath:META-INF/cxf/cxf.xml" />
11 <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
13 <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
15 <bean
16 id="strabonBean"
17 class="eu.earthobservatory.org.StrabonEndpoint.StrabonBeanWrapper"
18 destroy-method="destroy" >
20 <constructor-arg type="java.lang.String" >
21 <!-- Database name -->
22 <value>DLRstrabonv4</value>
23 </constructor-arg>
25 <constructor-arg type="java.lang.String" >
26 <!-- Username -->
27 <value>postgres</value>
28 </constructor-arg>
30 <constructor-arg type="java.lang.String" >
31 <!-- Password -->
32 <value>brun1s86</value>
33 </constructor-arg>
35 <constructor-arg type="int" >
36 <!-- Port -->
37 <value>5432</value>
38 </constructor-arg>
40 <constructor-arg type="java.lang.String" >
41 <!-- Database server -->
42 <value>localhost</value>
43 </constructor-arg>
45 <constructor-arg type="boolean" >
46 <!-- Check for locks and remove them (in case of a crash) -->
47 <value>true</value>
48 </constructor-arg>
50 <constructor-arg>
51 <list>
52 <list>
53 <!-- Bean -->
54 <value>Query</value>
55 <!-- Format -->
56 <value>HTML</value>
57 <!-- Label -->
58 <value>Query 1: Discover raw data and products</value>
59 <!-- Statement -->
60 <value><![CDATA[# Discovering raw data and products
61 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
62 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
63 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
64 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
65 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
66 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
67 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
68 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
69 PREFIX georss: <http://www.georss.org/georss/>
70 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
71 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
72 PREFIX gn: <http://www.geonames.org/ontology#>
74 SELECT ?filename
75 WHERE {?file rdf:type noa:ShpFile ;
76 noa:hasFilename ?filename ;
77 noa:hasAcquisitionTime ?sensingTime .
78 FILTER( str(?sensingTime) >= "2007-08-26T12:00:00" ) .
79 FILTER( str(?sensingTime) <= "2007-08-26T12:30:00" ) .
80 ?file noa:isDerivedFromSensor ?sensor .
81 FILTER( str(?sensor) = "MSG2" ) .
82 ?file noa:producedFromProcessingChain ?chain .
83 FILTER( str(?chain) = "StaticThresholds" ) .
84 }]]></value>
85 </list>
86 <list>
87 <!-- Bean -->
88 <value>Query</value>
89 <!-- Format -->
90 <value>KMZMAP</value>
91 <!-- Label -->
92 <value>Query 2: Discover Hotspots</value>
93 <!-- Statement -->
94 <value><![CDATA[# Get all hotspots
95 # - in Pelloponesus
96 # - at 2007-08-24
97 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
98 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
99 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
100 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
101 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
102 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
103 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
104 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
105 PREFIX georss: <http://www.georss.org/georss/>
106 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
107 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
108 PREFIX gn: <http://www.geonames.org/ontology#>
110 SELECT ?h ?hAcqTime ?hConfidence ?hConfirmation ?hProvider ?hSensor ?hSatellite (strdf:transform(?hGeo, <http://www.opengis.net/def/crs/EPSG/0/4326>) as ?geo)
111 WHERE { ?h rdf:type noa:Hotspot;
112 noa:hasGeometry ?hGeo;
113 noa:hasAcquisitionTime ?hAcqTime;
114 noa:hasConfidence ?hConfidence;
115 noa:isProducedBy ?hProvider;
116 noa:hasConfirmation ?hConfirmation;
117 noa:isDerivedFromSensor ?hSensor;
118 noa:isDerivedFromSatellite ?hSatellite ;
119 noa:producedFromProcessingChain ?hChain .
120 FILTER(str(?hChain) = "StaticThresholds").
121 FILTER(?hAcqTime = "2007-08-24T14:45:00"^^xsd:dateTime) .
122 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?hGeo)) .
123 }]]></value>
124 </list>
125 <list>
126 <!-- Bean -->
127 <value>Update</value>
128 <!-- Format -->
129 <value>HTML</value>
130 <!-- Label -->
131 <value>Update A: Remove hotspots in sea</value>
132 <!-- Statement -->
133 <value><![CDATA[# Delete hotspots that lie in sea
134 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
135 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
136 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
137 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
138 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
139 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
140 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
141 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
142 PREFIX georss: <http://www.georss.org/georss/>
143 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
144 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
145 PREFIX gn: <http://www.geonames.org/ontology#>
146 DELETE {?h ?property ?object}
147 WHERE { ?h rdf:type noa:Hotspot;
148 noa:hasAcquisitionTime ?hAcqTime;
149 noa:producedFromProcessingChain ?hChain;
150 noa:hasGeometry ?hGeo;
151 ?property ?object.
152 FILTER(str(?hChain) = "StaticThresholds").
153 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?hGeo)).
154 FILTER("2007-08-24T14:45:00"^^xsd:dateTime = ?hAcqTime).
155 OPTIONAL {
156 ?c rdf:type noa:Coastline;
157 noa:hasGeometry ?cGeo.
158 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?cGeo)).
159 FILTER(strdf:anyInteract(?hGeo, ?cGeo)) .
160 }
161 FILTER(!bound(?c)).
162 }]]></value>
163 </list>
164 <list>
165 <!-- Bean -->
166 <value>Update</value>
167 <!-- Format -->
168 <value>HTML</value>
169 <!-- Label -->
170 <value>Update B: Refine hotspots in sea</value>
171 <!-- Statement -->
172 <value><![CDATA[# Refine the geometry of hotspots that partially lie in sea
173 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
174 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
175 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
176 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
177 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
178 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
179 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
180 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
181 PREFIX georss: <http://www.georss.org/georss/>
182 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
183 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
184 PREFIX gn: <http://www.geonames.org/ontology#>
186 DELETE { ?h noa:hasGeometry ?hGeo}
187 INSERT { ?h noa:hasGeometry ?dif}
188 WHERE {
189 SELECT DISTINCT ?h ?hGeo (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif)
190 WHERE { ?h rdf:type noa:Hotspot;
191 noa:hasAcquisitionTime ?hAcqTime;
192 noa:producedFromProcessingChain ?hChain;
193 noa:hasGeometry ?hGeo.
194 FILTER("2007-08-24T14:45:00"^^xsd:dateTime = ?hAcqTime).
195 FILTER(str(?hChain) = "StaticThresholds").
196 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?hGeo)).
197 ?c rdf:type noa:Coastline ;
198 noa:hasGeometry ?cGeo .
199 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?cGeo)).
200 FILTER(strdf:anyInteract(?hGeo, ?cGeo)).}
201 GROUP BY ?h ?hGeo
202 HAVING strdf:overlap(?hGeo, strdf:union(?cGeo))
203 }]]></value>
204 </list>
205 <list>
206 <!-- Bean -->
207 <value>Query</value>
208 <!-- Format -->
209 <value>KMZMAP</value>
210 <!-- Label -->
211 <value>Query 3: Discover coniferous forests</value>
212 <!-- Statement -->
213 <value><![CDATA[#Get all coniferous forests in Peloponnese
214 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
215 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
216 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
217 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
218 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
219 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
220 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
221 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
222 PREFIX georss: <http://www.georss.org/georss/>
223 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
224 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
225 PREFIX gn: <http://www.geonames.org/ontology#>
227 SELECT ?a ?aGeo
228 WHERE{ ?a rdf:type clc:Area;
229 clc:hasLandUse ?aLandUse;
230 noa:hasGeometry ?aGeo.
231 ?aLandUse rdf:type ?aLandUseType.
232 FILTER(?aLandUseType = clc:ConiferousForest).
233 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^strdf:WKT,?aGeo)).
234 }]]></value>
235 </list>
236 <list>
237 <!-- Bean -->
238 <value>Query</value>
239 <!-- Format -->
240 <value>KMZMAP</value>
241 <!-- Label -->
242 <value>Query 4: Discover primary roads</value>
243 <!-- Statement -->
244 <value><![CDATA[# Get all municipalities of Pelloponnese
245 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
246 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
247 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
248 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
249 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
250 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
251 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
252 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
253 PREFIX georss: <http://www.georss.org/georss/>
254 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
255 PREFIX lgdo: <http://linkedgeodata.org/lontology/>
256 PREFIX gn: <http://www.geonames.org/ontology#>
258 SELECT ?d ?dGeo
259 WHERE { ?d rdf:type gag:Dhmos;
260 strdf:hasGeometry ?dGeo;
261 rdfs:label ?dLabel.
262 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?dGeo)).
263 }]]></value>
264 </list>
265 <list>
266 <!-- Bean -->
267 <value>Query</value>
268 <!-- Format -->
269 <value>KMZMAP</value>
270 <!-- Label -->
271 <value>Query 5: Get all primary roads in Pelloponnese</value>
272 <!-- Statement -->
273 <value><![CDATA[# Get all primary roads in Pelloponnese
274 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
275 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
276 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
277 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
278 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
279 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
280 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
281 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
282 PREFIX georss: <http://www.georss.org/georss/>
283 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
284 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
285 PREFIX gn: <http://www.geonames.org/ontology#>
287 SELECT ?r ?rGeo
288 WHERE { ?r rdf:type ?rType ;
289 noa:hasGeometry ?rGeo .
290 FILTER(?rType = lgdo:Primary) .
291 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05,21.027 38.36))"^^strdf:WKT, ?rGeo) ).
292 }]]></value>
293 </list>
294 <list>
295 <!-- Bean -->
296 <value>Query</value>
297 <!-- Format -->
298 <value>KMZMAP</value>
299 <!-- Label -->
300 <value>Query 6: Discover hotspots</value>
301 <!-- Statement -->
302 <value><![CDATA[# Get all hotspots
303 # - in Pelloponesus
304 # - at 2007-08-24
305 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
306 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
307 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
308 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
309 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
310 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
311 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
312 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
313 PREFIX georss: <http://www.georss.org/georss/>
314 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
315 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
316 PREFIX gn: <http://www.geonames.org/ontology#>
318 SELECT ?h ?hAcqTime (strdf:transform(?hGeo, <http://www.opengis.net/def/crs/EPSG/0/4326>) as ?geo)
319 WHERE { ?h rdf:type noa:Hotspot;
320 noa:hasGeometry ?hGeo;
321 noa:hasAcquisitionTime ?hAcqTime;
322 noa:producedFromProcessingChain ?hChain .
323 FILTER(str(?hChain) = "StaticThresholds").
324 FILTER(?hAcqTime = "2007-08-24T14:45:00"^^xsd:dateTime) .
325 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?hGeo)) .
326 ?a rdf:type clc:Area;
327 clc:hasLandUse ?aLandUse;
328 noa:hasGeometry ?aGeo.
329 ?aLandUse rdf:type ?aLandUseType.
330 FILTER(?aLandUseType = clc:Forest).
331 FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^strdf:WKT,?aGeo)).
332 FILTER(strdf:overlap(?aGeo, ?hGeo)) .
333 }]]></value>
334 </list>
335 <!-- <list> -->
336 <!-- Bean -->
337 <!-- <value>Query</value> -->
338 <!-- Format -->
339 <!-- <value>KMZMAP</value> -->
340 <!-- Label -->
341 <!-- <value></value> -->
342 <!-- Statement -->
343 <!-- <value></value> -->
344 <!-- </list> -->
345 </list>
346 </constructor-arg>
347 </bean>
348 </beans>