Strabon

annotate examples/teleios/insertMunicipalities.rq @ 1453:2fac60132bc8

completed imlpementation of the period(timestamp,timestamp) function
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Wed Jan 14 13:12:30 2015 +0200 (2015-01-14)
parents b76d08b43131
children
rev   line source
kkyzir@536 1 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
kkyzir@536 2 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
kkyzir@536 3 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
kkyzir@536 4 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
kkyzir@536 5 PREFIX gag: <http://geo.linkedopendata.gr/greekadministrativeregion/ontology#>
kkyzir@536 6 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
kkyzir@536 7
kkyzir@536 8 INSERT { ?h gag:hasMunicipality ?muni }
kkyzir@536 9 WHERE {
kkyzir@536 10 SELECT ?h (SAMPLE(?mLabel) AS ?muni)
kkyzir@536 11 WHERE {
kkyzir@536 12 ?h rdf:type noa:Hotspot ;
kkyzir@536 13 noa:hasGeometry ?hGeo ;
kkyzir@536 14 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
kkyzir@536 15 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
kkyzir@536 16 noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime.
kkyzir@536 17 ?m rdf:type gag:Dhmos ;
kkyzir@536 18 rdfs:label ?mLabel ;
kkyzir@536 19 gag:hasGeometry ?mGeo .
kkyzir@536 20 FILTER(strdf:intersects(?hGeo, ?mGeo)) .
kkyzir@536 21 }
kkyzir@536 22 GROUP BY ?h
kkyzir@536 23 }