Strabon

view scripts/archive/v2/Refine.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 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
2 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
4 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
7 INSERT { ?h noa:isDiscarded "1"^^xsd:int .
8 ?valid rdf:type noa:Hotspot ;
9 noa:hasConfidence ?conf ;
10 noa:hasGeometry ?dif ;
11 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
12 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
13 noa:hasConfirmation noa:unknown ;
14 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
15 noa:isProducedBy noa:noa ;
16 noa:isDerivedFromSatellite ?sat .
17 }
18 WHERE {
19 SELECT DISTINCT ?h ?hGeo (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif) (BNODE() AS ?valid) ?conf ?sat
20 WHERE {
21 ?h rdf:type noa:Hotspot ;
22 noa:hasAcquisitionTime ?hAcqTime ;
23 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
24 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
25 noa:hasGeometry ?hGeo ;
26 noa:hasConfidence ?conf ;
27 noa:isDerivedFromSatellite ?sat .
28 FILTER("TIMESTAMP"^^xsd:dateTime = ?hAcqTime) .
29 ?c rdf:type noa:Coastline ;
30 noa:hasGeometry ?cGeo .
31 FILTER(strdf:mbbIntersects(?hGeo, ?cGeo)) .
32 }
33 GROUP BY ?h ?hGeo ?conf ?sat
34 HAVING strdf:overlap(?hGeo, strdf:union(?cGeo))
35 }