Strabon

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/teleios/insertMunicipalities.rq	Sat Sep 13 18:21:21 2014 +0300
     1.3 @@ -0,0 +1,23 @@
     1.4 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
     1.5 +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
     1.6 +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
     1.7 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
     1.8 +PREFIX gag: <http://geo.linkedopendata.gr/greekadministrativeregion/ontology#>
     1.9 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    1.10 +
    1.11 +INSERT { ?h gag:hasMunicipality ?muni }
    1.12 +WHERE { 
    1.13 +SELECT ?h (SAMPLE(?mLabel) AS ?muni)
    1.14 +  WHERE {
    1.15 +	?h  rdf:type noa:Hotspot ;
    1.16 +		noa:hasGeometry ?hGeo ;
    1.17 +		noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
    1.18 +		noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
    1.19 +        noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime.
    1.20 +	?m	rdf:type gag:Dhmos ;
    1.21 +		rdfs:label ?mLabel ;
    1.22 +		gag:hasGeometry ?mGeo .
    1.23 +	FILTER(strdf:intersects(?hGeo, ?mGeo)) .
    1.24 +  }  
    1.25 +  GROUP BY ?h
    1.26 +}