Strabon

changeset 424:0cec2e2b3fd2

rewrite of DeleteInSea using municipalities
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Jul 11 16:39:51 2012 +0300 (2012-07-11)
parents 5de787a78c44
children 56533b5328bb
files scripts/v2.2/DeleteInSea.sparql
line diff
     1.1 --- a/scripts/v2.2/DeleteInSea.sparql	Wed Jul 11 16:09:17 2012 +0300
     1.2 +++ b/scripts/v2.2/DeleteInSea.sparql	Wed Jul 11 16:39:51 2012 +0300
     1.3 @@ -1,18 +1,17 @@
     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 noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
     1.9 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    1.10 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    1.11 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
    1.12 +PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
    1.13  
    1.14  INSERT {?h noa:isDiscarded "1"^^xsd:int} 
    1.15  WHERE {
    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 +?h   noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
    1.20 +     noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    1.21 +     noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    1.22       noa:hasGeometry ?hGeo.
    1.23    OPTIONAL {
    1.24 -    ?c rdf:type noa:Coastline;
    1.25 -       noa:hasGeometry ?cGeo . 
    1.26 -    FILTER(strdf:anyInteract(?hGeo, ?cGeo)) .
    1.27 +    ?h	gag:hasMunicipality ?muni .
    1.28    } 
    1.29 -  FILTER(!bound(?c)) . 
    1.30 +  FILTER(!bound(?muni)) .
    1.31  }