Strabon

view scripts/archive/v2.1/Refine.sparql @ 1277:92b90ac06d39

[maven-release-plugin] prepare release v3.2.9
author Babis Nikolaou <charnik@di.uoa.gr>
date Sat Oct 19 23:37:23 2013 +0300 (2013-10-19)
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#>
6 INSERT { ?h noa:isDiscarded "1"^^xsd:int .
7 ?valid rdf:type noa:Hotspot ;
8 noa:hasConfidence ?conf ;
9 noa:hasGeometry ?dif ;
10 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
11 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
12 noa:hasConfirmation noa:unknown ;
13 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
14 noa:isProducedBy noa:noa ;
15 noa:isDerivedFromSatellite "SAT"^^xsd:string .
16 }
17 WHERE {
18 SELECT ?h (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif) (BNODE() AS ?valid) ?conf
19 WHERE {
20 ?h noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime;
21 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
22 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
23 noa:hasGeometry ?hGeo ;
24 noa:hasConfidence ?conf .
25 ?c rdf:type noa:Coastline ;
26 noa:hasGeometry ?cGeo .
27 FILTER(strdf:mbbIntersects(?hGeo, ?cGeo)) .
28 }
29 GROUP BY ?h ?hGeo ?conf
30 HAVING strdf:overlap(?hGeo, strdf:union(?cGeo))
31 }