Strabon

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/teleios/refinePartialSeaHotspots.rq	Tue Oct 16 15:47:04 2012 +0300
     1.3 @@ -0,0 +1,38 @@
     1.4 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     1.5 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
     1.6 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
     1.7 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     1.8 +PREFIX gag: <http://geo.linkedopendata.gr/greekadministrativeregion/ontology#>
     1.9 +
    1.10 +
    1.11 +INSERT { ?h noa:isDiscarded "1"^^xsd:int . 
    1.12 +	    ?valid rdf:type noa:Hotspot ;
    1.13 +	    noa:hasConfidence ?conf ;
    1.14 +	    noa:hasGeometry ?dif ;
    1.15 +	    gag:hasMunicipality ?muni ;
    1.16 +	    noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ; 
    1.17 +	    noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    1.18 +	    noa:hasConfirmation noa:unknown ;
    1.19 +	    noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; 
    1.20 +	    noa:isProducedBy noa:noa ;
    1.21 +	    noa:isDerivedFromSatellite "SAT"^^xsd:string ;
    1.22 +            noa:refinedBy noa:coastlineRefinement ;
    1.23 +            noa:refinedBy ?refined .
    1.24 +}
    1.25 +WHERE { 
    1.26 +  SELECT ?h  (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif) (URI(CONCAT(STR(?h),"/refined")) AS ?valid) ?conf ?muni
    1.27 +  WHERE { 
    1.28 +	 ?h     noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime; 
    1.29 +       		noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; 
    1.30 +       		noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    1.31 +		noa:hasGeometry ?hGeo ;
    1.32 +       		gag:hasMunicipality ?muni ;
    1.33 +       		noa:hasConfidence ?conf .
    1.34 +	 ?c     rdf:type gag:GeometryPart ;
    1.35 +       		gag:hasGeometry ?cGeo .
    1.36 +       	FILTER(strdf:mbbIntersects(?hGeo, ?cGeo)) . 
    1.37 +	OPTIONAL { ?h noa:refinedBy ?refined } .
    1.38 +  }
    1.39 +  GROUP BY ?h ?hGeo ?conf ?muni
    1.40 +  HAVING strdf:overlap(?hGeo, strdf:union(?cGeo))
    1.41 +}