Strabon

changeset 406:980bb71b7d05

Added the sparql query that NOA will use in order to discover Hotspots and municipalities
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Tue Jul 03 19:02:28 2012 +0300 (2012-07-03)
parents c3da25e03c13
children b0045954fe02
files scripts/v2/discover.sparql
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/v2/discover.sparql	Tue Jul 03 19:02:28 2012 +0300
     1.3 @@ -0,0 +1,25 @@
     1.4 +#Discover hotspots depending on their acquisition time, processing chain and sensor
     1.5 +#Return the hotspot's uri, its geometry and the affected municipalities
     1.6 +#reference dataset: http://dev.strabon.di.uoa.gr/rdf/Kallikratis-Coastline.ntriples
     1.7 +
     1.8 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     1.9 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
    1.10 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
    1.11 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
    1.12 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    1.13 +PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
    1.14 +
    1.15 +SELECT ?h ?geo ?conf (GROUP_CONCAT(?dLabel ; SEPARATOR=', ') AS ?dimoi )
    1.16 +WHERE { 
    1.17 +  ?h rdf:type noa:Hotspot ; 
    1.18 +     noa:hasGeometry ?hGeo ;
    1.19 +     noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ; 
    1.20 +     noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; 
    1.21 +     noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    1.22 +     noa:hasConfidence ?conf .
    1.23 +  ?d rdf:type gag:Dhmos;
    1.24 +     strdf:hasGeometry ?dGeo;
    1.25 +     rdfs:label ?dLabel.
    1.26 +  FILTER(strdf:anyInteract(?dGeo, ?hGeo)).
    1.27 +}
    1.28 +GROUP BY ?h (strdf:transform(?hGeo, <http://www.opengis.net/def/crs/EPSG/0/4326>) AS ?geo) ?conf