Strabon
view examples/teleios/insertMunicipalities.rq @ 1303:704a516daff8
Useless commit. Just to remember the feeling.
author | Panayiotis Smeros <psmeros@di.uoa.gr> |
---|---|
date | Fri Dec 06 05:56:24 2013 +0200 (2013-12-06) |
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 }