Strabon

diff examples/teleios/deleteReflections.rq @ 1499:8e6437ba6ba2

[maven-release-plugin] prepare for next development iteration
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Mar 11 20:30:53 2015 +0200 (2015-03-11)
parents 35ee9c800a47
children
line diff
     1.1 --- a/examples/teleios/deleteReflections.rq	Fri Dec 07 22:24:33 2012 +0200
     1.2 +++ b/examples/teleios/deleteReflections.rq	Wed Mar 11 20:30:53 2015 +0200
     1.3 @@ -14,7 +14,7 @@
     1.4  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
     1.5  
     1.6  INSERT {?h1 noa:isDiscarded "1"^^xsd:int ;
     1.7 -           noa:refinedBy noa:reflections .
     1.8 +			noa:refinedBy noa:reflections .
     1.9  }
    1.10  WHERE {
    1.11      SELECT ?h1 (count(?h2) as ?h2Count)
    1.12 @@ -22,24 +22,24 @@
    1.13          # Retrieve a hotspot of the current acquisition
    1.14          ?h1 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ; #"2007-08-23T13:00:00"^^xsd:dateTime ; 
    1.15              noa:hasGeometry ?geo ;
    1.16 -		    noa:producedFromProcessingChain "CHAIN"^^xsd:string ; #"StaticThresholds"^^xsd:string ;
    1.17 +		    noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; #"StaticThresholds"^^xsd:string ;
    1.18           	noa:isDerivedFromSensor "SENSOR"^^xsd:string . # "MSG2"^^xsd:string .
    1.19  
    1.20 -        # Retrieve all hotspots with the same geometry detected at least an hour ago
    1.21 +        # Retrieve all hotspots with the same geometry detected at most an hour ago
    1.22          ?h2	noa:hasAcquisitionTime ?h2Time ;
    1.23  	        noa:hasGeometry ?geo ;
    1.24 -	        noa:producedFromProcessingChain "CHAIN"^^xsd:string ; #"StaticThresholds"^^xsd:string ;
    1.25 +	        noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; #"StaticThresholds"^^xsd:string ;
    1.26           	noa:isDerivedFromSensor "SENSOR"^^xsd:string . # "MSG2"^^xsd:string .
    1.27 -    	FILTER("TIMESTAMP_MINUS_ONE_HOUR"^^xsd:dateTime < ?hTime && ?hTime <= "TIMESTAMP"^^xsd:dateTime ) .
    1.28 +    	FILTER("MIN_ACQUISITION_TIME"^^xsd:dateTime <= ?h2Time && ?h2Time <= "TIMESTAMP"^^xsd:dateTime ) .
    1.29  #        FILTER("2007-08-23T12:00:00"^^xsd:dateTime <= ?h2Time && ?h2Time <= "2007-08-23T13:00:00"^^xsd:dateTime) .
    1.30  
    1.31  		# Filter the results so that the above hotspots have no neighbours
    1.32          OPTIONAL {
    1.33              ?h3	noa:hasAcquisitionTime ?h3Time ;
    1.34  	            noa:hasGeometry ?h3Geo ;
    1.35 -	            noa:producedFromProcessingChain "CHAIN"^^xsd:string ; #"StaticThresholds"^^xsd:string ;
    1.36 +	            noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; #"StaticThresholds"^^xsd:string ;
    1.37               	noa:isDerivedFromSensor "SENSOR"^^xsd:string . # "MSG2"^^xsd:string .
    1.38 -        	FILTER("TIMESTAMP_MINUS_ONE_HOUR"^^xsd:dateTime < ?hTime && ?hTime <= "TIMESTAMP"^^xsd:dateTime ) .
    1.39 +        	FILTER("MIN_ACQUISITION_TIME"^^xsd:dateTime <= ?h3Time && ?h3Time <= "TIMESTAMP"^^xsd:dateTime ) .
    1.40  #            FILTER("2007-08-23T12:00:00"^^xsd:dateTime <= ?h3Time && ?h3Time <= "2007-08-23T13:00:00"^^xsd:dateTime) .
    1.41  	        FILTER(strdf:touch(?geo, ?h3Geo)).
    1.42          }
    1.43 @@ -48,5 +48,5 @@
    1.44  	# Select every hotspot of the current acquisition which has no neighbours since an hour ago until now
    1.45  	# and is "on" during all this time (MSG2 can have 333 detections during an hour)
    1.46      GROUP BY ?h1
    1.47 -    HAVING (?h2Count > 3)
    1.48 +    HAVING (?h2Count >= ACQUISITIONS_IN_AN_HOUR)
    1.49  }