Strabon

annotate examples/teleios/refinePartialSeaHotspots.rq @ 646:300e958d034b

temporals
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Tue Oct 16 15:47:04 2012 +0300 (2012-10-16)
parents 41246f8ce66e
children fd5b6c160777
rev   line source
kkyzir@536 1 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
kkyzir@536 2 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
kkyzir@536 3 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
kkyzir@536 4 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
kkyzir@536 5 PREFIX gag: <http://geo.linkedopendata.gr/greekadministrativeregion/ontology#>
kkyzir@536 6
kkyzir@536 7
kkyzir@536 8 INSERT { ?h noa:isDiscarded "1"^^xsd:int .
charnik@564 9 ?valid rdf:type noa:Hotspot ;
charnik@564 10 noa:hasConfidence ?conf ;
charnik@564 11 noa:hasGeometry ?dif ;
charnik@564 12 gag:hasMunicipality ?muni ;
charnik@564 13 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
charnik@564 14 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
charnik@564 15 noa:hasConfirmation noa:unknown ;
charnik@564 16 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
charnik@564 17 noa:isProducedBy noa:noa ;
charnik@564 18 noa:isDerivedFromSatellite "SAT"^^xsd:string ;
charnik@564 19 noa:refinedBy noa:coastlineRefinement ;
charnik@564 20 noa:refinedBy ?refined .
kkyzir@536 21 }
kkyzir@536 22 WHERE {
kkyzir@536 23 SELECT ?h (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif) (URI(CONCAT(STR(?h),"/refined")) AS ?valid) ?conf ?muni
kkyzir@536 24 WHERE {
charnik@564 25 ?h noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime;
charnik@564 26 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
charnik@564 27 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
charnik@564 28 noa:hasGeometry ?hGeo ;
charnik@564 29 gag:hasMunicipality ?muni ;
charnik@564 30 noa:hasConfidence ?conf .
charnik@564 31 ?c rdf:type gag:GeometryPart ;
charnik@564 32 gag:hasGeometry ?cGeo .
charnik@564 33 FILTER(strdf:mbbIntersects(?hGeo, ?cGeo)) .
charnik@564 34 OPTIONAL { ?h noa:refinedBy ?refined } .
kkyzir@536 35 }
kkyzir@536 36 GROUP BY ?h ?hGeo ?conf ?muni
kkyzir@536 37 HAVING strdf:overlap(?hGeo, strdf:union(?cGeo))
kkyzir@536 38 }