Strabon

view scripts/archive/v2/discover.sparql @ 965:69a0a785ef8f

added new "constants" module with artifactId "spatial-temporal-constants" and moved GeoConstants there
author Babis Nikolaou <charnik@di.uoa.gr>
date Tue Apr 02 13:27:01 2013 +0300 (2013-04-02)
parents b76d08b43131
children
line source
1 #Discover hotspots depending on their acquisition time, processing chain and sensor
2 #Return the hotspot's uri, its geometry and the affected municipalities
3 #reference dataset: http://dev.strabon.di.uoa.gr/rdf/Kallikratis-Coastline.ntriples
5 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
6 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
7 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
8 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
9 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
10 PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
12 SELECT ?h ?geo ?conf (GROUP_CONCAT(?dLabel ; SEPARATOR=', ') AS ?dimoi )
13 WHERE {
14 ?h rdf:type noa:Hotspot ;
15 noa:hasGeometry ?hGeo ;
16 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
17 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
18 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
19 noa:hasConfidence ?conf .
20 ?d rdf:type gag:Dhmos;
21 strdf:hasGeometry ?dGeo;
22 rdfs:label ?dLabel.
23 FILTER(strdf:mbbIntersects(?dGeo, ?hGeo)).
24 }
25 GROUP BY ?h (strdf:transform(?hGeo, <http://www.opengis.net/def/crs/EPSG/0/4326>) AS ?geo) ?conf