Strabon

diff examples/teleios/insertMunicipalities.rq @ 1532:210bd063f842

[maven-release-plugin] copy for tag v3.2.11-temporals
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Thu Sep 22 16:53:04 2016 +0300 (2016-09-22)
parents b76d08b43131
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/teleios/insertMunicipalities.rq	Thu Sep 22 16:53:04 2016 +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 +}