PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX virtrdf:	<http://www.openlinksw.com/schemas/virtrdf#> 
PREFIX poi: <http://www.openvoc.eu/poi#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX olu-instance: <http://w3id.org/foodie/olu/LandUse/22165431>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX poi: <http://www.openvoc.eu/poi#>
PREFIX dct: <http://purl.org/dc/terms/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX locn: <http://www.w3.org/ns/locn#>


### WORKS WITH SMALL NUMBER OF TRIPLES, WILL ALL TRIPLES IT DOES NOT WORK 

CONSTRUCT {?Resource ?p ?o } 
FROM <http://www.sdi4apps.eu/poi.rdf>
WHERE { 
   ?Resource ?p ?o .
   GRAPH ?g {
        SELECT DISTINCT ?Resource FROM <http://www.sdi4apps.eu/poi.rdf> WHERE {  ##
  	    ?Resource a ?POI_Class .
  	    ?Resource geo:sfWithin <http://dbpedia.org/resource/Czech_Republic> .
  	    } ORDER BY ASC(?Resource)   ###
   }
}
GROUP BY ?Resource ?p ?o
#ORDER BY ?Resource
#OFFSET 0
LIMIT 100000
