Strabon

diff examples/teleios/refinePartialSeaHotspots.rq @ 1449:373b66ce4884

tests for bug #78
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Thu Dec 18 18:23:59 2014 +0200 (2014-12-18)
parents bf41e1f04c52
children
line diff
     1.1 --- a/examples/teleios/refinePartialSeaHotspots.rq	Mon Dec 10 22:27:44 2012 +0200
     1.2 +++ b/examples/teleios/refinePartialSeaHotspots.rq	Thu Dec 18 18:23:59 2014 +0200
     1.3 @@ -22,16 +22,18 @@
     1.4  WHERE { 
     1.5    SELECT ?h  (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif) (URI(CONCAT(STR(?h),"/refined")) AS ?valid) ?conf ?muni
     1.6    WHERE { 
     1.7 -	 ?h     noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime; 
     1.8 +	?h     noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime; 
     1.9         		noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; 
    1.10         		noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    1.11 -		noa:hasGeometry ?hGeo ;
    1.12 +			noa:hasGeometry ?hGeo ;
    1.13         		gag:hasMunicipality ?muni ;
    1.14         		noa:hasConfidence ?conf .
    1.15 +	 OPTIONAL{?h noa:refinedBy ?r. FILTER(?r=noa:coastlineRefinement)}.
    1.16 +	 FILTER(!bound(?r)).
    1.17  	 ?c     rdf:type gag:GeometryPart ;
    1.18         		gag:hasGeometry ?cGeo .
    1.19 -       	FILTER(strdf:mbbOverlaps(?hGeo, ?cGeo)) . 
    1.20 -	OPTIONAL { ?h noa:refinedBy ?refined } .
    1.21 +     FILTER(strdf:mbbIntersects(?hGeo, ?cGeo)) . 
    1.22 +	 OPTIONAL { ?h noa:refinedBy ?refined } .
    1.23    }
    1.24    GROUP BY ?h ?hGeo ?conf ?muni
    1.25    HAVING strdf:overlaps(?hGeo, strdf:union(?cGeo))