Strabon

view endpoint/WebContent/WEB-INF/beans.xml @ 550:e5930301d59c

added connection.properties under WEB-INF/ directory. Now the connection details have to be given in that file only.
This change is for facilitating the permanent update of connection details.
author Babis Nikolaou <charnik@di.uoa.gr>
date Sat Sep 15 23:52:14 2012 +0300 (2012-09-15)
parents 4657ea5fa82d
children 157780b4d79b
line source
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans
5 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
6 xmlns:jaxws="http://cxf.apache.org/jaxws"
7 jaxws:schemaLocation="http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
9 <bean id="serverProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
10 <property name="locations">
11 <list>
12 <value>WEB-INF/connection.properties</value>
13 </list>
14 </property>
15 </bean>
17 <bean
18 id="strabonBean"
19 class="eu.earthobservatory.org.StrabonEndpoint.StrabonBeanWrapper"
20 destroy-method="destroy">
22 <constructor-arg type="java.lang.String" >
23 <!-- Database name -->
24 <value>${dbname}</value>
25 </constructor-arg>
27 <constructor-arg type="java.lang.String" >
28 <!-- Username -->
29 <value>${username}</value>
30 </constructor-arg>
32 <constructor-arg type="java.lang.String" >
33 <!-- Password -->
34 <value>${password}</value>
35 </constructor-arg>
37 <constructor-arg type="int" >
38 <!-- Port -->
39 <value>${port}</value>
40 </constructor-arg>
42 <constructor-arg type="java.lang.String" >
43 <!-- Database server -->
44 <value>${hostname}</value>
45 </constructor-arg>
47 <constructor-arg type="boolean" >
48 <!-- Check for locks and remove them (in case of a crash) -->
49 <value>true</value>
50 </constructor-arg>
52 <constructor-arg type="java.lang.String" >
53 <!-- Database Backend (either "postgis" or "monetdb") -->
54 <value>${dbengine}</value>
55 </constructor-arg>
57 <constructor-arg>
58 <list>
59 <list>
60 <!-- Bean -->
61 <value>Query</value>
62 <!-- Format -->
63 <value>HTML</value>
64 <!-- Label -->
65 <value>Query 1: Discover raw data and products</value>
66 <!-- Statement -->
67 <value><![CDATA[# Discovering raw data and products
68 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
69 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
70 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
71 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
72 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
73 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
74 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
75 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
76 PREFIX georss: <http://www.georss.org/georss/>
77 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
78 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
79 PREFIX gn: <http://www.geonames.org/ontology#>
81 SELECT ?filename
82 WHERE {?file rdf:type noa:ShpFile ;
83 noa:hasFilename ?filename ;
84 noa:hasAcquisitionTime ?sensingTime .
85 FILTER( str(?sensingTime) >= "2007-08-26T12:00:00" ) .
86 FILTER( str(?sensingTime) <= "2007-08-26T12:30:00" ) .
87 ?file noa:isDerivedFromSensor ?sensor .
88 FILTER( str(?sensor) = "MSG2" ) .
89 ?file noa:producedFromProcessingChain ?chain .
90 FILTER( str(?chain) = "StaticThresholds" ) .
91 }]]></value>
92 <value>Find all shapefiles derived from sensor MSG2 between [2007-08-26T12:00:00,2007-08-26T12:30:00], using dynamic thresholds.</value>
93 </list>
94 <list>
95 <!-- Bean -->
96 <value>Query</value>
97 <!-- Format -->
98 <value>KMZ</value>
99 <!-- Label -->
100 <value>Query 2: Discover Hotspots</value>
101 <!-- Statement -->
102 <value><![CDATA[# Get all hotspots in Pelloponesus at 2007-08-24
103 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
104 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
105 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
106 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
107 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
108 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
109 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
110 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
111 PREFIX georss: <http://www.georss.org/georss/>
112 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
113 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
114 PREFIX gn: <http://www.geonames.org/ontology#>
116 SELECT ?h ?hAcqTime ?hConfidence ?hConfirmation ?hProvider ?hSensor ?hSatellite (strdf:transform(?hGeo, <http://www.opengis.net/def/crs/EPSG/0/4326>) as ?geo)
117 WHERE { ?h rdf:type noa:Hotspot;
118 noa:hasGeometry ?hGeo;
119 noa:hasAcquisitionTime ?hAcqTime;
120 noa:hasConfidence ?hConfidence;
121 noa:isProducedBy ?hProvider;
122 noa:hasConfirmation ?hConfirmation;
123 noa:isDerivedFromSensor ?hSensor;
124 noa:isDerivedFromSatellite ?hSatellite ;
125 noa:producedFromProcessingChain ?hChain .
126 FILTER(str(?hChain) = "StaticThresholds").
127 FILTER(?hAcqTime = "2007-08-24T14:45:00"^^xsd:dateTime) .
128 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)) .
129 }]]></value>
130 <value>Find all hotspots in Pelloponesus derived from the dynamic thresholds processing chain at 2007-08-24T14:45:00. </value>
131 </list>
132 <list>
133 <!-- Bean -->
134 <value>Update</value>
135 <!-- Format -->
136 <value>HTML</value>
137 <!-- Label -->
138 <value>Update A: Invalidate hotspots in sea</value>
139 <!-- Statement -->
140 <value><![CDATA[# Delete hotspots that lie in sea
141 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
142 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
143 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
144 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
145 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
146 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
147 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
148 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
149 PREFIX georss: <http://www.georss.org/georss/>
150 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
151 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
152 PREFIX gn: <http://www.geonames.org/ontology#>
153 DELETE {?h ?property ?object}
154 WHERE { ?h rdf:type noa:Hotspot;
155 noa:hasAcquisitionTime ?hAcqTime;
156 noa:producedFromProcessingChain ?hChain;
157 noa:hasGeometry ?hGeo;
158 ?property ?object.
159 FILTER(str(?hChain) = "StaticThresholds").
160 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)).
161 FILTER("2007-08-24T14:45:00"^^xsd:dateTime = ?hAcqTime).
162 OPTIONAL {
163 ?c rdf:type noa:Coastline;
164 noa:hasGeometry ?cGeo.
165 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)).
166 FILTER(strdf:anyInteract(?hGeo, ?cGeo)) .
167 }
168 FILTER(!bound(?c)).
169 }]]></value>
170 <value>Mark as invalid all hotspots produced by the static thresholds processing chain and are acquired at 2007-08-24T14:45:00 which are located in the sea</value>
171 </list>
172 <list>
173 <!-- Bean -->
174 <value>Update</value>
175 <!-- Format -->
176 <value>HTML</value>
177 <!-- Label -->
178 <value>Update B: Refine hotspots in sea</value>
179 <!-- Statement -->
180 <value><![CDATA[# Refine the geometry of hotspots that partially lie in sea
181 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
182 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
183 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
184 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
187 INSERT { ?h noa:isDiscarded "1"^^xsd:int .
188 ?valid rdf:type noa:Hotspot ;
189 noa:hasConfidence ?conf ;
190 noa:hasGeometry ?dif ;
191 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
192 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
193 noa:hasConfirmation noa:unknown ;
194 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
195 noa:isProducedBy noa:noa ;
196 noa:isDerivedFromSatellite ?sat .
197 }
198 WHERE {
199 SELECT DISTINCT ?h ?hGeo (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif) (BNODE() AS ?valid) ?conf ?sat
200 WHERE {
201 ?h rdf:type noa:Hotspot ;
202 noa:hasAcquisitionTime ?hAcqTime ;
203 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
204 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
205 noa:hasGeometry ?hGeo ;
206 noa:hasConfidence ?conf ;
207 noa:isDerivedFromSatellite ?sat .
208 FILTER("TIMESTAMP"^^xsd:dateTime = ?hAcqTime) .
209 ?c rdf:type noa:Coastline ;
210 noa:hasGeometry ?cGeo .
211 FILTER(strdf:anyInteract(?hGeo, ?cGeo)) .
212 }
213 GROUP BY ?h ?hGeo ?conf ?sat
214 HAVING strdf:overlap(?hGeo, strdf:union(?cGeo))
215 }
216 ]]></value>
217 <value>Refine hotspots acquired at 2007-08-24T14:45:00 removing the part that lies in the sea. </value>
218 </list>
219 <list>
220 <!-- Bean -->
221 <value>Query</value>
222 <!-- Format -->
223 <value>KMZ</value>
224 <!-- Label -->
225 <value>Query 3: Discover coniferous forests</value>
226 <!-- Statement -->
227 <value><![CDATA[#Get all coniferous forests in Peloponnese
228 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
229 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
230 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
231 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
232 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
233 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
234 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
235 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
236 PREFIX georss: <http://www.georss.org/georss/>
237 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
238 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
239 PREFIX gn: <http://www.geonames.org/ontology#>
241 SELECT ?a ?aGeo
242 WHERE{ ?a rdf:type clc:Area;
243 clc:hasLandUse ?aLandUse;
244 noa:hasGeometry ?aGeo.
245 ?aLandUse rdf:type ?aLandUseType.
246 FILTER(?aLandUseType = clc:ConiferousForest).
247 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)).
248 }]]></value>
249 <value>Discover all coniferous forests using the clc ontology </value>
250 </list>
251 <list>
252 <!-- Bean -->
253 <value>Query</value>
254 <!-- Format -->
255 <value>KMZ</value>
256 <!-- Label -->
257 <value>Query 4: Discover primary roads</value>
258 <!-- Statement -->
259 <value><![CDATA[# Get all municipalities of Pelloponnese
260 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
261 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
262 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
263 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
264 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
265 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
266 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
267 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
268 PREFIX georss: <http://www.georss.org/georss/>
269 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
270 PREFIX lgdo: <http://linkedgeodata.org/lontology/>
271 PREFIX gn: <http://www.geonames.org/ontology#>
273 SELECT ?d ?dGeo
274 WHERE { ?d rdf:type gag:Dhmos;
275 strdf:hasGeometry ?dGeo;
276 rdfs:label ?dLabel.
277 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)).
278 }]]></value>
279 <value>Find all municipalities of Pelloponnese using kallikratis ontology </value>
280 </list>
281 <list>
282 <!-- Bean -->
283 <value>Query</value>
284 <!-- Format -->
285 <value>KMZ</value>
286 <!-- Label -->
287 <value>Query 5: Get all primary roads in Pelloponnese</value>
288 <!-- Statement -->
289 <value><![CDATA[# Get all primary roads in Pelloponnese
290 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
291 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
292 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
293 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
294 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
295 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
296 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
297 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
298 PREFIX georss: <http://www.georss.org/georss/>
299 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
300 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
301 PREFIX gn: <http://www.geonames.org/ontology#>
303 SELECT ?r ?rGeo
304 WHERE { ?r rdf:type ?rType ;
305 noa:hasGeometry ?rGeo .
306 FILTER(?rType = lgdo:Primary) .
307 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) ).
308 }]]></value>
309 <value>Get all primary roads in Pelloponnese using the linked geodata ontology </value>
310 </list>
311 <list>
312 <!-- Bean -->
313 <value>Query</value>
314 <!-- Format -->
315 <value>KMZ</value>
316 <!-- Label -->
317 <value>Query 6: Discover hotspots</value>
318 <!-- Statement -->
319 <value><![CDATA[# Get all hotspots in Pelloponesus at 2007-08-24
320 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
321 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
322 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
323 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
324 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
325 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
326 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
327 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
328 PREFIX georss: <http://www.georss.org/georss/>
329 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
330 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
331 PREFIX gn: <http://www.geonames.org/ontology#>
333 SELECT ?h ?hAcqTime (strdf:transform(?hGeo, <http://www.opengis.net/def/crs/EPSG/0/4326>) as ?geo)
334 WHERE { ?h rdf:type noa:Hotspot;
335 noa:hasGeometry ?hGeo;
336 noa:hasAcquisitionTime ?hAcqTime;
337 noa:producedFromProcessingChain ?hChain .
338 FILTER(str(?hChain) = "StaticThresholds").
339 FILTER(?hAcqTime = "2007-08-24T14:45:00"^^xsd:dateTime) .
340 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)) .
341 ?a rdf:type clc:Area;
342 clc:hasLandUse ?aLandUse;
343 noa:hasGeometry ?aGeo.
344 ?aLandUse rdf:type ?aLandUseType.
345 FILTER(?aLandUseType = clc:Forest).
346 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)).
347 FILTER(strdf:overlap(?aGeo, ?hGeo)) .
348 }]]></value>
349 <value>Find all hotspots located in Pelloponnesian forests and acquired at 2007-08-24T14:45:00 using static thresholds processing chain </value>
350 </list>
351 <!-- <list> -->
352 <!-- Bean -->
353 <!-- <value>Query</value> -->
354 <!-- Format -->
355 <!-- <value>KMZ</value> -->
356 <!-- Label -->
357 <!-- <value></value> -->
358 <!-- Statement -->
359 <!-- <value></value> -->
360 <!-- </list> -->
361 </list>
362 </constructor-arg>
363 </bean>
364 </beans>