Strabon

changeset 423:5de787a78c44

added query for insertion of a municipality for a hotspot
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Jul 11 16:09:17 2012 +0300 (2012-07-11)
parents 6127e5869fbc
children 0cec2e2b3fd2
files scripts/v2.2/InsertMunicipalities.sparql
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/v2.2/InsertMunicipalities.sparql	Wed Jul 11 16:09:17 2012 +0300
     1.3 @@ -0,0 +1,19 @@
     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://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
     1.9 +
    1.10 +INSERT { ?h gag:hasMunicipality ?muni }
    1.11 +WHERE { 
    1.12 +  SELECT ?h (SAMPLE(?mLabel) AS ?muni)
    1.13 +  WHERE {
    1.14 +	?h  rdf:type noa:Hotspot ;
    1.15 +		noa:hasGeometry ?hGeo .
    1.16 +	?m	rdf:type gag:Dhmos ;
    1.17 +		rdfs:label ?mLabel ;
    1.18 +		strdf:hasGeometry ?mGeo .
    1.19 +	FILTER(strdf:anyInteract(?hGeo, ?mGeo)) .
    1.20 +  }
    1.21 +  GROUP BY ?h
    1.22 +}