Strabon

view scripts/archive/v2.2/insertMunicipalities.sparql @ 1277:92b90ac06d39

[maven-release-plugin] prepare release v3.2.9
author Babis Nikolaou <charnik@di.uoa.gr>
date Sat Oct 19 23:37:23 2013 +0300 (2013-10-19)
parents 4fb3d66649b6
children
line source
1 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
2 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
5 PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#>
6 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
8 INSERT { ?h gag:hasMunicipality ?muni }
9 WHERE {
10 SELECT ?h (SAMPLE(?mLabel) AS ?muni)
11 WHERE {
12 ?h rdf:type noa:Hotspot ;
13 noa:hasGeometry ?hGeo ;
14 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
15 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
16 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime .
17 ?m rdf:type gag:Dhmos ;
18 rdfs:label ?mLabel ;
19 strdf:hasGeometry ?mGeo .
20 FILTER(strdf:intersects(?hGeo, ?mGeo)) .
21 }
22 GROUP BY ?h
23 }