Strabon
annotate examples/teleios/refinePartialSeaHotspots.rq @ 1531:142b6555a010
[maven-release-plugin] prepare release v3.2.11-temporals
author | Konstantina Bereta <Konstantina.Bereta@di.uoa.gr> |
---|---|
date | Thu Sep 22 16:52:54 2016 +0300 (2016-09-22) |
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 } |