Strabon

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/teleios/insertMunicipalities.rq	Wed Jan 14 13:12:30 2015 +0200
     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 +}