Strabon

changeset 453:1caabaa1a742

polishing names
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Wed Jul 18 18:49:53 2012 +0300 (2012-07-18)
parents bc689789c911
children c38041bfcb3d da5b9a0d9659
files scripts/v2.2/DeleteInSea.sparql scripts/v2.2/InsertMunicipalities.sparql scripts/v2.2/InvalidForFires-temp.sparql scripts/v2.2/InvalidForFires.sparql scripts/v2.2/Refine.sparql scripts/v2.2/TimePersistence.sparql scripts/v2.2/deleteSeaHotspots.sparql scripts/v2.2/insertMunicipalities.sparql scripts/v2.2/landUseInvalidForFires.sparql scripts/v2.2/refinePartialSeaHotspots.sparql scripts/v2.2/refineTimePersistence.sparql scripts/v2.2/runNoaRefinementChain.sh
line diff
     1.1 --- a/scripts/v2.2/DeleteInSea.sparql	Wed Jul 18 17:48:56 2012 +0300
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,17 +0,0 @@
     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://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
     1.9 -
    1.10 -
    1.11 -INSERT {?h noa:isDiscarded "1"^^xsd:int} 
    1.12 -WHERE {
    1.13 -?h   noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
    1.14 -     noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    1.15 -     noa:isDerivedFromSensor "SENSOR"^^xsd:string .
    1.16 -       OPTIONAL {
    1.17 -    ?h	gag:hasMunicipality ?muni .
    1.18 -  } 
    1.19 -  FILTER(!bound(?muni)) .
    1.20 -}
     2.1 --- a/scripts/v2.2/InsertMunicipalities.sparql	Wed Jul 18 17:48:56 2012 +0300
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,23 +0,0 @@
     2.4 -PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
     2.5 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
     2.6 -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
     2.7 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
     2.8 -PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
     2.9 -PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    2.10 -
    2.11 -INSERT { ?h gag:hasMunicipality ?muni }
    2.12 -WHERE { 
    2.13 -SELECT ?h (SAMPLE(?mLabel) AS ?muni)
    2.14 -  WHERE {
    2.15 -	?h  rdf:type noa:Hotspot ;
    2.16 -		noa:hasGeometry ?hGeo ;
    2.17 -		noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    2.18 -		noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    2.19 -        noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime.
    2.20 -	?m	rdf:type gag:Dhmos ;
    2.21 -		rdfs:label ?mLabel ;
    2.22 -		strdf:hasGeometry ?mGeo .
    2.23 -	FILTER(strdf:mbbIntersects(?hGeo, ?mGeo)) .
    2.24 -  }  
    2.25 -  GROUP BY ?h
    2.26 -}
     3.1 --- a/scripts/v2.2/InvalidForFires-temp.sparql	Wed Jul 18 17:48:56 2012 +0300
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,19 +0,0 @@
     3.4 -PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     3.5 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
     3.6 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
     3.7 -PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     3.8 -PREFIX clc: <http://www.linkedgeodata.gr/corine/ontology#>
     3.9 -
    3.10 -INSERT {?h noa:isDiscarded "1"^^xsd:int} 
    3.11 -WHERE {
    3.12 -?h   noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
    3.13 -     noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    3.14 -     noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    3.15 -     noa:hasGeometry ?hGeo.
    3.16 -?a   clc:hasLanduse  example:InvalidForFires;
    3.17 -	 clc:hasGeometry ?aGeo.
    3.18 -	 #clc:hasCode_Level1 ?code1.
    3.19 -	 #clc:hasCode_Level2 ?code2.
    3.20 -#FILTER(?code1 = "1"^^xsd:integer || ?code2 = "21"^^xsd:integer || ?code2 = "22"^^xsd:integer || ?code1 = "4"^^xsd:integer || ?code2 = "51"^^xsd:integer).
    3.21 -FILTER(strdf:contains(?aGeo,?hGeo)).
    3.22 -}
     4.1 --- a/scripts/v2.2/InvalidForFires.sparql	Wed Jul 18 17:48:56 2012 +0300
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,23 +0,0 @@
     4.4 -PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     4.5 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
     4.6 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
     4.7 -PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     4.8 -PREFIX clc: <http://geo.linkedopendata.gr/corine/ontology#>
     4.9 -
    4.10 -
    4.11 -
    4.12 -INSERT {?h noa:isDiscarded "1"^^xsd:int} 
    4.13 -WHERE {
    4.14 -SELECT ?h WHERE 
    4.15 -{
    4.16 -?h   noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
    4.17 -     noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    4.18 -     noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    4.19 -     noa:hasGeometry ?hGeo.
    4.20 -?a   rdf:type   clc:ExcludeArea;
    4.21 -  clc:hasGeometry ?aGeo.
    4.22 -FILTER(strdf:mbbIntersects(?hGeo,?aGeo)).
    4.23 -} 
    4.24 -GROUP BY ?h ?hGeo
    4.25 -HAVING strdf:contains(strdf:union(?aGeo),?hGeo)
    4.26 -}
     5.1 --- a/scripts/v2.2/Refine.sparql	Wed Jul 18 17:48:56 2012 +0300
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,35 +0,0 @@
     5.4 -PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     5.5 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
     5.6 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
     5.7 -PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     5.8 -PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
     5.9 -
    5.10 -
    5.11 -INSERT { ?h noa:isDiscarded "1"^^xsd:int . 
    5.12 -	 ?valid rdf:type noa:Hotspot ;
    5.13 -		noa:hasConfidence ?conf ;
    5.14 -	        noa:hasGeometry ?dif ;
    5.15 -	        gag:hasMunicipality ?muni ;
    5.16 -		noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ; 
    5.17 -	        noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    5.18 -		noa:hasConfirmation noa:unknown ;
    5.19 -	        noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; 
    5.20 -		noa:isProducedBy noa:noa ;
    5.21 -		noa:isDerivedFromSatellite "SAT"^^xsd:string .
    5.22 -}
    5.23 -WHERE { 
    5.24 -  SELECT ?h  (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif) (BNODE() AS ?valid) ?conf ?muni
    5.25 -  WHERE { 
    5.26 -?h     noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime; 
    5.27 -       noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; 
    5.28 -       noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    5.29 -       noa:hasGeometry ?hGeo ;
    5.30 -       gag:hasMunicipality ?muni ;
    5.31 -       noa:hasConfidence ?conf .
    5.32 -?c     rdf:type noa:Coastline ;
    5.33 -       noa:hasGeometry ?cGeo .
    5.34 -	   FILTER(strdf:mbbIntersects(?hGeo, ?cGeo)) . 
    5.35 -  }
    5.36 -  GROUP BY ?h ?hGeo ?conf ?muni
    5.37 -  HAVING strdf:overlap(?hGeo, strdf:union(?cGeo))
    5.38 -}
     6.1 --- a/scripts/v2.2/TimePersistence.sparql	Wed Jul 18 17:48:56 2012 +0300
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,47 +0,0 @@
     6.4 -PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     6.5 -PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
     6.6 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
     6.7 -PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     6.8 -PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
     6.9 -
    6.10 -
    6.11 -INSERT {
    6.12 - ?newHotspot rdf:type noa:Hotspot ;
    6.13 -		noa:hasConfidence ?hConfidence ;
    6.14 -	        noa:hasGeometry ?hGeometry1 ;
    6.15 -		noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ; 
    6.16 -	        noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    6.17 -		noa:hasConfirmation noa:unknown ;
    6.18 -	        noa:producedFromProcessingChain "PROCESSING_CHAIN-TimePersistence"^^xsd:string ; 
    6.19 -		noa:isProducedBy noa:noa ;
    6.20 -		 gag:hasMunicipality ?muni ;
    6.21 -		noa:isDerivedFromSatellite "SAT"^^xsd:string .
    6.22 -
    6.23 -}
    6.24 -WHERE {
    6.25 -  SELECT (BNODE() AS ?newHotspot)
    6.26 -  (SUM(?hConfidence1)/ACQUISITIONS_IN_HALF_AN_HOUR AS ?hConfidence)
    6.27 -  ?hGeometry1 ?muni
    6.28 -  WHERE {
    6.29 -    ?H1 noa:hasConfidence ?hConfidence1 .
    6.30 -    ?H1 noa:hasGeometry ?hGeometry1 .
    6.31 -    ?H1 gag:hasMunicipality ?muni .
    6.32 -    ?H1 noa:hasAcquisitionTime ?hAcquisitionTime1 .
    6.33 -    ?H1 noa:isDerivedFromSensor "SENSOR"^^xsd:string .
    6.34 -    ?H1 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string .
    6.35 -    OPTIONAL { ?H1 noa:isDiscarded ?z } .
    6.36 -    FILTER (!BOUND(?z)) .
    6.37 -    FILTER( "MIN_ACQUISITION_TIME"^^xsd:dateTime <= ?hAcquisitionTime1 && ?hAcquisitionTime1 < "TIMESTAMP"^^xsd:dateTime ) .
    6.38 -    OPTIONAL {
    6.39 -      ?H2 noa:hasGeometry ?HGEO2 .
    6.40 -      ?H2 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime .
    6.41 -      ?H2 noa:isDerivedFromSensor "SENSOR"^^xsd:string .
    6.42 -      ?H2 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string .
    6.43 -      FILTER(("PROCESSING_CHAIN"^^xsd:string = ?hProcessingChain2)||("PROCESSING_CHAIN-TimePersistence"^^xsd:string = ?hProcessingChain2)).
    6.44 -      FILTER( strdf:mbbEquals(?hGeometry1, ?HGEO2) ) .
    6.45 -    }
    6.46 -    FILTER( !BOUND(?H2) ) .
    6.47 -  }
    6.48 -  GROUP BY ?hGeometry1 ?muni
    6.49 -  HAVING(SUM(?hConfidence1)>0.0)
    6.50 -}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/scripts/v2.2/deleteSeaHotspots.sparql	Wed Jul 18 18:49:53 2012 +0300
     7.3 @@ -0,0 +1,17 @@
     7.4 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
     7.5 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
     7.6 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
     7.7 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
     7.8 +PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
     7.9 +
    7.10 +
    7.11 +INSERT {?h noa:isDiscarded "1"^^xsd:int} 
    7.12 +WHERE {
    7.13 +?h   noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
    7.14 +     noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    7.15 +     noa:isDerivedFromSensor "SENSOR"^^xsd:string .
    7.16 +       OPTIONAL {
    7.17 +    ?h	gag:hasMunicipality ?muni .
    7.18 +  } 
    7.19 +  FILTER(!bound(?muni)) .
    7.20 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/scripts/v2.2/insertMunicipalities.sparql	Wed Jul 18 18:49:53 2012 +0300
     8.3 @@ -0,0 +1,23 @@
     8.4 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
     8.5 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
     8.6 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
     8.7 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
     8.8 +PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
     8.9 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    8.10 +
    8.11 +INSERT { ?h gag:hasMunicipality ?muni }
    8.12 +WHERE { 
    8.13 +SELECT ?h (SAMPLE(?mLabel) AS ?muni)
    8.14 +  WHERE {
    8.15 +	?h  rdf:type noa:Hotspot ;
    8.16 +		noa:hasGeometry ?hGeo ;
    8.17 +		noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    8.18 +		noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    8.19 +        noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime.
    8.20 +	?m	rdf:type gag:Dhmos ;
    8.21 +		rdfs:label ?mLabel ;
    8.22 +		strdf:hasGeometry ?mGeo .
    8.23 +	FILTER(strdf:mbbIntersects(?hGeo, ?mGeo)) .
    8.24 +  }  
    8.25 +  GROUP BY ?h
    8.26 +}
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/scripts/v2.2/landUseInvalidForFires.sparql	Wed Jul 18 18:49:53 2012 +0300
     9.3 @@ -0,0 +1,23 @@
     9.4 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     9.5 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
     9.6 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
     9.7 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     9.8 +PREFIX clc: <http://geo.linkedopendata.gr/corine/ontology#>
     9.9 +
    9.10 +
    9.11 +
    9.12 +INSERT {?h noa:isDiscarded "1"^^xsd:int} 
    9.13 +WHERE {
    9.14 +SELECT ?h WHERE 
    9.15 +{
    9.16 +?h   noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
    9.17 +     noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    9.18 +     noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    9.19 +     noa:hasGeometry ?hGeo.
    9.20 +?a   rdf:type   clc:ExcludeArea;
    9.21 +  clc:hasGeometry ?aGeo.
    9.22 +FILTER(strdf:mbbIntersects(?hGeo,?aGeo)).
    9.23 +} 
    9.24 +GROUP BY ?h ?hGeo
    9.25 +HAVING strdf:contains(strdf:union(?aGeo),?hGeo)
    9.26 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/scripts/v2.2/refinePartialSeaHotspots.sparql	Wed Jul 18 18:49:53 2012 +0300
    10.3 @@ -0,0 +1,35 @@
    10.4 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    10.5 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
    10.6 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
    10.7 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    10.8 +PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
    10.9 +
   10.10 +
   10.11 +INSERT { ?h noa:isDiscarded "1"^^xsd:int . 
   10.12 +	 ?valid rdf:type noa:Hotspot ;
   10.13 +		noa:hasConfidence ?conf ;
   10.14 +	        noa:hasGeometry ?dif ;
   10.15 +	        gag:hasMunicipality ?muni ;
   10.16 +		noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ; 
   10.17 +	        noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
   10.18 +		noa:hasConfirmation noa:unknown ;
   10.19 +	        noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; 
   10.20 +		noa:isProducedBy noa:noa ;
   10.21 +		noa:isDerivedFromSatellite "SAT"^^xsd:string .
   10.22 +}
   10.23 +WHERE { 
   10.24 +  SELECT ?h  (strdf:intersection(?hGeo, strdf:union(?cGeo)) AS ?dif) (BNODE() AS ?valid) ?conf ?muni
   10.25 +  WHERE { 
   10.26 +?h     noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime; 
   10.27 +       noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ; 
   10.28 +       noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
   10.29 +       noa:hasGeometry ?hGeo ;
   10.30 +       gag:hasMunicipality ?muni ;
   10.31 +       noa:hasConfidence ?conf .
   10.32 +?c     rdf:type noa:Coastline ;
   10.33 +       noa:hasGeometry ?cGeo .
   10.34 +	   FILTER(strdf:mbbIntersects(?hGeo, ?cGeo)) . 
   10.35 +  }
   10.36 +  GROUP BY ?h ?hGeo ?conf ?muni
   10.37 +  HAVING strdf:overlap(?hGeo, strdf:union(?cGeo))
   10.38 +}
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/scripts/v2.2/refineTimePersistence.sparql	Wed Jul 18 18:49:53 2012 +0300
    11.3 @@ -0,0 +1,47 @@
    11.4 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    11.5 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
    11.6 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 
    11.7 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    11.8 +PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
    11.9 +
   11.10 +
   11.11 +INSERT {
   11.12 + ?newHotspot rdf:type noa:Hotspot ;
   11.13 +		noa:hasConfidence ?hConfidence ;
   11.14 +	        noa:hasGeometry ?hGeometry1 ;
   11.15 +		noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ; 
   11.16 +	        noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
   11.17 +		noa:hasConfirmation noa:unknown ;
   11.18 +	        noa:producedFromProcessingChain "PROCESSING_CHAIN-TimePersistence"^^xsd:string ; 
   11.19 +		noa:isProducedBy noa:noa ;
   11.20 +		 gag:hasMunicipality ?muni ;
   11.21 +		noa:isDerivedFromSatellite "SAT"^^xsd:string .
   11.22 +
   11.23 +}
   11.24 +WHERE {
   11.25 +  SELECT (BNODE() AS ?newHotspot)
   11.26 +  (SUM(?hConfidence1)/ACQUISITIONS_IN_HALF_AN_HOUR AS ?hConfidence)
   11.27 +  ?hGeometry1 ?muni
   11.28 +  WHERE {
   11.29 +    ?H1 noa:hasConfidence ?hConfidence1 .
   11.30 +    ?H1 noa:hasGeometry ?hGeometry1 .
   11.31 +    ?H1 gag:hasMunicipality ?muni .
   11.32 +    ?H1 noa:hasAcquisitionTime ?hAcquisitionTime1 .
   11.33 +    ?H1 noa:isDerivedFromSensor "SENSOR"^^xsd:string .
   11.34 +    ?H1 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string .
   11.35 +    OPTIONAL { ?H1 noa:isDiscarded ?z } .
   11.36 +    FILTER (!BOUND(?z)) .
   11.37 +    FILTER( "MIN_ACQUISITION_TIME"^^xsd:dateTime <= ?hAcquisitionTime1 && ?hAcquisitionTime1 < "TIMESTAMP"^^xsd:dateTime ) .
   11.38 +    OPTIONAL {
   11.39 +      ?H2 noa:hasGeometry ?HGEO2 .
   11.40 +      ?H2 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime .
   11.41 +      ?H2 noa:isDerivedFromSensor "SENSOR"^^xsd:string .
   11.42 +      ?H2 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string .
   11.43 +      FILTER(("PROCESSING_CHAIN"^^xsd:string = ?hProcessingChain2)||("PROCESSING_CHAIN-TimePersistence"^^xsd:string = ?hProcessingChain2)).
   11.44 +      FILTER( strdf:mbbEquals(?hGeometry1, ?HGEO2) ) .
   11.45 +    }
   11.46 +    FILTER( !BOUND(?H2) ) .
   11.47 +  }
   11.48 +  GROUP BY ?hGeometry1 ?muni
   11.49 +  HAVING(SUM(?hConfidence1)>0.0)
   11.50 +}
    12.1 --- a/scripts/v2.2/runNoaRefinementChain.sh	Wed Jul 18 17:48:56 2012 +0300
    12.2 +++ b/scripts/v2.2/runNoaRefinementChain.sh	Wed Jul 18 18:49:53 2012 +0300
    12.3 @@ -74,11 +74,11 @@
    12.4  	fi
    12.5  }
    12.6  
    12.7 -insertMunicipalities=`cat ${LOC}/InsertMunicipalities.sparql` 
    12.8 -deleteSeaHotspots=`cat ${LOC}/DeleteInSea.sparql` # | sed 's/\"/\\\"/g'`
    12.9 -refinePartialSeaHotspots=`cat ${LOC}/Refine.sparql` # | sed 's/\"/\\\"/g'`
   12.10 -refineTimePersistence=`cat ${LOC}/TimePersistence.sparql` # | sed 's/\"/\\\"/g'`
   12.11 -invalidForFires=`cat ${LOC}/InvalidForFires.sparql`
   12.12 +insertMunicipalities=`cat ${LOC}/insertMunicipalities.sparql` 
   12.13 +deleteSeaHotspots=`cat ${LOC}/deleteSeaHotspots.sparql` # | sed 's/\"/\\\"/g'`
   12.14 +refinePartialSeaHotspots=`cat ${LOC}/refinePartialSeaHotspots.sparql` # | sed 's/\"/\\\"/g'`
   12.15 +refineTimePersistence=`cat ${LOC}/refineTimePersistence.sparql` # | sed 's/\"/\\\"/g'`
   12.16 +invalidForFires=`cat ${LOC}/landUseInvalidForFires.sparql`
   12.17  discover=`cat ${LOC}/discover.sparql`
   12.18  #InsertMunicipalities =`cat ${LOC}/InsertMunicipalities.sparql` # | sed 's/\"/\\\"/g'`
   12.19