Strabon

view endpoint/WebContent/WEB-INF/beans.xml @ 688:9a4bb8e81273

split queryresultio-spatial into submodules (one for API that provides the stSPARQLQueryResultFormat and one for each writer implementation, e.g., XML, HTML, etc.)
Renamed resultio to resultio-spatial.
Renamed endpoint-client artifact to strabon-endpoint-client.
Moved org.openrdf.resultio.Format to eu.earthobservatory.utils.
Renamed and moved org.openrdf.resultio.stSPARQLQueryResultWriter to eu.earthobservatory.utils.stSPARQLQueryResultToFormatAdapter. This is a factory class for stSPARQLQueryResults.

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