Strabon

changeset 149:dcc954610d83

adding queries used in the workshop
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Thu May 10 18:39:47 2012 +0300 (2012-05-10)
parents 030995a820af
children 4b3b6ea7513f
files endpoint/WebContent/WEB-INF/beans.xml
line diff
     1.1 --- a/endpoint/WebContent/WEB-INF/beans.xml	Thu May 10 12:31:51 2012 +0300
     1.2 +++ b/endpoint/WebContent/WEB-INF/beans.xml	Thu May 10 18:39:47 2012 +0300
     1.3 @@ -15,7 +15,7 @@
     1.4  		</constructor-arg>
     1.5  		<constructor-arg type="java.lang.String">
     1.6  			<!-- Username -->
     1.7 -			<value>postgresql</value>
     1.8 +			<value>kkyzir</value>
     1.9  		</constructor-arg>
    1.10  		<constructor-arg type="java.lang.String">
    1.11  			<!-- Password -->
    1.12 @@ -35,15 +35,7 @@
    1.13  		</constructor-arg>
    1.14  		<constructor-arg type="java.lang.String">
    1.15  			<!-- Query1 -->
    1.16 -			<value><![CDATA[select * where {?s ?p ?o} limit 10]]></value>
    1.17 -		</constructor-arg>
    1.18 -		<constructor-arg type="java.lang.String">
    1.19 -			<!-- Query2 -->
    1.20 -			<value><![CDATA[# Get all hotspots 
    1.21 -# - in Pelloponesus 
    1.22 -# - at 2007-08-23
    1.23 -# - of firms
    1.24 -
    1.25 +			<value><![CDATA[# Discovering raw data and products
    1.26  PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
    1.27  PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
    1.28  PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    1.29 @@ -57,38 +49,228 @@
    1.30  PREFIX lgdo: <http://linkedgeodata.org/ontology/>
    1.31  PREFIX gn: <http://www.geonames.org/ontology#>
    1.32  
    1.33 -SELECT ?h ?hGeo ?hAcqTime ?hConfidence ?hConfirmation ?hProvider ?hSensor ?hSatellite
    1.34 +SELECT ?filename
    1.35  WHERE {
    1.36 -    ?h  a noa:Hotspot ; # all
    1.37 -        noa:hasGeometry ?hGeo ; # all
    1.38 -        noa:hasAcquisitionTime ?hAcqTime ; # all
    1.39 -        FILTER( "2007-08-24T00:00:00"^^xsd:dateTime <= ?hAcqTime && ?hAcqTime <= "2007-09-24T00:00:00"^^xsd:dateTime$
    1.40 +?file rdf:type noa:ShpFile .
    1.41 +	 ?file noa:hasFilename ?filename .
    1.42 +	 ?file noa:hasAcquisitionTime ?sensingTime .
    1.43 +	 FILTER( str(?sensingTime) >= "2007-08-26T12:00:00" ) .
    1.44 +	 FILTER( str(?sensingTime) <= "2007-08-26T12:30:00" ) .
    1.45 +	 ?file noa:isDerivedFromSensor ?sensor .
    1.46 +	 FILTER( str(?sensor) = "MSG2" ) .
    1.47 +	 ?file noa:producedFromProcessingChain ?chain .
    1.48 +	 FILTER( str(?chain) = "StaticThresholds" ) . }
    1.49 +]]></value>
    1.50 +		</constructor-arg>
    1.51 +		<constructor-arg type="java.lang.String">
    1.52 +			<!-- Query2 -->
    1.53 +			<value><![CDATA[# Get all hotspots 
    1.54 +# - in Pelloponesus 
    1.55 +# - at 2007-08-24
    1.56 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
    1.57 +PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
    1.58 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    1.59 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    1.60 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    1.61 +PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
    1.62 +PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
    1.63 +PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
    1.64 +PREFIX georss: <http://www.georss.org/georss/>
    1.65 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
    1.66 +PREFIX lgdo: <http://linkedgeodata.org/ontology/>
    1.67 +PREFIX gn: <http://www.geonames.org/ontology#>
    1.68 +
    1.69 +SELECT ?h ?hAcqTime ?hConfidence ?hConfirmation ?hProvider ?hSensor ?hSatellite (strdf:transform(?hGeo, <http://www.opengis.net/def/crs/EPSG/0/4326>) as ?geo) 
    1.70 +WHERE { ?h 	rdf:type noa:Hotspot;
    1.71 +			noa:hasGeometry ?hGeo;
    1.72 +			noa:hasAcquisitionTime ?hAcqTime;
    1.73 +			noa:hasConfidence ?hConfidence;
    1.74 +			noa:isProducedBy ?hProvider;
    1.75 +			noa:hasConfirmation ?hConfirmation;
    1.76 +			noa:isDerivedFromSensor ?hSensor;
    1.77 +			noa:isDerivedFromSatellite ?hSatellite ;
    1.78 +			noa:producedFromProcessingChain ?hChain .
    1.79 +	FILTER(str(?hChain) = "StaticThresholds").
    1.80 +	FILTER(?hAcqTime = "2007-08-24T14:45:00"^^xsd:dateTime) .
    1.81 +	FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?hGeo)) . 
    1.82 +}]]></value>
    1.83 +		</constructor-arg>
    1.84 +		<constructor-arg type="java.lang.String">
    1.85 +			<!-- Query3 -->
    1.86 +			<value><![CDATA[# Delete hotspots that lie in sea
    1.87 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
    1.88 +PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
    1.89 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    1.90 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    1.91 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    1.92 +PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
    1.93 +PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
    1.94 +PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
    1.95 +PREFIX georss: <http://www.georss.org/georss/>
    1.96 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
    1.97 +PREFIX lgdo: <http://linkedgeodata.org/ontology/>
    1.98 +PREFIX gn: <http://www.geonames.org/ontology#>
    1.99 +DELETE {?h ?property ?object}
   1.100 +WHERE {
   1.101 +	?h 	rdf:type noa:Hotspot;
   1.102 +		noa:hasAcquisitionTime ?hAcqTime;
   1.103 +		noa:producedFromProcessingChain ?hChain;
   1.104 +		noa:hasGeometry ?hGeo;
   1.105 +		?property ?object.
   1.106 +		FILTER(str(?hChain) = "StaticThresholds").
   1.107 +		FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?hGeo)).
   1.108 +		FILTER("2007-08-24T14:45:00"^^xsd:dateTime = ?hAcqTime).
   1.109 +		OPTIONAL {
   1.110 +			?c rdf:type noa:Coastline;
   1.111 +			noa:hasGeometry ?cGeo.
   1.112 +			FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?cGeo)).
   1.113 +			FILTER(strdf:anyInteract(?hGeo, ?cGeo)) . 
   1.114 +		}
   1.115 +		FILTER(!bound(?c)).
   1.116 + }]]></value>
   1.117 +		</constructor-arg>
   1.118 +		<constructor-arg type="java.lang.String">
   1.119 +			<!-- Query4 -->
   1.120 +			<value><![CDATA[# Refine the geometry of hotspots that partially lie in sea
   1.121 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.122 +PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
   1.123 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.124 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.125 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.126 +PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.127 +PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
   1.128 +PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.129 +PREFIX georss: <http://www.georss.org/georss/>
   1.130 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.131 +PREFIX lgdo: <http://linkedgeodata.org/ontology/>
   1.132 +PREFIX gn: <http://www.geonames.org/ontology#>
   1.133 +
   1.134 +DELETE { ?h noa:hasGeometry ?hGeo}
   1.135 +INSERT { ?h noa:hasGeometry ?dif}
   1.136 +WHERE {
   1.137 +SELECT DISTINCT ?h ?hGeo (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif)
   1.138 +WHERE {
   1.139 +	?h 	rdf:type noa:Hotspot;
   1.140 +		noa:hasAcquisitionTime ?hAcqTime;
   1.141 +		noa:producedFromProcessingChain ?hChain;
   1.142 +		noa:hasGeometry ?hGeo.
   1.143 +		FILTER("2007-08-24T14:45:00"^^xsd:dateTime = ?hAcqTime).
   1.144 +		FILTER(str(?hChain) = "StaticThresholds").
   1.145 +		FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?hGeo)).
   1.146 +		?c rdf:type noa:Coastline ;
   1.147 +		noa:hasGeometry ?cGeo .
   1.148 +		FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?cGeo)).
   1.149 +		FILTER(strdf:anyInteract(?hGeo, ?cGeo)).}
   1.150 +		GROUP BY ?h ?hGeo
   1.151 +		HAVING strdf:overlap(?hGeo, strdf:union(?cGeo)) 
   1.152 +}]]></value>
   1.153 +		</constructor-arg>
   1.154 +		<constructor-arg type="java.lang.String">
   1.155 +			<!-- Query5 -->
   1.156 +			<value><![CDATA[#Get all coniferous forests in Peloponnese
   1.157 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.158 +PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
   1.159 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.160 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.161 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.162 +PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.163 +PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
   1.164 +PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.165 +PREFIX georss: <http://www.georss.org/georss/>
   1.166 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.167 +PREFIX lgdo: <http://linkedgeodata.org/ontology/>
   1.168 +PREFIX gn: <http://www.geonames.org/ontology#>
   1.169 +
   1.170 +SELECT ?a ?aGeo
   1.171 +WHERE{?a rdf:type clc:Area;
   1.172 +clc:hasLandUse ?aLandUse;
   1.173 +noa:hasGeometry ?aGeo.
   1.174 +?aLandUse rdf:type ?aLandUseType.
   1.175 +FILTER(?aLandUseType = clc:ConiferousForest).
   1.176 +FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^strdf:WKT,?aGeo)). 
   1.177 +}]]></value>
   1.178 +		</constructor-arg>
   1.179 +		<constructor-arg type="java.lang.String">
   1.180 +			<!-- Query6 -->
   1.181 +            <value><![CDATA[# Get all municipalities of Pelloponnese
   1.182 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.183 +PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
   1.184 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.185 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.186 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.187 +PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.188 +PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
   1.189 +PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.190 +PREFIX georss: <http://www.georss.org/georss/>
   1.191 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.192 +PREFIX lgdo: <http://linkedgeodata.org/lontology/>
   1.193 +PREFIX gn: <http://www.geonames.org/ontology#>
   1.194 +
   1.195 +SELECT ?d ?dGeo
   1.196 +WHERE { 
   1.197 +	?d a gag:Dhmos; 
   1.198 +		strdf:hasGeometry ?dGeo; 
   1.199 +		rdfs:label ?dLabel. 
   1.200 +FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?dGeo)).
   1.201 +}]]></value>
   1.202 +		</constructor-arg>
   1.203 +		<constructor-arg type="java.lang.String">
   1.204 +			<!-- Query7 -->
   1.205 +            <value><![CDATA[# Get all primary roads in Pelloponnese
   1.206 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.207 +PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
   1.208 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.209 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.210 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.211 +PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.212 +PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
   1.213 +PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.214 +PREFIX georss: <http://www.georss.org/georss/>
   1.215 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.216 +PREFIX lgdo: <http://linkedgeodata.org/ontology/>
   1.217 +PREFIX gn: <http://www.geonames.org/ontology#>
   1.218 +
   1.219 +SELECT ?r ?rGeo
   1.220 +WHERE {
   1.221 +?r rdf:type ?rType ;
   1.222 +   noa:hasGeometry ?rGeo .
   1.223 +FILTER(?rType = lgdo:Primary) .
   1.224 +FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05,21.027 38.36))"^^strdf:WKT, ?rGeo) ).
   1.225  }
   1.226  ]]></value>
   1.227  		</constructor-arg>
   1.228  		<constructor-arg type="java.lang.String">
   1.229 -			<!-- Query3 -->
   1.230 -			<value><![CDATA[PREFIX+noa%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+clc%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FclcOntology.owl%23>%0D%0APREFIX+rdf%3A+<http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23>%0D%0APREFIX+rdfs%3A+<http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23>%0D%0APREFIX+strdf%3A+<http%3A%2F%2Fstrdf.di.uoa.gr%2Fontology%23>%0D%0APREFIX+teleios%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+gag%3A+<http%3A%2F%2Fwww.semanticweb.org%2Fontologies%2F2011%2FgagKallikratis.rdf%23>%0D%0APREFIX+geo%3A+<http%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23>%0D%0APREFIX+georss%3A+<http%3A%2F%2Fwww.georss.org%2Fgeorss%2F>%0D%0APREFIX+xsd%3A+<http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23>%0D%0APREFIX+lgdo%3A+<http%3A%2F%2Flinkedgeodata.org%2Fontology%2F>%0D%0APREFIX+gn%3A+<http%3A%2F%2Fwww.geonames.org%2Fontology%23>%0D%0A%0D%0ASELECT+%3Fn+%3FnGeo+%3FnType+%3FnLabel%0D%0A{%0D%0A++++%3Fn++a+%3FnType+%3B%0D%0A++++++++geo%3Ageometry+%3FnGeo+%3B%0D%0A++++++++rdfs%3Alabel+%3FnLabel+.%0D%0A++++++++FILTER(+%3FnType+%3D+lgdo%3AHospital+||+%3FnType+%3D+lgdo%3AAerodrome+||+%3FnType+%3D+lgdo%3ARailway+)+.%0D%0A++++++++FILTER(++strdf%3Acontains(%22POLYGON((21.027+38.36%2C+23.77+38.36%2C+23.77+36.05%2C+21.027+36.05%2C+21.027+38.36))%22^^strdf%3AWKT%2C+%3FnGeo)+)+.%0D%0A}&format=KML]]></value>
   1.231 -		</constructor-arg>
   1.232 -		<constructor-arg type="java.lang.String">
   1.233 -			<!-- Query4 -->
   1.234 -			<value><![CDATA[%23+Get+all+Perfectures%0D%0A%23+-+in+Pelloponesus%0D%0A%0D%0A%23real%090m31.239s%0D%0A%23user%090m8.060s%0D%0A%23sys%090m0.480s%0D%0A%0D%0APREFIX+noa%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+clc%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FclcOntology.owl%23>%0D%0APREFIX+rdf%3A+<http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23>%0D%0APREFIX+rdfs%3A+<http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23>%0D%0APREFIX+strdf%3A+<http%3A%2F%2Fstrdf.di.uoa.gr%2Fontology%23>%0D%0APREFIX+teleios%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+gag%3A+<http%3A%2F%2Fwww.semanticweb.org%2Fontologies%2F2011%2FgagKallikratis.rdf%23>%0D%0APREFIX+geo%3A+<http%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23>%0D%0APREFIX+georss%3A+<http%3A%2F%2Fwww.georss.org%2Fgeorss%2F>%0D%0APREFIX+xsd%3A+<http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23>%0D%0APREFIX+lgdo%3A+<http%3A%2F%2Flinkedgeodata.org%2Fontology%2F>%0D%0APREFIX+gn%3A+<http%3A%2F%2Fwww.geonames.org%2Fontology%23>%0D%0A%0D%0ASELECT+%3Fg+%3FgYpesCode+%3FgContainer+%3FgLabel+(+strdf%3Aboundary(%3FgGeog)+as+%3FgBoundary+)%0D%0AWHERE+{%0D%0A++++%3Fg++a+gag%3ADhmos+%3B%0D%0A++++++++noa%3AhasYpesCode+%3FgYpesCode+%3B%0D%0A++++++++gag%3AisPartOf+%3FgContainer+%3B%0D%0A++++++++rdfs%3Alabel+%3FgLabel+%3B%0D%0A++++++++strdf%3AhasGeometry+%3FgGeog+.%0D%0A++++FILTER(++strdf%3Acontains(%22POLYGON((21.027+38.36%2C+23.77+38.36%2C+23.77+36.05%2C+21.027+36.05%2C+21.027+38.36))%22^^strdf%3AWKT%2C+%3FgGeog)+)+.%0D%0A}&format=KML]]></value>
   1.235 -		</constructor-arg>
   1.236 -		<constructor-arg type="java.lang.String">
   1.237 -			<!-- Query5 -->
   1.238 -			<value><![CDATA[%23+Get+all+Prefectures%0D%0A%23+-+in+Pelloponesus%0D%0A%0D%0A%23real%090m31.239s%0D%0A%23user%090m8.060s%0D%0A%23sys%090m0.480s%0D%0A%0D%0APREFIX+noa%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+clc%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FclcOntology.owl%23>%0D%0APREFIX+rdf%3A+<http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23>%0D%0APREFIX+rdfs%3A+<http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23>%0D%0APREFIX+strdf%3A+<http%3A%2F%2Fstrdf.di.uoa.gr%2Fontology%23>%0D%0APREFIX+teleios%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+gag%3A+<http%3A%2F%2Fwww.semanticweb.org%2Fontologies%2F2011%2FgagKallikratis.rdf%23>%0D%0APREFIX+geo%3A+<http%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23>%0D%0APREFIX+georss%3A+<http%3A%2F%2Fwww.georss.org%2Fgeorss%2F>%0D%0APREFIX+xsd%3A+<http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23>%0D%0APREFIX+lgdo%3A+<http%3A%2F%2Flinkedgeodata.org%2Fontology%2F>%0D%0APREFIX+gn%3A+<http%3A%2F%2Fwww.geonames.org%2Fontology%23>%0D%0A%0D%0ASELECT+%3Fg+%3FgYpesCode+%3FgContainer+%3FgLabel+(+strdf%3Aboundary(%3FgGeog)+as+%3FgBoundary+)%0D%0AWHERE+{%0D%0A++++%3Fg++a+gag%3ADhmos+%3B%0D%0A++++++++noa%3AhasYpesCode+%3FgYpesCode+%3B%0D%0A++++++++gag%3AisPartOf+%3FgContainer+%3B%0D%0A++++++++rdfs%3Alabel+%3FgLabel+%3B%0D%0A++++++++strdf%3AhasGeometry+%3FgGeog+.%0D%0A++++FILTER(++strdf%3Acontains(%22POLYGON((21.027+38.36%2C+23.77+38.36%2C+23.77+36.05%2C+21.027+36.05%2C+21.027+38.36))%22^^strdf%3AWKT%2C+%3FgGeog)+)+.%0D%0A}&format=KML]]></value>
   1.239 -		</constructor-arg>
   1.240 -		<constructor-arg type="java.lang.String">
   1.241 -			<!-- Query6 -->
   1.242 -                        <value><![CDATA[]]></value>
   1.243 -		</constructor-arg>
   1.244 -		<constructor-arg type="java.lang.String">
   1.245 -			<!-- Query7 -->
   1.246 -                        <value><![CDATA[]]></value>
   1.247 -		</constructor-arg>
   1.248 -		<constructor-arg type="java.lang.String">
   1.249  			<!-- Query8 -->
   1.250 -                        <value><![CDATA[]]></value>
   1.251 +            <value><![CDATA[# Get all hotspots 
   1.252 +# - in Pelloponesus 
   1.253 +# - at 2007-08-24
   1.254 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.255 +PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
   1.256 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   1.257 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   1.258 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
   1.259 +PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
   1.260 +PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
   1.261 +PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
   1.262 +PREFIX georss: <http://www.georss.org/georss/>
   1.263 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   1.264 +PREFIX lgdo: <http://linkedgeodata.org/ontology/>
   1.265 +PREFIX gn: <http://www.geonames.org/ontology#>
   1.266 +
   1.267 +SELECT ?h ?hAcqTime ?hConfidence ?hConfirmation ?hProvider ?hSensor ?hSatellite (strdf:transform(?hGeo, <http://www.opengis.net/def/crs/EPSG/0/4326>) as ?geo) 
   1.268 +WHERE { ?h 	rdf:type noa:Hotspot;
   1.269 +			noa:hasGeometry ?hGeo;
   1.270 +			noa:hasAcquisitionTime ?hAcqTime;
   1.271 +			noa:hasConfidence ?hConfidence;
   1.272 +			noa:isProducedBy ?hProvider;
   1.273 +			noa:hasConfirmation ?hConfirmation;
   1.274 +			noa:isDerivedFromSensor ?hSensor;
   1.275 +			noa:isDerivedFromSatellite ?hSatellite ;
   1.276 +			noa:producedFromProcessingChain ?hChain .
   1.277 +	FILTER(str(?hChain) = "StaticThresholds").
   1.278 +	FILTER(?hAcqTime = "2007-08-24T14:45:00"^^xsd:dateTime) .
   1.279 +	FILTER(strdf:contains("POLYGON((21.027 38.36, 23.77 38.36, 23.77 36.05, 21.027 36.05, 21.027 38.36))"^^ strdf:WKT, ?hGeo)) . 
   1.280 +}]]></value>
   1.281  		</constructor-arg>
   1.282                  <constructor-arg type="java.lang.String">
   1.283                          <!-- Default format -->