Strabon

view endpoint/WebContent/WEB-INF/beans.xml @ 305:c91ab390b86d

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