Strabon

diff examples/teleios/landUseInvalidForFires.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 d45be7385224
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/teleios/landUseInvalidForFires.rq	Tue Oct 16 15:47:04 2012 +0300
     1.3 @@ -0,0 +1,23 @@
     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 clc: <http://geo.linkedopendata.gr/corine/ontology#>
     1.9 +
    1.10 +INSERT {?h noa:isDiscarded "1"^^xsd:int ;
    1.11 +           noa:refinedBy noa:clcInconsistency .
    1.12 +} 
    1.13 +WHERE {
    1.14 +	SELECT ?h WHERE 
    1.15 +	{
    1.16 +		?h  noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
    1.17 +			noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    1.18 +			noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    1.19 +			noa:hasGeometry ?hGeo.
    1.20 +		?a  rdf:type   clc:ExcludeArea;
    1.21 +			clc:hasGeometry ?aGeo.
    1.22 +		FILTER(strdf:mbbIntersects(?hGeo,?aGeo)).
    1.23 +	} 
    1.24 +	GROUP BY ?h ?hGeo
    1.25 +	HAVING strdf:contains(strdf:union(?aGeo),?hGeo)
    1.26 +}