Strabon

changeset 625:1a1fb0a4981a

Added the beans.xml that contains the queries that will be demonstrated at the first year review for the DLR use case.
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Mon Oct 08 00:04:10 2012 +0300 (2012-10-08)
parents e47be5e2bc98
children f4e410b430fb
files endpoint/WebContent/WEB-INF/beans.xml endpoint/WebContent/teleios-header.html
line diff
     1.1 --- a/endpoint/WebContent/WEB-INF/beans.xml	Fri Oct 05 14:09:22 2012 +0300
     1.2 +++ b/endpoint/WebContent/WEB-INF/beans.xml	Mon Oct 08 00:04:10 2012 +0300
     1.3 @@ -66,7 +66,7 @@
     1.4  	                <!-- Format -->
     1.5  	                <value>KML</value>   
     1.6  	                <!-- Label -->
     1.7 -	                <value>Select all CLC information for Venice</value> 
     1.8 +	                <value>[CLC] Select all CLC information for Venice</value> 
     1.9  	                <!-- Statement -->
    1.10  	                <value><![CDATA[PREFIX strdf:<http://strdf.di.uoa.gr/ontology#>
    1.11  PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    1.12 @@ -85,11 +85,11 @@
    1.13     ?clc teleios:hasLandUse ?clcLandUse .
    1.14     ?clc teleios:hasGeometry ?clcGeo .
    1.15     #Venice
    1.16 -   FILTER (strdf:inside(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
    1.17 +   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)) .
    1.18     #Toulouse
    1.19 -   #FILTER (strdf:inside(?clcGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
    1.20 +   #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)) .
    1.21     #Timisoara
    1.22 -   #FILTER (strdf:inside(?clcGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
    1.23 +   #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)) .
    1.24  }
    1.25  ]]></value>
    1.26  	                <!-- Description -->
    1.27 @@ -103,7 +103,7 @@
    1.28  	                <!-- Format -->
    1.29  	                <value>KML</value>   
    1.30  	                <!-- Label -->
    1.31 -	                <value>Select all LGD information for Venice</value> 
    1.32 +	                <value>[LGD] Select all LGD information for Venice</value> 
    1.33  	                <!-- Statement -->
    1.34  	                <value><![CDATA[PREFIX strdf:<http://strdf.di.uoa.gr/ontology#>
    1.35  PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    1.36 @@ -123,11 +123,11 @@
    1.37     ?lgd rdfs:label ?lgdLabel .
    1.38     ?lgd lgdgeo:geometry ?lgdGeo .
    1.39     #Venice
    1.40 -   FILTER (strdf:inside(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
    1.41 +   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)) .
    1.42     #Toulouse
    1.43 -   #FILTER (strdf:inside(?lgdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
    1.44 +   #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)) .
    1.45     #Timisoara
    1.46 -   #FILTER (strdf:inside(?lgdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
    1.47 +   #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)) .
    1.48  
    1.49  }
    1.50  GROUP BY ?lgd ?lgdDirectType ?lgdLabel ?lgdGeo
    1.51 @@ -143,7 +143,7 @@
    1.52  	                <!-- Format -->
    1.53  	                <value>KML</value>   
    1.54  	                <!-- Label -->
    1.55 -	                <value>Select all Geonames information for Venice</value> 
    1.56 +	                <value>[Geonames] Select all Geonames information for Venice</value> 
    1.57  	                <!-- Statement -->
    1.58  	                <value><![CDATA[PREFIX strdf:<http://strdf.di.uoa.gr/ontology#>
    1.59  PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    1.60 @@ -168,11 +168,11 @@
    1.61  OPTIONAL {?geoId geonames:nearbyFeatures ?near . } .
    1.62  ?geoId teleios:hasGeography ?geoIdGeo .
    1.63     #Venice
    1.64 -   FILTER (strdf:inside(?geoIdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
    1.65 +   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)) .
    1.66     #Toulouse
    1.67 -   #FILTER (strdf:inside(?geoIdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
    1.68 +   #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)) .
    1.69     #Timisoara
    1.70 -   #FILTER (strdf:inside(?geoIdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
    1.71 +   #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)) .
    1.72  }
    1.73  GROUP BY  ?geoID ?name ?parentFeature ?parentCountry ?parentADM1 ?parentADM2 ?parentADM3 ?geoIdGeo
    1.74  	                ]]></value>
    1.75 @@ -187,12 +187,12 @@
    1.76  	                <!-- Format -->
    1.77  	                <value>KML</value>   
    1.78  	                <!-- Label -->
    1.79 -	                <value>Select all patches and their corresponding labels</value> 
    1.80 +	                <value>[DLR] Select all patches and their corresponding labels</value> 
    1.81  	                <!-- Statement -->
    1.82  	                <value><![CDATA[#select all patches and their labels (Venice)
    1.83  PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    1.84  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    1.85 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
    1.86 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
    1.87  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
    1.88  PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    1.89  PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
    1.90 @@ -206,11 +206,11 @@
    1.91     ?l rdf:type dlr:Label .
    1.92     ?l dlr:correspondsTo ?annotation .
    1.93     #Venice
    1.94 -   FILTER (strdf:inside(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
    1.95 +   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)) .
    1.96     #Toulouse
    1.97 -   #FILTER (strdf:inside(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
    1.98 +   #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)) .
    1.99     #Timisoara
   1.100 -   #FILTER (strdf:inside(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.101 +   #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)) .
   1.102  }
   1.103  GROUP BY ?g
   1.104  	                ]]></value>
   1.105 @@ -225,11 +225,11 @@
   1.106  	                <!-- Format -->
   1.107  	                <value>KML</value>   
   1.108  	                <!-- Label -->
   1.109 -	                <value>Select all patches corresponding to water</value> 
   1.110 +	                <value>[DLR] Select all patches corresponding to water</value> 
   1.111  	                <!-- Statement -->
   1.112  	                <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.113  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.114 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.115 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.116  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.117  PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.118  PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.119 @@ -243,11 +243,11 @@
   1.120     ?l rdf:type dlr:Label .
   1.121     ?l dlr:correspondsTo dlr:Water .
   1.122     #Venice
   1.123 -   FILTER (strdf:inside(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.124 +   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)) .
   1.125     #Toulouse
   1.126 -   #FILTER (strdf:inside(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.127 +   #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)) .
   1.128     #Timisoara
   1.129 -   #FILTER (strdf:inside(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.130 +   #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)) .
   1.131  }
   1.132  GROUP BY ?g
   1.133  	                ]]></value>
   1.134 @@ -262,11 +262,11 @@
   1.135  	                <!-- Format -->
   1.136  	                <value>KML</value>   
   1.137  	                <!-- Label -->
   1.138 -	                <value>Select all patches corresponding to all subclasses of water</value> 
   1.139 +	                <value>[DLR] Select all patches corresponding to all subclasses of water</value> 
   1.140  	                <!-- Statement -->
   1.141  	                <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.142  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.143 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.144 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.145  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.146  PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.147  PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.148 @@ -281,11 +281,11 @@
   1.149     ?l dlr:correspondsTo ?annotation .
   1.150     ?annotation rdfs:subClassOf dlr:Water .
   1.151     #Venice
   1.152 -   FILTER (strdf:inside(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.153 +   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)) .
   1.154     #Toulouse
   1.155 -   #FILTER (strdf:inside(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.156 +   #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)) .
   1.157     #Timisoara
   1.158 -   #FILTER (strdf:inside(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.159 +   #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)) .
   1.160  }
   1.161  GROUP BY ?g
   1.162  	                ]]></value>
   1.163 @@ -293,6 +293,51 @@
   1.164  					<value></value>
   1.165  					<!-- Hander (plain, download, map or map_local)-->
   1.166  					<value>map_local</value>
   1.167 +	            </list>	            
   1.168 +	            <list>
   1.169 +             		<!-- Single valued elements correspond to headers -->
   1.170 +					<value>First level statistics</value>
   1.171 +	            </list>
   1.172 +				<list>
   1.173 +	                 <!-- Bean -->
   1.174 +	                <value>Query</value> 
   1.175 +	                <!-- Format -->
   1.176 +	                <value>HTML</value>   
   1.177 +	                <!-- Label -->
   1.178 +	                <value>[DLR] How many labels are identified in a scene?</value> 
   1.179 +	                <!-- Statement -->
   1.180 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.181 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.182 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.183 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.184 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.185 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.186 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.187 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.188 +PREFIX geonames: <http://www.geonames.org/ontology#>
   1.189 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.190 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.191 +
   1.192 +SELECT ?annotation (COUNT(DISTINCT ?p) AS ?numberOfPatches)
   1.193 +WHERE {
   1.194 +   ?p rdf:type dlr:Patch .        
   1.195 +   ?p dlr:hasGeometry ?g .
   1.196 +   ?p dlr:hasLabel ?l .
   1.197 +   ?l rdf:type dlr:Label .
   1.198 +   ?l dlr:correspondsTo ?annotation .
   1.199 +   #Venice
   1.200 +   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)) .
   1.201 +   #Toulouse
   1.202 +   #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)) .
   1.203 +   #Timisoara
   1.204 +   #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)) .
   1.205 +}
   1.206 +GROUP BY ?annotation
   1.207 +ORDER BY DESC(?numberOfPatches)]]></value>
   1.208 +	                <!-- Description -->
   1.209 +					<value></value>
   1.210 +					<!-- Hander (plain, download, map or map_local)-->
   1.211 +					<value>plain</value>
   1.212  	            </list>
   1.213  	            <list>
   1.214  	                 <!-- Bean -->
   1.215 @@ -300,11 +345,187 @@
   1.216  	                <!-- Format -->
   1.217  	                <value>HTML</value>   
   1.218  	                <!-- Label -->
   1.219 -	                <value>List all features that are inside an area charatecterized as continuous urban fabric according to CLC</value> 
   1.220 +	                <value>[CLC] How many instances of a CLC class exist in a scene?</value> 
   1.221 +	                <!-- Statement -->
   1.222 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.223 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.224 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.225 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.226 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.227 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.228 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.229 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.230 +PREFIX geonames: <http://www.geonames.org/ontology#>
   1.231 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.232 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.233 +
   1.234 +
   1.235 +SELECT ?clcLandUse (COUNT(DISTINCT ?clc) AS ?count)
   1.236 +WHERE {
   1.237 +   ?clc a teleios:Area .
   1.238 +   ?clc teleios:hasCode ?clcCode .
   1.239 +   ?clc teleios:hasLandUse ?clcLandUse .
   1.240 +   ?clc teleios:hasGeometry ?clcGeo .
   1.241 +
   1.242 +   #Venice
   1.243 +   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)) .
   1.244 +   #Toulouse
   1.245 +   #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)) .
   1.246 +   #Timisoara
   1.247 +   #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)) .
   1.248 +}
   1.249 +GROUP BY ?clcLandUse
   1.250 +ORDER BY DESC(?count)]]></value>
   1.251 +	                <!-- Description -->
   1.252 +					<value></value>
   1.253 +					<!-- Hander (plain, download, map or map_local)-->
   1.254 +					<value></value>
   1.255 +	            </list>
   1.256 +	            <list>
   1.257 +	                 <!-- Bean -->
   1.258 +	                <value>Query</value> 
   1.259 +	                <!-- Format -->
   1.260 +	                <value>HTML</value>   
   1.261 +	                <!-- Label -->
   1.262 +	                <value>[LGD] How many LGD classes are identified in a scene? (coarse-grained)</value> 
   1.263 +	                <!-- Statement -->
   1.264 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.265 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.266 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.267 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.268 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.269 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.270 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.271 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.272 +PREFIX geonames: <http://www.geonames.org/ontology#>
   1.273 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.274 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.275 +
   1.276 +SELECT ?lgdType (COUNT(DISTINCT ?lgd) AS ?count)
   1.277 +WHERE {
   1.278 +   ?lgd lgdont:directType ?lgdDirectType .
   1.279 +   OPTIONAL {
   1.280 +      ?lgd a ?lgdType .
   1.281 +      FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
   1.282 +   }
   1.283 +   ?lgd lgdgeo:geometry ?lgdGeo .
   1.284 +   #Venice
   1.285 +   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)) .
   1.286 +   #Toulouse
   1.287 +   #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)) .
   1.288 +   #Timisoara
   1.289 +   #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)) .
   1.290 +
   1.291 +}
   1.292 +GROUP BY ?lgdType
   1.293 +ORDER BY DESC(?count)]]></value>
   1.294 +	                <!-- Description -->
   1.295 +					<value></value>
   1.296 +					<!-- Hander (plain, download, map or map_local)-->
   1.297 +					<value></value>
   1.298 +	            </list>
   1.299 +	            <list>
   1.300 +	                 <!-- Bean -->
   1.301 +	                <value>Query</value> 
   1.302 +	                <!-- Format -->
   1.303 +	                <value>HTML</value>   
   1.304 +	                <!-- Label -->
   1.305 +	                <value>[LGD] How many LGD classes are identified in a scene? (fine-grained)</value> 
   1.306 +	                <!-- Statement -->
   1.307 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.308 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.309 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.310 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.311 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.312 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.313 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.314 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.315 +PREFIX geonames: <http://www.geonames.org/ontology#>
   1.316 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.317 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.318 +
   1.319 +SELECT ?lgdDirectType (COUNT(DISTINCT ?lgd) AS ?count)
   1.320 +WHERE {
   1.321 +   ?lgd lgdont:directType ?lgdDirectType .
   1.322 +   OPTIONAL {
   1.323 +      ?lgd a ?lgdType .
   1.324 +      FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
   1.325 +   }
   1.326 +   ?lgd lgdgeo:geometry ?lgdGeo .
   1.327 +   #Venice
   1.328 +   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)) .
   1.329 +   #Toulouse
   1.330 +   #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)) .
   1.331 +   #Timisoara
   1.332 +   #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)) .
   1.333 +
   1.334 +}
   1.335 +GROUP BY ?lgdDirectType
   1.336 +ORDER BY DESC(?count)]]></value>
   1.337 +	                <!-- Description -->
   1.338 +					<value></value>
   1.339 +					<!-- Hander (plain, download, map or map_local)-->
   1.340 +					<value></value>
   1.341 +	            </list>
   1.342 +	             <list>
   1.343 +	                 <!-- Bean -->
   1.344 +	                <value>Query</value> 
   1.345 +	                <!-- Format -->
   1.346 +	                <value>HTML</value>   
   1.347 +	                <!-- Label -->
   1.348 +	                <value>[Geonames] How many Geonames classes are identified in a scene?</value> 
   1.349 +	                <!-- Statement -->
   1.350 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.351 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.352 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.353 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.354 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.355 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.356 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.357 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.358 +PREFIX geonames: <http://www.geonames.org/ontology#>
   1.359 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.360 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.361 +
   1.362 +SELECT ?geoFeature ?comment (COUNT(DISTINCT ?geoId) AS ?count)
   1.363 +WHERE {
   1.364 +?geoId geonames:name ?name .
   1.365 +OPTIONAL {?geoId geonames:alternateName ?altName } .
   1.366 +?geoId geonames:featureClass ?geoFeature .
   1.367 +?geoFeature rdfs:comment ?comment .
   1.368 +?geoId geonames:countryCode ?country .
   1.369 +?geoId teleios:hasGeography ?geoIdGeo .
   1.370 +   #Venice
   1.371 +   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)) .
   1.372 +   #Toulouse
   1.373 +   #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)) .
   1.374 +   #Timisoara
   1.375 +   #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)) .
   1.376 +}
   1.377 +GROUP BY ?geoFeature ?comment
   1.378 +ORDER BY DESC(?count)
   1.379 +	                ]]></value>
   1.380 +	                <!-- Description -->
   1.381 +					<value></value>
   1.382 +					<!-- Hander (plain, download, map or map_local)-->
   1.383 +					<value></value>
   1.384 +	            </list>
   1.385 +	            
   1.386 +	            <list>
   1.387 +             		<!-- Single valued elements correspond to headers -->
   1.388 +					<value>Discover correlations between datasets</value>
   1.389 +	            </list>
   1.390 +				<list>
   1.391 +	                 <!-- Bean -->
   1.392 +	                <value>Query</value> 
   1.393 +	                <!-- Format -->
   1.394 +	                <value>HTML</value>   
   1.395 +	                <!-- Label -->
   1.396 +	                <value>[CLC-DLR] List all labels that are inside an area charatecterized as continuous urban fabric by CLC</value> 
   1.397  	                <!-- Statement -->
   1.398  	                <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.399  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.400 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.401 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.402  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.403  PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.404  PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.405 @@ -317,14 +538,14 @@
   1.406     ?p dlr:hasLabel ?l .
   1.407     ?l rdf:type dlr:Label .
   1.408     ?l dlr:correspondsTo ?annotation .
   1.409 -   FILTER (strdf:inside(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.410 +   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)) .
   1.411  
   1.412     ?clc a ?clcType .
   1.413     ?clc teleios:hasCode ?clcCode .
   1.414     ?clc teleios:hasID ?clcID .
   1.415     ?clc teleios:hasLandUse teleios:continuousUrbanFabric .
   1.416     ?clc teleios:hasGeometry ?clcGeo .
   1.417 -   FILTER (strdf:inside(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.418 +   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)) .
   1.419  
   1.420     FILTER (geof:sf-contains(?clcGeo, ?g)) . 
   1.421  }
   1.422 @@ -340,11 +561,11 @@
   1.423  	                <!-- Format -->
   1.424  	                <value>HTML</value>   
   1.425  	                <!-- Label -->
   1.426 -	                <value>List all features that are inside a CLC</value> 
   1.427 +	                <value>[CLC-DLR] List all CLC classes and the labels that are identified inside their instances.</value> 
   1.428  	                <!-- Statement -->
   1.429  	                <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.430  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.431 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.432 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.433  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.434  PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.435  PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.436 @@ -357,14 +578,14 @@
   1.437     ?p dlr:hasLabel ?l .
   1.438     ?l rdf:type dlr:Label .
   1.439     ?l dlr:correspondsTo ?annotation .
   1.440 -   FILTER (strdf:inside(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.441 +   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)) .
   1.442  
   1.443     ?clc a ?clcType .
   1.444     ?clc teleios:hasCode ?clcCode .
   1.445     ?clc teleios:hasID ?clcID .
   1.446     ?clc teleios:hasLandUse ?clcLandUse .
   1.447     ?clc teleios:hasGeometry ?clcGeo .
   1.448 -   FILTER (strdf:inside(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.449 +   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)) .
   1.450  
   1.451     FILTER (geof:sf-contains(?clcGeo, ?g)) . 
   1.452  }
   1.453 @@ -375,316 +596,13 @@
   1.454  					<!-- Hander (plain, download, map or map_local)-->
   1.455  					<value></value>
   1.456  	            </list>
   1.457 -	            
   1.458 -	            <list>
   1.459 -             		<!-- Single valued elements correspond to headers -->
   1.460 -					<value>Discover corellations between two datasets</value>
   1.461 -	            </list>
   1.462 -	            	            <list>
   1.463 -	                 <!-- Bean -->
   1.464 -	                <value>Query</value> 
   1.465 -	                <!-- Format -->
   1.466 -	                <value>HTML</value>   
   1.467 -	                <!-- Label -->
   1.468 -	                <value>How many labels are identified in a scene?</value> 
   1.469 -	                <!-- Statement -->
   1.470 -	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.471 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.472 -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.473 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.474 -PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.475 -PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.476 -PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.477 -PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.478 -PREFIX geonames: <http://www.geonames.org/ontology#>
   1.479 -PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.480 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.481 -
   1.482 -SELECT ?annotation (COUNT(DISTINCT ?p) AS ?numberOfPatches)
   1.483 -WHERE {
   1.484 -   ?p rdf:type dlr:Patch .        
   1.485 -   ?p dlr:hasGeometry ?g .
   1.486 -   ?p dlr:hasLabel ?l .
   1.487 -   ?l rdf:type dlr:Label .
   1.488 -   ?l dlr:correspondsTo ?annotation .
   1.489 -   #Venice
   1.490 -   FILTER (strdf:inside(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.491 -   #Toulouse
   1.492 -   #FILTER (strdf:inside(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.493 -   #Timisoara
   1.494 -   #FILTER (strdf:inside(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.495 -}
   1.496 -GROUP BY ?annotation
   1.497 -ORDER BY DESC(?numberOfPatches)]]></value>
   1.498 -	                <!-- Description -->
   1.499 -					<value></value>
   1.500 -					<!-- Hander (plain, download, map or map_local)-->
   1.501 -					<value>plain</value>
   1.502 -	            </list>
   1.503 -	            <list>
   1.504 -	                 <!-- Bean -->
   1.505 -	                <value>Query</value> 
   1.506 -	                <!-- Format -->
   1.507 -	                <value>HTML</value>   
   1.508 -	                <!-- Label -->
   1.509 -	                <value>How many CLC classes are identified in a scene?</value> 
   1.510 -	                <!-- Statement -->
   1.511 -	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.512 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.513 -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.514 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.515 -PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.516 -PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.517 -PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.518 -PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.519 -PREFIX geonames: <http://www.geonames.org/ontology#>
   1.520 -PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.521 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.522 -
   1.523 -
   1.524 -SELECT ?clcLandUse (COUNT(DISTINCT ?clc) AS ?count)
   1.525 -WHERE {
   1.526 -   ?clc a teleios:Area .
   1.527 -   ?clc teleios:hasCode ?clcCode .
   1.528 -   ?clc teleios:hasLandUse ?clcLandUse .
   1.529 -   ?clc teleios:hasGeometry ?clcGeo .
   1.530 -
   1.531 -   #Venice
   1.532 -   FILTER (strdf:inside(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.533 -   #Toulouse
   1.534 -   #FILTER (strdf:inside(?clcGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.535 -   #Timisoara
   1.536 -   #FILTER (strdf:inside(?clcGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.537 -}
   1.538 -GROUP BY ?clcLandUse
   1.539 -ORDER BY DESC(?count)]]></value>
   1.540 -	                <!-- Description -->
   1.541 -					<value></value>
   1.542 -					<!-- Hander (plain, download, map or map_local)-->
   1.543 -					<value></value>
   1.544 -	            </list>
   1.545 -	            <list>
   1.546 -	                 <!-- Bean -->
   1.547 -	                <value>Query</value> 
   1.548 -	                <!-- Format -->
   1.549 -	                <value>HTML</value>   
   1.550 -	                <!-- Label -->
   1.551 -	                <value>How many LGD classes are identified in a scene? (coarse-grained)</value> 
   1.552 -	                <!-- Statement -->
   1.553 -	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.554 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.555 -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.556 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.557 -PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.558 -PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.559 -PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.560 -PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.561 -PREFIX geonames: <http://www.geonames.org/ontology#>
   1.562 -PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.563 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.564 -
   1.565 -SELECT ?lgdType (COUNT(DISTINCT ?lgd) AS ?count)
   1.566 -WHERE {
   1.567 -   ?lgd lgdont:directType ?lgdDirectType .
   1.568 -   OPTIONAL {
   1.569 -      ?lgd a ?lgdType .
   1.570 -      FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
   1.571 -   }
   1.572 -   ?lgd lgdgeo:geometry ?lgdGeo .
   1.573 -   #Venice
   1.574 -   FILTER (strdf:inside(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.575 -   #Toulouse
   1.576 -   #FILTER (strdf:inside(?lgdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.577 -   #Timisoara
   1.578 -   #FILTER (strdf:inside(?lgdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.579 -
   1.580 -}
   1.581 -GROUP BY ?lgdType
   1.582 -ORDER BY DESC(?count)]]></value>
   1.583 -	                <!-- Description -->
   1.584 -					<value></value>
   1.585 -					<!-- Hander (plain, download, map or map_local)-->
   1.586 -					<value></value>
   1.587 -	            </list>
   1.588 -	            <list>
   1.589 -	                 <!-- Bean -->
   1.590 -	                <value>Query</value> 
   1.591 -	                <!-- Format -->
   1.592 -	                <value>HTML</value>   
   1.593 -	                <!-- Label -->
   1.594 -	                <value>How many LGD classes are identified in a scene? (fine-grained)</value> 
   1.595 -	                <!-- Statement -->
   1.596 -	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.597 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.598 -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.599 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.600 -PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.601 -PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.602 -PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.603 -PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.604 -PREFIX geonames: <http://www.geonames.org/ontology#>
   1.605 -PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.606 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.607 -
   1.608 -SELECT ?lgdDirectType (COUNT(DISTINCT ?lgd) AS ?count)
   1.609 -WHERE {
   1.610 -   ?lgd lgdont:directType ?lgdDirectType .
   1.611 -   OPTIONAL {
   1.612 -      ?lgd a ?lgdType .
   1.613 -      FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
   1.614 -   }
   1.615 -   ?lgd lgdgeo:geometry ?lgdGeo .
   1.616 -   #Venice
   1.617 -   FILTER (strdf:inside(?lgdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.618 -   #Toulouse
   1.619 -   #FILTER (strdf:inside(?lgdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.620 -   #Timisoara
   1.621 -   #FILTER (strdf:inside(?lgdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.622 -
   1.623 -}
   1.624 -GROUP BY ?lgdDirectType
   1.625 -ORDER BY DESC(?count)]]></value>
   1.626 -	                <!-- Description -->
   1.627 -					<value></value>
   1.628 -					<!-- Hander (plain, download, map or map_local)-->
   1.629 -					<value></value>
   1.630 -	            </list>
   1.631 -	             <list>
   1.632 -	                 <!-- Bean -->
   1.633 -	                <value>Query</value> 
   1.634 -	                <!-- Format -->
   1.635 -	                <value>HTML</value>   
   1.636 -	                <!-- Label -->
   1.637 -	                <value>How many Geonames classes are identified in a scene?</value> 
   1.638 -	                <!-- Statement -->
   1.639 -	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.640 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.641 -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.642 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.643 -PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.644 -PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.645 -PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.646 -PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.647 -PREFIX geonames: <http://www.geonames.org/ontology#>
   1.648 -PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.649 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.650 -
   1.651 -SELECT ?geoFeature ?comment (COUNT(DISTINCT ?geoId) AS ?count)
   1.652 -WHERE {
   1.653 -?geoId geonames:name ?name .
   1.654 -OPTIONAL {?geoId geonames:alternateName ?altName } .
   1.655 -?geoId geonames:featureClass ?geoFeature .
   1.656 -?geoFeature rdfs:comment ?comment .
   1.657 -?geoId geonames:countryCode ?country .
   1.658 -?geoId teleios:hasGeography ?geoIdGeo .
   1.659 -   #Venice
   1.660 -   FILTER (strdf:inside(?geoIdGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.661 -   #Toulouse
   1.662 -   #FILTER (strdf:inside(?geoIdGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.663 -   #Timisoara
   1.664 -   #FILTER (strdf:inside(?geoIdGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.665 -}
   1.666 -GROUP BY ?geoFeature ?comment
   1.667 -ORDER BY DESC(?count)
   1.668 -	                ]]></value>
   1.669 -	                <!-- Description -->
   1.670 -					<value></value>
   1.671 -					<!-- Hander (plain, download, map or map_local)-->
   1.672 -					<value></value>
   1.673 -	            </list>
   1.674 -	            <list>
   1.675 -             		<!-- Single valued elements correspond to headers -->
   1.676 -					<value>Second level of statistics</value>
   1.677 -	            </list>
   1.678 -	           	             <list>
   1.679 -	                 <!-- Bean -->
   1.680 -	                <value>Query</value> 
   1.681 -	                <!-- Format -->
   1.682 -	                <value>HTML</value>   
   1.683 -	                <!-- Label -->
   1.684 -	                <value>How many patches with a specific label are contained by a CLC area?</value> 
   1.685 -	                <!-- Statement -->
   1.686 -	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.687 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.688 -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.689 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.690 -PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.691 -PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.692 -PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.693 -PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.694 -PREFIX geonames: <http://www.geonames.org/ontology#>
   1.695 -PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.696 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.697 -
   1.698 -SELECT ?clcLandUse ?annotation (COUNT(?p) AS ?numberOfPatches)
   1.699 -WHERE {
   1.700 -   #select corine areas
   1.701 -   ?clc a teleios:Area .
   1.702 -   ?clc teleios:hasCode ?clcCode .
   1.703 -   ?clc teleios:hasLandUse ?clcLandUse .
   1.704 -   ?clc teleios:hasGeometry ?clcGeo .
   1.705 -   #Venice
   1.706 -   FILTER (strdf:inside(?clcGeo, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.707 -   #Toulouse
   1.708 -   #FILTER (strdf:inside(?clcGeo, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.709 -   #Timisoara
   1.710 -   #FILTER (strdf:inside(?clcGeo, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.711 -
   1.712 -   #select patches
   1.713 -   ?p rdf:type dlr:Patch .        
   1.714 -   ?p dlr:hasGeometry ?g .
   1.715 -   ?p dlr:hasLabel ?l .
   1.716 -   ?l rdf:type dlr:Label .
   1.717 -   ?l dlr:correspondsTo ?annotation .
   1.718 -   #Venice
   1.719 -   FILTER (strdf:inside(?g, "POLYGON ((12.301451 45.40493,12.398127 45.416817,12.386066 45.46502,12.289288 45.45313,12.301451 45.40493))"^^strdf:WKT)) .
   1.720 -   #Toulouse
   1.721 -   #FILTER (strdf:inside(?g, "POLYGON((1.3816636 43.573734,1.4903361 43.588024,1.4783715 43.634777,1.3696271 43.620483,1.3816636 43.573734))"^^strdf:WKT)) .
   1.722 -   #Timisoara
   1.723 -   #FILTER (strdf:inside(?g, "POLYGON((21.188068 45.7305,21.286903 45.74229,21.275377 45.79014,21.176264 45.778324,21.188068 45.7305))"^^strdf:WKT)) .
   1.724 -   
   1.725 -   FILTER (geof:sf-contains(?clcGeo, ?g)) .
   1.726 -   
   1.727 -}
   1.728 -GROUP BY ?clcLandUse ?annotation
   1.729 -	                ]]></value>
   1.730 -	                <!-- Description -->
   1.731 -					<value></value>
   1.732 -					<!-- Hander (plain, download, map or map_local)-->
   1.733 -					<value>plain</value>
   1.734 -	            </list>
   1.735 -	             <list>
   1.736 -	                 <!-- Bean -->
   1.737 -	                <value>Query</value> 
   1.738 -	                <!-- Format -->
   1.739 -	                <value>HTML</value>   
   1.740 -	                <!-- Label -->
   1.741 -	                <value></value> 
   1.742 -	                <!-- Statement -->
   1.743 -	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.744 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.745 -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.746 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.747 -PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.748 -PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.749 -PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.750 -PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.751 -PREFIX geonames: <http://www.geonames.org/ontology#>
   1.752 -PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.753 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.754 -	                ]]></value>
   1.755 -	                <!-- Description -->
   1.756 -					<value></value>
   1.757 -					<!-- Hander (plain, download, map or map_local)-->
   1.758 -					<value></value>
   1.759 -	            </list>
   1.760  	             <list>
   1.761  	                 <!-- Bean -->
   1.762  	                <value>Query</value> 
   1.763  	                <!-- Format -->
   1.764  	                <value>HTML</value>   
   1.765  	                <!-- Label -->
   1.766 -	                <value></value> 
   1.767 +	                <value>[DLR-LGD] List all labels and the LGD classes with instances inside patches annotated with each label (coarse-grained).</value> 
   1.768  	                <!-- Statement -->
   1.769  	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.770  PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.771 @@ -696,12 +614,33 @@
   1.772  PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.773  PREFIX geonames: <http://www.geonames.org/ontology#>
   1.774  PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.775 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.776 -	                ]]></value>
   1.777 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.778 +
   1.779 +SELECT ?annotation (GROUP_CONCAT(DISTINCT ?lgdType; separator=",\n\t\t\t\t\t ") AS ?lgdTypes)  #?g 
   1.780 +WHERE {
   1.781 +   ?p rdf:type dlr:Patch .        
   1.782 +   ?p dlr:hasGeometry ?g .
   1.783 +   ?p dlr:hasLabel ?l .
   1.784 +   ?l rdf:type dlr:Label .
   1.785 +   ?l dlr:correspondsTo ?annotation .
   1.786 +   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)) .
   1.787 +
   1.788 +   ?lgd lgdont:directType ?lgdDirectType .
   1.789 +   OPTIONAL {
   1.790 +      ?lgd a ?lgdType .
   1.791 +      FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
   1.792 +   }
   1.793 +   ?lgd lgdgeo:geometry ?lgdGeo .
   1.794 +   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)) .
   1.795 +   
   1.796 +   FILTER (geof:sf-contains(?g, ?lgdGeo)) . 
   1.797 +}
   1.798 +GROUP BY ?annotation
   1.799 +ORDER BY ?annotation]]></value>
   1.800  	                <!-- Description -->
   1.801  					<value></value>
   1.802  					<!-- Hander (plain, download, map or map_local)-->
   1.803 -					<value></value>
   1.804 +					<value>plain</value>
   1.805  	            </list>
   1.806  	             <list>
   1.807  	                 <!-- Bean -->
   1.808 @@ -709,7 +648,7 @@
   1.809  	                <!-- Format -->
   1.810  	                <value>HTML</value>   
   1.811  	                <!-- Label -->
   1.812 -	                <value></value> 
   1.813 +	                <value>[DLR-LGD] List all labels and the LGD classes with instances inside patches annotated with each label (fine-grained).</value> 
   1.814  	                <!-- Statement -->
   1.815  	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.816  PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.817 @@ -721,14 +660,284 @@
   1.818  PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.819  PREFIX geonames: <http://www.geonames.org/ontology#>
   1.820  PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.821 -PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology.owl#>
   1.822 -	                ]]></value>
   1.823 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.824 +
   1.825 +SELECT ?annotation (GROUP_CONCAT(DISTINCT ?lgdDirectType; separator=",\n\t\t\t\t\t ") AS ?lgdDirectTypes)  #?g 
   1.826 +WHERE {
   1.827 +   ?p rdf:type dlr:Patch .        
   1.828 +   ?p dlr:hasGeometry ?g .
   1.829 +   ?p dlr:hasLabel ?l .
   1.830 +   ?l rdf:type dlr:Label .
   1.831 +   ?l dlr:correspondsTo ?annotation .
   1.832 +   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)) .
   1.833 +
   1.834 +    ?lgd lgdont:directType ?lgdDirectType .
   1.835 +   OPTIONAL {
   1.836 +      ?lgd a ?lgdType .
   1.837 +      FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
   1.838 +   }
   1.839 +   ?lgd lgdgeo:geometry ?lgdGeo .
   1.840 +   #Venice
   1.841 +   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)) .
   1.842 +   
   1.843 +   FILTER (geof:sf-contains(?g, ?lgdGeo)) . 
   1.844 +}
   1.845 +GROUP BY ?annotation
   1.846 +ORDER BY ?annotation]]></value>
   1.847  	                <!-- Description -->
   1.848  					<value></value>
   1.849  					<!-- Hander (plain, download, map or map_local)-->
   1.850 +					<value>plain</value>
   1.851 +	            </list>
   1.852 +	             <list>
   1.853 +	                 <!-- Bean -->
   1.854 +	                <value>Query</value> 
   1.855 +	                <!-- Format -->
   1.856 +	                <value>HTML</value>   
   1.857 +	                <!-- Label -->
   1.858 +	                <value>[DLR-Geonames] List all labels and the GeoNames classes with instances inside patches annotated with each label.</value> 
   1.859 +	                <!-- Statement -->
   1.860 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.861 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.862 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.863 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.864 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.865 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.866 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.867 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.868 +PREFIX geonames: <http://www.geonames.org/ontology#>
   1.869 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.870 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.871 +
   1.872 +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)
   1.873 +WHERE {
   1.874 +   ?p rdf:type dlr:Patch .        
   1.875 +   ?p dlr:hasGeometry ?g .
   1.876 +   ?p dlr:hasLabel ?l .
   1.877 +   ?l rdf:type dlr:Label .
   1.878 +   ?l dlr:correspondsTo ?annotation .
   1.879 +   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)) .
   1.880 +
   1.881 +   ?geoId geonames:name ?name .
   1.882 +   OPTIONAL {?geoId geonames:alternateName ?altName } .
   1.883 +   ?geoId geonames:featureClass ?geoFeature .
   1.884 +   ?geoFeature rdfs:comment ?comment .
   1.885 +   ?geoId geonames:countryCode ?country .
   1.886 +   ?geoId teleios:hasGeography ?geoIdGeo .
   1.887 +   #Venice
   1.888 +   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)) .
   1.889 +   
   1.890 +   FILTER (geof:sf-contains(?g, ?geoIdGeo)) . 
   1.891 +}
   1.892 +GROUP BY ?annotation
   1.893 +ORDER BY ?annotation]]></value>
   1.894 +	                <!-- Description -->
   1.895  					<value></value>
   1.896 +					<!-- Hander (plain, download, map or map_local)-->
   1.897 +					<value>plain</value>
   1.898  	            </list>
   1.899 +	            <list>
   1.900 +             		<!-- Single valued elements correspond to headers -->
   1.901 +					<value>Second level statistics</value>
   1.902 +	            </list>
   1.903 +				<list>
   1.904 +	                 <!-- Bean -->
   1.905 +	                <value>Query</value> 
   1.906 +	                <!-- Format -->
   1.907 +	                <value>HTML</value>   
   1.908 +	                <!-- Label -->
   1.909 +	                <value>[CLC-DLR] How many patches with a specific label are contained by a CLC area?</value> 
   1.910 +	                <!-- Statement -->
   1.911 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.912 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.913 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.914 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.915 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.916 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.917 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.918 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.919 +PREFIX geonames: <http://www.geonames.org/ontology#>
   1.920 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.921 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.922  
   1.923 +SELECT ?clcLandUse ?annotation (COUNT(?p) AS ?numberOfPatches)
   1.924 +WHERE {
   1.925 +   #select corine areas
   1.926 +   ?clc a teleios:Area .
   1.927 +   ?clc teleios:hasLandUse ?clcLandUse .
   1.928 +   ?clc teleios:hasGeometry ?clcGeo .
   1.929 +   #Venice
   1.930 +   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)) .
   1.931 +   #Toulouse
   1.932 +   #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)) .
   1.933 +   #Timisoara
   1.934 +   #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)) .
   1.935 +
   1.936 +   #select patches
   1.937 +   ?p rdf:type dlr:Patch .        
   1.938 +   ?p dlr:hasGeometry ?g .
   1.939 +   ?p dlr:hasLabel ?l .
   1.940 +   ?l dlr:correspondsTo ?annotation .
   1.941 +   #Venice
   1.942 +   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)) .
   1.943 +   #Toulouse
   1.944 +   #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)) .
   1.945 +   #Timisoara
   1.946 +   #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)) .
   1.947 +   
   1.948 +   #FILTER (geof:sf-contains(?clcGeo, ?g)) .
   1.949 +   FILTER (strdf:contains(?clcGeo, ?g)) .
   1.950 +}
   1.951 +GROUP BY ?clcLandUse ?annotation
   1.952 +ORDER BY ?clcLandUse DESC(?numberOfPatches)]]></value>
   1.953 +	                <!-- Description -->
   1.954 +					<value></value>
   1.955 +					<!-- Hander (plain, download, map or map_local)-->
   1.956 +					<value>plain</value>
   1.957 +	            </list>
   1.958 +	             <list>
   1.959 +	                 <!-- Bean -->
   1.960 +	                <value>Query</value> 
   1.961 +	                <!-- Format -->
   1.962 +	                <value>HTML</value>   
   1.963 +	                <!-- Label -->
   1.964 +	                <value>[DLR-LGD] How many LGD instances are contained by a patch annotated with a specific label? (coarse-grained)</value> 
   1.965 +	                <!-- Statement -->
   1.966 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.967 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.968 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.969 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.970 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
   1.971 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
   1.972 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
   1.973 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.974 +PREFIX geonames: <http://www.geonames.org/ontology#>
   1.975 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.976 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
   1.977 +
   1.978 +SELECT ?annotation ?lgdType (COUNT(?lgd) AS ?lgdInstances)
   1.979 +WHERE {
   1.980 +   #select patches
   1.981 +   ?p rdf:type dlr:Patch .        
   1.982 +   ?p dlr:hasGeometry ?g .
   1.983 +   ?p dlr:hasLabel ?l .
   1.984 +   ?l dlr:correspondsTo ?annotation .
   1.985 +   #Venice
   1.986 +   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)) .   
   1.987 +   
   1.988 +   #select LGD instances
   1.989 +   ?lgd lgdont:directType ?lgdDirectType .
   1.990 +   ?lgd a ?lgdType .
   1.991 +   FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
   1.992 +   ?lgd lgdgeo:geometry ?lgdGeo .
   1.993 +   #Venice
   1.994 +   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)) .
   1.995 +   
   1.996 +   FILTER (geof:sf-contains(?g, ?lgdGeo)) .
   1.997 +}
   1.998 +GROUP BY ?annotation ?lgdType
   1.999 +ORDER BY ?annotation DESC(?lgdInstances)]]></value>
  1.1000 +	                <!-- Description -->
  1.1001 +					<value></value>
  1.1002 +					<!-- Hander (plain, download, map or map_local)-->
  1.1003 +					<value>plain</value>
  1.1004 +	            </list>
  1.1005 +				<list>
  1.1006 +	                 <!-- Bean -->
  1.1007 +	                <value>Query</value> 
  1.1008 +	                <!-- Format -->
  1.1009 +	                <value>HTML</value>   
  1.1010 +	                <!-- Label -->
  1.1011 +	                <value>[DLR-LGD] How many LGD instances are contained by a patch annotated with a specific label? (fine-grained)</value> 
  1.1012 +	                <!-- Statement -->
  1.1013 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
  1.1014 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  1.1015 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  1.1016 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
  1.1017 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
  1.1018 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
  1.1019 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
  1.1020 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
  1.1021 +PREFIX geonames: <http://www.geonames.org/ontology#>
  1.1022 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
  1.1023 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
  1.1024 +
  1.1025 +SELECT ?annotation ?lgdDirectType (COUNT(?lgd) AS ?lgdInstances)
  1.1026 +WHERE {
  1.1027 +   #select patches
  1.1028 +   ?p rdf:type dlr:Patch .        
  1.1029 +   ?p dlr:hasGeometry ?g .
  1.1030 +   ?p dlr:hasLabel ?l .
  1.1031 +   ?l dlr:correspondsTo ?annotation .
  1.1032 +   #Venice
  1.1033 +   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)) .   
  1.1034 +   
  1.1035 +   #select LGD instances
  1.1036 +   ?lgd lgdont:directType ?lgdDirectType .
  1.1037 +   ?lgd a ?lgdType .
  1.1038 +   FILTER ((?lgdType != lgdont:Node) && (?lgdType != ?lgdDirectType)) .
  1.1039 +   ?lgd lgdgeo:geometry ?lgdGeo .
  1.1040 +   #Venice
  1.1041 +   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)) .
  1.1042 +   
  1.1043 +   FILTER (geof:sf-contains(?g, ?lgdGeo)) .
  1.1044 +}
  1.1045 +GROUP BY ?annotation ?lgdDirectType
  1.1046 +ORDER BY ?annotation DESC(?lgdInstances)]]></value>
  1.1047 +	                <!-- Description -->
  1.1048 +					<value></value>
  1.1049 +					<!-- Hander (plain, download, map or map_local)-->
  1.1050 +					<value>plain</value>
  1.1051 +	            </list>
  1.1052 +				<list>
  1.1053 +	                 <!-- Bean -->
  1.1054 +	                <value>Query</value> 
  1.1055 +	                <!-- Format -->
  1.1056 +	                <value>HTML</value>   
  1.1057 +	                <!-- Label -->
  1.1058 +	                <value>[DLR-Geonames] How many Geonames instances are contained by a patch annotated with a specific label?</value> 
  1.1059 +	                <!-- Statement -->
  1.1060 +	                <value><![CDATA[PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
  1.1061 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  1.1062 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  1.1063 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
  1.1064 +PREFIX geof: <http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/>
  1.1065 +PREFIX lgd: <http://linkedgeodata.org/triplify/>
  1.1066 +PREFIX lgdont: <http://linkedgeodata.org/ontology/>
  1.1067 +PREFIX lgdgeo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
  1.1068 +PREFIX geonames: <http://www.geonames.org/ontology#>
  1.1069 +PREFIX teleios:<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
  1.1070 +PREFIX dlr: <http://www.earthobservatory.eu/ontologies/dlrOntology-v2.owl#>
  1.1071 +
  1.1072 +SELECT ?annotation ?geoFeature ?comment (COUNT(?geoId) AS ?geoIdInstances)
  1.1073 +WHERE {
  1.1074 +   #select patches
  1.1075 +   ?p rdf:type dlr:Patch .        
  1.1076 +   ?p dlr:hasGeometry ?g .
  1.1077 +   ?p dlr:hasLabel ?l .
  1.1078 +   ?l dlr:correspondsTo ?annotation .
  1.1079 +   #Venice
  1.1080 +   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)) .   
  1.1081 +   
  1.1082 +   #select Geonames instances
  1.1083 +   ?geoId geonames:name ?name .
  1.1084 +   OPTIONAL {?geoId geonames:alternateName ?altName } .
  1.1085 +   ?geoId geonames:featureClass ?geoFeature .
  1.1086 +   ?geoFeature rdfs:comment ?comment .
  1.1087 +   ?geoId geonames:countryCode ?country .
  1.1088 +   ?geoId teleios:hasGeography ?geoIdGeo .
  1.1089 +   #Venice
  1.1090 +   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)) .
  1.1091 +   
  1.1092 +   FILTER (geof:sf-contains(?g, ?geoIdGeo)) .
  1.1093 +}
  1.1094 +GROUP BY ?annotation ?geoFeature ?comment
  1.1095 +ORDER BY ?annotation DESC(?geoIdInstances)]]></value>
  1.1096 +	                <!-- Description -->
  1.1097 +					<value></value>
  1.1098 +					<!-- Hander (plain, download, map or map_local)-->
  1.1099 +					<value>plain</value>
  1.1100 +	            </list>
  1.1101  
  1.1102  				<list>
  1.1103               		<!-- Single valued elements correspond to headers -->
  1.1104 @@ -741,12 +950,7 @@
  1.1105  	            </list>
  1.1106  	            <list>
  1.1107               		<!-- Link to bean: two arguemnts -->
  1.1108 -					<value>Update</value>
  1.1109 -					<value>update.jsp</value>
  1.1110 -	            </list>
  1.1111 -	            <list>
  1.1112 -             		<!-- Link to bean: two arguemnts -->
  1.1113 -					<value>Query</value>
  1.1114 +					<value>Query/Update</value>
  1.1115  					<value>query.jsp</value>
  1.1116  	            </list>
  1.1117  	            <list>
  1.1118 @@ -759,6 +963,11 @@
  1.1119  					<value>Browse</value>
  1.1120  					<value>browse.jsp</value>
  1.1121  	            </list>
  1.1122 +				<list>
  1.1123 +					<!-- Link to bean: two arguemnts -->
  1.1124 +					<value>Configuration</value>
  1.1125 +					<value>ChangeConnection</value>
  1.1126 +				</list>
  1.1127              </list>
  1.1128           </constructor-arg>
  1.1129      </bean>
     2.1 --- a/endpoint/WebContent/teleios-header.html	Fri Oct 05 14:09:22 2012 +0300
     2.2 +++ b/endpoint/WebContent/teleios-header.html	Mon Oct 08 00:04:10 2012 +0300
     2.3 @@ -23,19 +23,22 @@
     2.4  <a>Greek Administrative Geography (Kallikratis)</a>, 
     2.5  <a href="http://labs.mondeca.com/dataset/lov/details/vocabulary_lgdo.html">Linked Geodata</a>, and 
     2.6  <a href="http://www.geonames.org/search.html?q=ontology&country=">Geonames</a>.
     2.7 -We also use the <a href="images/graph.png">NOA ontology</a> we developed for the 
     2.8 -<a href="http://www.space.noa.gr/">NOA</a> use case of the European FP7 project 
     2.9 -<a href="http://www.earthobservatory.eu/">TELEIOS</a>. 
    2.10 +We also use the <a href="http://teleios.di.uoa.gr/ontologies/dlrOntology-v2.owl">DLR</a> and <a href="http://teleios.di.uoa.gr/ontologies/noaOntology.owl">NOA</a> ontology we developed for the 
    2.11 +in the context of the European FP7 project <a href="http://www.earthobservatory.eu/">TELEIOS</a>. 
    2.12  <!--  <a onclick="return toggleMe('par')">(More)</a>  -->
    2.13 -
    2.14 +<!--
    2.15  In this context NOA has been developing a real-time fire hotspot detection service for effectively monitoring 
    2.16  a fire-front. The technique is based on the use of acquisitions originating from the SEVIRI  sensor, on top of MSG-1 and MSG-2 satellite platforms.
    2.17 +-->
    2.18  <!-- Since 2007, NOA operates an MSG/SEVIRI acquisition station, and has been systematically
    2.19  archiving raw satellite images on a 5 and 15 minutes basis, the respective temporal resolutions of MSG-1 and MSG-2.  -->
    2.20  The acquired data are then annotated using the stRDF model and can be queried using the stSPARQL query language.
    2.21   
    2.22 -On the left sidebar, some example stSPARQL queries are provided. The NOA use case is described in more detail in the VLDB
    2.23 -demo paper <a href="http://www.earthobservatory.eu/publications/p2010_manoliskoubarakis_vldb2012-2.pdf">here</a>. </p> 
    2.24 +On the left sidebar, some example stSPARQL queries are provided. 
    2.25 +<!--The NOA use case is described in more detail in the VLDB
    2.26 +demo paper <a href="http://www.earthobservatory.eu/publications/p2010_manoliskoubarakis_vldb2012-2.pdf">here</a>. 
    2.27 +-->
    2.28 +</p> 
    2.29        </TD>
    2.30  	</TR>
    2.31  </TABLE>