Strabon

view examples/teleios/insertMunicipalities.rq @ 1484:fdbcb246115b

#58 added script that is invoked by maven to update the versions in
the control files
author Giannis Vlachopoulos <johnvl@di.uoa.gr>
date Wed Mar 11 15:29:31 2015 +0200 (2015-03-11)
parents b76d08b43131
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://geo.linkedopendata.gr/greekadministrativeregion/ontology#>
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 gag:hasGeometry ?mGeo .
20 FILTER(strdf:intersects(?hGeo, ?mGeo)) .
21 }
22 GROUP BY ?h
23 }