Strabon

view endpoint/WebContent/WEB-INF/beans.xml @ 634:95f6f0d699a4

added default prefixes in the query text area in endpoint
author Babis Nikolaou <charnik@di.uoa.gr>
date Thu Oct 11 14:53:50 2012 +0200 (2012-10-11)
parents e6d414360f33
children f840796400bf
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 type="int" >
58 <!-- Query limit -->
59 <value>1000</value>
60 </constructor-arg>
62 <constructor-arg type="java.lang.String" >
63 <!-- Default prefixes -->
64 <value><![CDATA[PREFIX lgd:<http://linkedgeodata.org/triplify/>
65 PREFIX lgdgeo:<http://www.w3.org/2003/01/geo/wgs84_pos#>
66 PREFIX lgdont:<http://linkedgeodata.org/ontology/>
67 PREFIX geonames:<http://www.geonames.org/ontology#>
68 PREFIX clc: <http://geo.linkedopendata.gr/corine/ontology#>
69 PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
70 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
71 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
72 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
73 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
74 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
75 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
76 ]]>
77 </value>
78 </constructor-arg>
80 <constructor-arg>
81 <list>
82 <list>
83 <!-- Single valued elements correspond to headers -->
84 <value>Dataset Presentation</value>
85 </list>
86 <list>
87 <!-- Bean -->
88 <value>Query</value>
89 <!-- Format -->
90 <value>KML</value>
91 <!-- Label -->
92 <value>[CLC] Select all CLC information for Venice</value>
93 <!-- Statement -->
94 <value><![CDATA[PREFIX strdf:<http://strdf.di.uoa.gr/ontology#>
95 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
96 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
97 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
99 SELECT ?clc ?clcType ?clcID ?clcCode ?clcRemark ?clcShapeLength ?clcArea ?clcAreaHa ?clcLandUse ?clcGeo
100 WHERE {
101 ?clc a ?clcType .
102 ?clc teleios:hasCode ?clcCode .
103 ?clc teleios:hasID ?clcID .
104 ?clc teleios:hasRemark ?clcRemark .
105 ?clc teleios:hasShape_Leng ?clcShapeLength .
106 ?clc teleios:hasShape_Area ?clcArea .
107 ?clc teleios:hasArea_ha ?clcAreaHa .
108 ?clc teleios:hasLandUse ?clcLandUse .
109 ?clc teleios:hasGeometry ?clcGeo .
110 #Venice
111 FILTER (strdf:anyInteract(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
112 #Toulouse
113 #FILTER (strdf:anyInteract(?clcGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
114 #Timisoara
115 #FILTER (strdf:anyInteract(?clcGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
116 }
117 ]]></value>
118 <!-- Description -->
119 <value></value>
120 <!-- Hander (plain, download, map or map_local)-->
121 <value>map_local</value>
122 </list>
123 <list>
124 <!-- Bean -->
125 <value>Query</value>
126 <!-- Format -->
127 <value>KML</value>
128 <!-- Label -->
129 <value>[LGD] Select all LGD information for Venice</value>
130 <!-- Statement -->
131 <value><![CDATA[PREFIX strdf:<http://strdf.di.uoa.gr/ontology#>
132 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
133 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
134 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
135 PREFIX lgd:<http://linkedgeodata.org/triplify/>
136 PREFIX lgdgeo:<http://www.w3.org/2003/01/geo/wgs84_pos#>
137 PREFIX lgdont:<http://linkedgeodata.org/ontology/>
139 SELECT ?lgd ?lgdDirectType (GROUP_CONCAT(?lgdType ; separator=", ") AS ?lgdTypes) ?lgdLabel ?lgdGeo
140 WHERE {
141 ?lgd lgdont:directType ?lgdDirectType .
142 OPTIONAL {
143 ?lgd a ?lgdType .
144 FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
145 }
146 ?lgd rdfs:label ?lgdLabel .
147 ?lgd lgdgeo:geometry ?lgdGeo .
148 #Venice
149 FILTER (strdf:anyInteract(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
150 #Toulouse
151 #FILTER (strdf:anyInteract(?lgdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
152 #Timisoara
153 #FILTER (strdf:anyInteract(?lgdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
155 }
156 GROUP BY ?lgd ?lgdDirectType ?lgdLabel ?lgdGeo
157 ]]></value>
158 <!-- Description -->
159 <value></value>
160 <!-- Hander (plain, download, map or map_local)-->
161 <value>map_local</value>
162 </list>
163 <list>
164 <!-- Bean -->
165 <value>Query</value>
166 <!-- Format -->
167 <value>KML</value>
168 <!-- Label -->
169 <value>[Geonames] Select all Geonames information for Venice</value>
170 <!-- Statement -->
171 <value><![CDATA[PREFIX strdf:<http://strdf.di.uoa.gr/ontology#>
172 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
173 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
174 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
175 PREFIX lgd:<http://linkedgeodata.org/triplify/>
176 PREFIX lgdgeo:<http://www.w3.org/2003/01/geo/wgs84_pos#>
177 PREFIX lgdont:<http://linkedgeodata.org/ontology/>
178 PREFIX geonames:<http://www.geonames.org/ontology#>
180 SELECT ?geoID ?name (GROUP_CONCAT(?altName; separator=", ") AS ?altNames) ?parentFeature ?parentCountry ?parentADM1 ?parentADM2 ?parentADM3 (GROUP_CONCAT(?near; separator=", ") AS ?nearFeatures) ?geoIdGeo
181 WHERE {
182 ?geoId geonames:name ?name .
183 OPTIONAL {?geoId geonames:alternateName ?altName } .
184 ?geoId geonames:featureClass ?geoFeature .
185 ?geoId geonames:countryCode ?country .
186 OPTIONAL {?geoId geonames:parentFeature ?parentFeature . } .
187 OPTIONAL {?geoId geonames:parentCountry ?parentCountry . } .
188 OPTIONAL {?geoId geonames:parentADM1 ?parentADM1 . } .
189 OPTIONAL {?geoId geonames:parentADM2 ?parentADM2 . } .
190 OPTIONAL {?geoId geonames:parentADM3 ?parentADM3 . } .
191 OPTIONAL {?geoId geonames:nearbyFeatures ?near . } .
192 ?geoId teleios:hasGeography ?geoIdGeo .
193 #Venice
194 FILTER (strdf:anyInteract(?geoIdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
195 #Toulouse
196 #FILTER (strdf:anyInteract(?geoIdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
197 #Timisoara
198 #FILTER (strdf:anyInteract(?geoIdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
199 }
200 GROUP BY ?geoID ?name ?parentFeature ?parentCountry ?parentADM1 ?parentADM2 ?parentADM3 ?geoIdGeo
201 ]]></value>
202 <!-- Description -->
203 <value></value>
204 <!-- Hander (plain, download, map or map_local)-->
205 <value>map_local</value>
206 </list>
207 <list>
208 <!-- Bean -->
209 <value>Query</value>
210 <!-- Format -->
211 <value>KML</value>
212 <!-- Label -->
213 <value>[DLR] Select all patches and their corresponding labels</value>
214 <!-- Statement -->
215 <value><![CDATA[#select all patches and their labels (Venice)
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 dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
219 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
220 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
221 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
224 SELECT ?g (GROUP_CONCAT(?annotation; separator=", ") AS ?labels)
225 WHERE {
226 ?p rdf:type dlr:Patch .
227 ?p dlr:hasGeometry ?g .
228 ?p dlr:hasLabel ?l .
229 ?l rdf:type dlr:Label .
230 ?l dlr:correspondsTo ?annotation .
231 #Venice
232 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
233 #Toulouse
234 #FILTER (strdf:anyInteract(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
235 #Timisoara
236 #FILTER (strdf:anyInteract(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
237 }
238 GROUP BY ?g
239 ]]></value>
240 <!-- Description -->
241 <value></value>
242 <!-- Hander (plain, download, map or map_local)-->
243 <value>map_local</value>
244 </list>
245 <list>
246 <!-- Bean -->
247 <value>Query</value>
248 <!-- Format -->
249 <value>KML</value>
250 <!-- Label -->
251 <value>[DLR] Select all patches corresponding to water</value>
252 <!-- Statement -->
253 <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
254 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
255 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
256 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
257 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
258 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
261 SELECT ?g (GROUP_CONCAT(?annotation; separator=", ") AS ?labels)
262 WHERE {
263 ?p rdf:type dlr:Patch .
264 ?p dlr:hasGeometry ?g .
265 ?p dlr:hasLabel ?l .
266 ?l rdf:type dlr:Label .
267 ?l dlr:correspondsTo dlr:Water .
268 #Venice
269 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
270 #Toulouse
271 #FILTER (strdf:anyInteract(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
272 #Timisoara
273 #FILTER (strdf:anyInteract(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
274 }
275 GROUP BY ?g
276 ]]></value>
277 <!-- Description -->
278 <value></value>
279 <!-- Hander (plain, download, map or map_local)-->
280 <value>map_local</value>
281 </list>
282 <list>
283 <!-- Bean -->
284 <value>Query</value>
285 <!-- Format -->
286 <value>KML</value>
287 <!-- Label -->
288 <value>[DLR] Select all patches corresponding to all subclasses of water</value>
289 <!-- Statement -->
290 <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
291 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
292 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
293 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
294 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
295 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
298 SELECT ?g (GROUP_CONCAT(?annotation; separator=", ") AS ?labels)
299 WHERE {
300 ?p rdf:type dlr:Patch .
301 ?p dlr:hasGeometry ?g .
302 ?p dlr:hasLabel ?l .
303 ?l rdf:type dlr:Label .
304 ?l dlr:correspondsTo ?annotation .
305 ?annotation rdfs:subClassOf dlr:Water .
306 #Venice
307 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
308 #Toulouse
309 #FILTER (strdf:anyInteract(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
310 #Timisoara
311 #FILTER (strdf:anyInteract(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
312 }
313 GROUP BY ?g
314 ]]></value>
315 <!-- Description -->
316 <value></value>
317 <!-- Hander (plain, download, map or map_local)-->
318 <value>map_local</value>
319 </list>
320 <list>
321 <!-- Single valued elements correspond to headers -->
322 <value>First level statistics</value>
323 </list>
324 <list>
325 <!-- Bean -->
326 <value>Query</value>
327 <!-- Format -->
328 <value>HTML</value>
329 <!-- Label -->
330 <value>[DLR] How many labels are identified in a scene?</value>
331 <!-- Statement -->
332 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
333 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
334 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
335 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
336 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
337 PREFIX lgd: <http://linkedgeodata.org/triplify/>
338 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
339 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
340 PREFIX geonames: <http://www.geonames.org/ontology#>
341 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
342 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
344 SELECT ?annotation (COUNT(DISTINCT ?p) AS ?numberOfPatches)
345 WHERE {
346 ?p rdf:type dlr:Patch .
347 ?p dlr:hasGeometry ?g .
348 ?p dlr:hasLabel ?l .
349 ?l rdf:type dlr:Label .
350 ?l dlr:correspondsTo ?annotation .
351 #Venice
352 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
353 #Toulouse
354 #FILTER (strdf:anyInteract(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
355 #Timisoara
356 #FILTER (strdf:anyInteract(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
357 }
358 GROUP BY ?annotation
359 ORDER BY DESC(?numberOfPatches)]]></value>
360 <!-- Description -->
361 <value></value>
362 <!-- Hander (plain, download, map or map_local)-->
363 <value>plain</value>
364 </list>
365 <list>
366 <!-- Bean -->
367 <value>Query</value>
368 <!-- Format -->
369 <value>HTML</value>
370 <!-- Label -->
371 <value>[CLC] How many instances of a CLC class exist in a scene?</value>
372 <!-- Statement -->
373 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
374 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
375 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
376 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
377 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
378 PREFIX lgd: <http://linkedgeodata.org/triplify/>
379 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
380 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
381 PREFIX geonames: <http://www.geonames.org/ontology#>
382 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
383 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
386 SELECT ?clcLandUse (COUNT(DISTINCT ?clc) AS ?count)
387 WHERE {
388 ?clc a teleios:Area .
389 ?clc teleios:hasCode ?clcCode .
390 ?clc teleios:hasLandUse ?clcLandUse .
391 ?clc teleios:hasGeometry ?clcGeo .
393 #Venice
394 FILTER (strdf:anyInteract(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
395 #Toulouse
396 #FILTER (strdf:anyInteract(?clcGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
397 #Timisoara
398 #FILTER (strdf:anyInteract(?clcGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
399 }
400 GROUP BY ?clcLandUse
401 ORDER BY DESC(?count)]]></value>
402 <!-- Description -->
403 <value></value>
404 <!-- Hander (plain, download, map or map_local)-->
405 <value></value>
406 </list>
407 <list>
408 <!-- Bean -->
409 <value>Query</value>
410 <!-- Format -->
411 <value>HTML</value>
412 <!-- Label -->
413 <value>[LGD] How many LGD classes are identified in a scene? (coarse-grained)</value>
414 <!-- Statement -->
415 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
416 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
417 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
418 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
419 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
420 PREFIX lgd: <http://linkedgeodata.org/triplify/>
421 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
422 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
423 PREFIX geonames: <http://www.geonames.org/ontology#>
424 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
425 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
427 SELECT ?lgdType (COUNT(DISTINCT ?lgd) AS ?count)
428 WHERE {
429 ?lgd lgdont:directType ?lgdDirectType .
430 OPTIONAL {
431 ?lgd a ?lgdType .
432 FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
433 }
434 ?lgd lgdgeo:geometry ?lgdGeo .
435 #Venice
436 FILTER (strdf:anyInteract(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
437 #Toulouse
438 #FILTER (strdf:anyInteract(?lgdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
439 #Timisoara
440 #FILTER (strdf:anyInteract(?lgdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
442 }
443 GROUP BY ?lgdType
444 ORDER BY DESC(?count)]]></value>
445 <!-- Description -->
446 <value></value>
447 <!-- Hander (plain, download, map or map_local)-->
448 <value></value>
449 </list>
450 <list>
451 <!-- Bean -->
452 <value>Query</value>
453 <!-- Format -->
454 <value>HTML</value>
455 <!-- Label -->
456 <value>[LGD] How many LGD classes are identified in a scene? (fine-grained)</value>
457 <!-- Statement -->
458 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
459 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
460 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
461 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
462 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
463 PREFIX lgd: <http://linkedgeodata.org/triplify/>
464 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
465 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
466 PREFIX geonames: <http://www.geonames.org/ontology#>
467 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
468 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
470 SELECT ?lgdDirectType (COUNT(DISTINCT ?lgd) AS ?count)
471 WHERE {
472 ?lgd lgdont:directType ?lgdDirectType .
473 OPTIONAL {
474 ?lgd a ?lgdType .
475 FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
476 }
477 ?lgd lgdgeo:geometry ?lgdGeo .
478 #Venice
479 FILTER (strdf:anyInteract(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
480 #Toulouse
481 #FILTER (strdf:anyInteract(?lgdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
482 #Timisoara
483 #FILTER (strdf:anyInteract(?lgdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
485 }
486 GROUP BY ?lgdDirectType
487 ORDER BY DESC(?count)]]></value>
488 <!-- Description -->
489 <value></value>
490 <!-- Hander (plain, download, map or map_local)-->
491 <value></value>
492 </list>
493 <list>
494 <!-- Bean -->
495 <value>Query</value>
496 <!-- Format -->
497 <value>HTML</value>
498 <!-- Label -->
499 <value>[Geonames] How many Geonames classes are identified in a scene?</value>
500 <!-- Statement -->
501 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
502 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
503 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
504 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
505 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
506 PREFIX lgd: <http://linkedgeodata.org/triplify/>
507 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
508 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
509 PREFIX geonames: <http://www.geonames.org/ontology#>
510 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
511 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
513 SELECT ?geoFeature ?comment (COUNT(DISTINCT ?geoId) AS ?count)
514 WHERE {
515 ?geoId geonames:name ?name .
516 OPTIONAL {?geoId geonames:alternateName ?altName } .
517 ?geoId geonames:featureClass ?geoFeature .
518 ?geoFeature rdfs:comment ?comment .
519 ?geoId geonames:countryCode ?country .
520 ?geoId teleios:hasGeography ?geoIdGeo .
521 #Venice
522 FILTER (strdf:anyInteract(?geoIdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
523 #Toulouse
524 #FILTER (strdf:anyInteract(?geoIdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
525 #Timisoara
526 #FILTER (strdf:anyInteract(?geoIdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
527 }
528 GROUP BY ?geoFeature ?comment
529 ORDER BY DESC(?count)
530 ]]></value>
531 <!-- Description -->
532 <value></value>
533 <!-- Hander (plain, download, map or map_local)-->
534 <value></value>
535 </list>
537 <list>
538 <!-- Single valued elements correspond to headers -->
539 <value>Discover correlations between datasets</value>
540 </list>
541 <list>
542 <!-- Bean -->
543 <value>Query</value>
544 <!-- Format -->
545 <value>HTML</value>
546 <!-- Label -->
547 <value>[CLC-DLR] List all labels that are inside an area charatecterized as continuous urban fabric by CLC</value>
548 <!-- Statement -->
549 <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
550 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
551 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
552 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
553 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
554 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
555 PREFIX geof:<http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
557 SELECT DISTINCT ?clcLandUse ?annotation #?g
558 WHERE {
559 ?p rdf:type dlr:Patch .
560 ?p dlr:hasGeometry ?g .
561 ?p dlr:hasLabel ?l .
562 ?l rdf:type dlr:Label .
563 ?l dlr:correspondsTo ?annotation .
564 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
566 ?clc a ?clcType .
567 ?clc teleios:hasCode ?clcCode .
568 ?clc teleios:hasID ?clcID .
569 ?clc teleios:hasLandUse teleios:continuousUrbanFabric .
570 ?clc teleios:hasGeometry ?clcGeo .
571 FILTER (strdf:anyInteract(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
573 FILTER (geof:sf-contains(?clcGeo, ?g)) .
574 }
575 ]]></value>
576 <!-- Description -->
577 <value></value>
578 <!-- Hander (plain, download, map or map_local)-->
579 <value>plain</value>
580 </list>
581 <list>
582 <!-- Bean -->
583 <value>Query</value>
584 <!-- Format -->
585 <value>HTML</value>
586 <!-- Label -->
587 <value>[CLC-DLR] List all CLC classes and the labels that are identified inside their instances.</value>
588 <!-- Statement -->
589 <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
590 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
591 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
592 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
593 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
594 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
595 PREFIX geof:<http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
597 SELECT ?clcLandUse(GROUP_CONCAT(DISTINCT ?annotation; separator=",\n\t\t\t\t\t ") AS ?annotations) #?g
598 WHERE {
599 ?p rdf:type dlr:Patch .
600 ?p dlr:hasGeometry ?g .
601 ?p dlr:hasLabel ?l .
602 ?l rdf:type dlr:Label .
603 ?l dlr:correspondsTo ?annotation .
604 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
606 ?clc a ?clcType .
607 ?clc teleios:hasCode ?clcCode .
608 ?clc teleios:hasID ?clcID .
609 ?clc teleios:hasLandUse ?clcLandUse .
610 ?clc teleios:hasGeometry ?clcGeo .
611 FILTER (strdf:anyInteract(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
613 FILTER (geof:sf-contains(?clcGeo, ?g)) .
614 }
615 GROUP BY ?clcLandUse
616 ]]></value>
617 <!-- Description -->
618 <value></value>
619 <!-- Hander (plain, download, map or map_local)-->
620 <value></value>
621 </list>
622 <list>
623 <!-- Bean -->
624 <value>Query</value>
625 <!-- Format -->
626 <value>HTML</value>
627 <!-- Label -->
628 <value>[DLR-LGD] List all labels and the LGD classes with instances inside patches annotated with each label (coarse-grained).</value>
629 <!-- Statement -->
630 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
631 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
632 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
633 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
634 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
635 PREFIX lgd: <http://linkedgeodata.org/triplify/>
636 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
637 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
638 PREFIX geonames: <http://www.geonames.org/ontology#>
639 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
640 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
642 SELECT ?annotation (GROUP_CONCAT(DISTINCT ?lgdType; separator=",\n\t\t\t\t\t ") AS ?lgdTypes) #?g
643 WHERE {
644 ?p rdf:type dlr:Patch .
645 ?p dlr:hasGeometry ?g .
646 ?p dlr:hasLabel ?l .
647 ?l rdf:type dlr:Label .
648 ?l dlr:correspondsTo ?annotation .
649 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
651 ?lgd lgdont:directType ?lgdDirectType .
652 OPTIONAL {
653 ?lgd a ?lgdType .
654 FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
655 }
656 ?lgd lgdgeo:geometry ?lgdGeo .
657 FILTER (strdf:anyInteract(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
659 FILTER (geof:sf-contains(?g, ?lgdGeo)) .
660 }
661 GROUP BY ?annotation
662 ORDER BY ?annotation]]></value>
663 <!-- Description -->
664 <value></value>
665 <!-- Hander (plain, download, map or map_local)-->
666 <value>plain</value>
667 </list>
668 <list>
669 <!-- Bean -->
670 <value>Query</value>
671 <!-- Format -->
672 <value>HTML</value>
673 <!-- Label -->
674 <value>[DLR-LGD] List all labels and the LGD classes with instances inside patches annotated with each label (fine-grained).</value>
675 <!-- Statement -->
676 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
677 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
678 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
679 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
680 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
681 PREFIX lgd: <http://linkedgeodata.org/triplify/>
682 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
683 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
684 PREFIX geonames: <http://www.geonames.org/ontology#>
685 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
686 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
688 SELECT ?annotation (GROUP_CONCAT(DISTINCT ?lgdDirectType; separator=",\n\t\t\t\t\t ") AS ?lgdDirectTypes) #?g
689 WHERE {
690 ?p rdf:type dlr:Patch .
691 ?p dlr:hasGeometry ?g .
692 ?p dlr:hasLabel ?l .
693 ?l rdf:type dlr:Label .
694 ?l dlr:correspondsTo ?annotation .
695 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
697 ?lgd lgdont:directType ?lgdDirectType .
698 OPTIONAL {
699 ?lgd a ?lgdType .
700 FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
701 }
702 ?lgd lgdgeo:geometry ?lgdGeo .
703 #Venice
704 FILTER (strdf:anyInteract(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
706 FILTER (geof:sf-contains(?g, ?lgdGeo)) .
707 }
708 GROUP BY ?annotation
709 ORDER BY ?annotation]]></value>
710 <!-- Description -->
711 <value></value>
712 <!-- Hander (plain, download, map or map_local)-->
713 <value>plain</value>
714 </list>
715 <list>
716 <!-- Bean -->
717 <value>Query</value>
718 <!-- Format -->
719 <value>HTML</value>
720 <!-- Label -->
721 <value>[DLR-Geonames] List all labels and the GeoNames classes with instances inside patches annotated with each label.</value>
722 <!-- Statement -->
723 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
724 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
725 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
726 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
727 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
728 PREFIX lgd: <http://linkedgeodata.org/triplify/>
729 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
730 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
731 PREFIX geonames: <http://www.geonames.org/ontology#>
732 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
733 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
735 SELECT ?annotation (GROUP_CONCAT(DISTINCT ?geoFeature; separator=",\n\t\t\t\t\t ") AS ?geoFeatures) (GROUP_CONCAT(DISTINCT ?comment; separator=",\n\t\t\t\t\t ") AS ?comments)
736 WHERE {
737 ?p rdf:type dlr:Patch .
738 ?p dlr:hasGeometry ?g .
739 ?p dlr:hasLabel ?l .
740 ?l rdf:type dlr:Label .
741 ?l dlr:correspondsTo ?annotation .
742 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
744 ?geoId geonames:name ?name .
745 OPTIONAL {?geoId geonames:alternateName ?altName } .
746 ?geoId geonames:featureClass ?geoFeature .
747 ?geoFeature rdfs:comment ?comment .
748 ?geoId geonames:countryCode ?country .
749 ?geoId teleios:hasGeography ?geoIdGeo .
750 #Venice
751 FILTER (strdf:anyInteract(?geoIdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
753 FILTER (geof:sf-contains(?g, ?geoIdGeo)) .
754 }
755 GROUP BY ?annotation
756 ORDER BY ?annotation]]></value>
757 <!-- Description -->
758 <value></value>
759 <!-- Hander (plain, download, map or map_local)-->
760 <value>plain</value>
761 </list>
762 <list>
763 <!-- Single valued elements correspond to headers -->
764 <value>Second level statistics</value>
765 </list>
766 <list>
767 <!-- Bean -->
768 <value>Query</value>
769 <!-- Format -->
770 <value>HTML</value>
771 <!-- Label -->
772 <value>[CLC-DLR] How many patches with a specific label are contained by a CLC area?</value>
773 <!-- Statement -->
774 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
775 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
776 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
777 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
778 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
779 PREFIX lgd: <http://linkedgeodata.org/triplify/>
780 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
781 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
782 PREFIX geonames: <http://www.geonames.org/ontology#>
783 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
784 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
786 SELECT ?clcLandUse ?annotation (COUNT(?p) AS ?numberOfPatches)
787 WHERE {
788 #select corine areas
789 ?clc a teleios:Area .
790 ?clc teleios:hasLandUse ?clcLandUse .
791 ?clc teleios:hasGeometry ?clcGeo .
792 #Venice
793 FILTER (strdf:anyInteract(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
794 #Toulouse
795 #FILTER (strdf:anyInteract(?clcGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
796 #Timisoara
797 #FILTER (strdf:anyInteract(?clcGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
799 #select patches
800 ?p rdf:type dlr:Patch .
801 ?p dlr:hasGeometry ?g .
802 ?p dlr:hasLabel ?l .
803 ?l dlr:correspondsTo ?annotation .
804 #Venice
805 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
806 #Toulouse
807 #FILTER (strdf:anyInteract(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
808 #Timisoara
809 #FILTER (strdf:anyInteract(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
811 #FILTER (geof:sf-contains(?clcGeo, ?g)) .
812 FILTER (strdf:contains(?clcGeo, ?g)) .
813 }
814 GROUP BY ?clcLandUse ?annotation
815 ORDER BY ?clcLandUse DESC(?numberOfPatches)]]></value>
816 <!-- Description -->
817 <value></value>
818 <!-- Hander (plain, download, map or map_local)-->
819 <value>plain</value>
820 </list>
821 <list>
822 <!-- Bean -->
823 <value>Query</value>
824 <!-- Format -->
825 <value>HTML</value>
826 <!-- Label -->
827 <value>[DLR-LGD] How many LGD instances are contained by a patch annotated with a specific label? (coarse-grained)</value>
828 <!-- Statement -->
829 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
830 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
831 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
832 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
833 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
834 PREFIX lgd: <http://linkedgeodata.org/triplify/>
835 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
836 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
837 PREFIX geonames: <http://www.geonames.org/ontology#>
838 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
839 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
841 SELECT ?annotation ?lgdType (COUNT(?lgd) AS ?lgdInstances)
842 WHERE {
843 #select patches
844 ?p rdf:type dlr:Patch .
845 ?p dlr:hasGeometry ?g .
846 ?p dlr:hasLabel ?l .
847 ?l dlr:correspondsTo ?annotation .
848 #Venice
849 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
851 #select LGD instances
852 ?lgd lgdont:directType ?lgdDirectType .
853 ?lgd a ?lgdType .
854 FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
855 ?lgd lgdgeo:geometry ?lgdGeo .
856 #Venice
857 FILTER (strdf:anyInteract(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
859 FILTER (geof:sf-contains(?g, ?lgdGeo)) .
860 }
861 GROUP BY ?annotation ?lgdType
862 ORDER BY ?annotation DESC(?lgdInstances)]]></value>
863 <!-- Description -->
864 <value></value>
865 <!-- Hander (plain, download, map or map_local)-->
866 <value>plain</value>
867 </list>
868 <list>
869 <!-- Bean -->
870 <value>Query</value>
871 <!-- Format -->
872 <value>HTML</value>
873 <!-- Label -->
874 <value>[DLR-LGD] How many LGD instances are contained by a patch annotated with a specific label? (fine-grained)</value>
875 <!-- Statement -->
876 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
877 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
878 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
879 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
880 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
881 PREFIX lgd: <http://linkedgeodata.org/triplify/>
882 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
883 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
884 PREFIX geonames: <http://www.geonames.org/ontology#>
885 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
886 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
888 SELECT ?annotation ?lgdDirectType (COUNT(?lgd) AS ?lgdInstances)
889 WHERE {
890 #select patches
891 ?p rdf:type dlr:Patch .
892 ?p dlr:hasGeometry ?g .
893 ?p dlr:hasLabel ?l .
894 ?l dlr:correspondsTo ?annotation .
895 #Venice
896 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
898 #select LGD instances
899 ?lgd lgdont:directType ?lgdDirectType .
900 ?lgd a ?lgdType .
901 FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
902 ?lgd lgdgeo:geometry ?lgdGeo .
903 #Venice
904 FILTER (strdf:anyInteract(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
906 FILTER (geof:sf-contains(?g, ?lgdGeo)) .
907 }
908 GROUP BY ?annotation ?lgdDirectType
909 ORDER BY ?annotation DESC(?lgdInstances)]]></value>
910 <!-- Description -->
911 <value></value>
912 <!-- Hander (plain, download, map or map_local)-->
913 <value>plain</value>
914 </list>
915 <list>
916 <!-- Bean -->
917 <value>Query</value>
918 <!-- Format -->
919 <value>HTML</value>
920 <!-- Label -->
921 <value>[DLR-Geonames] How many Geonames instances are contained by a patch annotated with a specific label?</value>
922 <!-- Statement -->
923 <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
924 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
925 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
926 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
927 PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
928 PREFIX lgd: <http://linkedgeodata.org/triplify/>
929 PREFIX lgdont: <http://linkedgeodata.org/ontology/>
930 PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
931 PREFIX geonames: <http://www.geonames.org/ontology#>
932 PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
933 PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
935 SELECT ?annotation ?geoFeature ?comment (COUNT(?geoId) AS ?geoIdInstances)
936 WHERE {
937 #select patches
938 ?p rdf:type dlr:Patch .
939 ?p dlr:hasGeometry ?g .
940 ?p dlr:hasLabel ?l .
941 ?l dlr:correspondsTo ?annotation .
942 #Venice
943 FILTER (strdf:anyInteract(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
945 #select Geonames instances
946 ?geoId geonames:name ?name .
947 OPTIONAL {?geoId geonames:alternateName ?altName } .
948 ?geoId geonames:featureClass ?geoFeature .
949 ?geoFeature rdfs:comment ?comment .
950 ?geoId geonames:countryCode ?country .
951 ?geoId teleios:hasGeography ?geoIdGeo .
952 #Venice
953 FILTER (strdf:anyInteract(?geoIdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
955 FILTER (geof:sf-contains(?g, ?geoIdGeo)) .
956 }
957 GROUP BY ?annotation ?geoFeature ?comment
958 ORDER BY ?annotation DESC(?geoIdInstances)]]></value>
959 <!-- Description -->
960 <value></value>
961 <!-- Hander (plain, download, map or map_local)-->
962 <value>plain</value>
963 </list>
965 <list>
966 <!-- Single valued elements correspond to headers -->
967 <value>Explore/Modify operations</value>
968 </list>
969 <list>
970 <!-- Link to bean: two arguemnts -->
971 <value>Store</value>
972 <value>store.jsp</value>
973 </list>
974 <list>
975 <!-- Link to bean: two arguemnts -->
976 <value>Query/Update</value>
977 <value>query.jsp</value>
978 </list>
979 <list>
980 <!-- Link to bean: two arguemnts -->
981 <value>Describe</value>
982 <value>describe.jsp</value>
983 </list>
984 <list>
985 <!-- Link to bean: two arguemnts -->
986 <value>Browse</value>
987 <value>browse.jsp</value>
988 </list>
989 <list>
990 <!-- Link to bean: two arguemnts -->
991 <value>Configuration</value>
992 <value>ChangeConnection</value>
993 </list>
994 </list>
995 </constructor-arg>
996 </bean>
997 </beans>