Strabon

annotate examples/teleios/refinePartialSeaHotspots.rq @ 1427:5b6b65340693

merge with default branch
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Sep 24 18:44:26 2014 +0300 (2014-09-24)
parents bf41e1f04c52
children
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 {
ggarbis@862 25 ?h noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime;
charnik@564 26 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
charnik@564 27 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
ggarbis@862 28 noa:hasGeometry ?hGeo ;
charnik@564 29 gag:hasMunicipality ?muni ;
charnik@564 30 noa:hasConfidence ?conf .
ggarbis@862 31 OPTIONAL{?h noa:refinedBy ?r. FILTER(?r=noa:coastlineRefinement)}.
ggarbis@862 32 FILTER(!bound(?r)).
charnik@564 33 ?c rdf:type gag:GeometryPart ;
charnik@564 34 gag:hasGeometry ?cGeo .
ggarbis@862 35 FILTER(strdf:mbbIntersects(?hGeo, ?cGeo)) .
ggarbis@862 36 OPTIONAL { ?h noa:refinedBy ?refined } .
kkyzir@536 37 }
kkyzir@536 38 GROUP BY ?h ?hGeo ?conf ?muni
kkyzir@795 39 HAVING strdf:overlaps(?hGeo, strdf:union(?cGeo))
kkyzir@536 40 }