Strabon

annotate examples/teleios/insertMunicipalities.rq @ 1358:65db010f01ac

removed dependency to epsg-wkt.jar since one epsg (epsg-hsql.jar) suffices and duplication might rise exceptions (according to this page: http://docs.geotools.org/latest/userguide/faq.html#q-how-to-choose-an-epsg-authority)
author Babis Nikolaou <charnik@di.uoa.gr>
date Sat Sep 13 18:21:21 2014 +0300 (2014-09-13)
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 }