cz-full-spoi-construct-polygon-aprox.sparql 1.8 KB

12345678910111213141516171819202122232425262728
  1. PREFIX geo: <http://www.opengis.net/ont/geosparql#>
  2. PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
  3. PREFIX virtrdf: <http://www.openlinksw.com/schemas/virtrdf#>
  4. PREFIX poi: <http://www.openvoc.eu/poi#>
  5. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  6. PREFIX olu-instance: <http://w3id.org/foodie/olu/LandUse/22165431>
  7. PREFIX foaf: <http://xmlns.com/foaf/0.1/>
  8. PREFIX dc: <http://purl.org/dc/elements/1.1/>
  9. PREFIX poi: <http://www.openvoc.eu/poi#>
  10. PREFIX dct: <http://purl.org/dc/terms/1.1/>
  11. PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
  12. PREFIX locn: <http://www.w3.org/ns/locn#>
  13. ### WORKS WITH SMALL NUMBER OF TRIPLES, WILL ALL TRIPLES IT DOES NOT WORK
  14. CONSTRUCT { ?Resource ?p ?o }
  15. FROM <http://www.sdi4apps.eu/poi.rdf>
  16. WHERE { ?Resource ?p ?o .
  17. GRAPH ?g {
  18. ?Resource a ?POI_Class .
  19. ?Resource geo:asWKT ?Coordinates .
  20. ?Resource ?p ?o .
  21. FILTER(bif:st_intersects (?Coordinates, bif:st_geomFromText("POLYGON((12.805550244791675 50.44110310248771,14.453499463541675 50.97679985865346,15.365364697916675 50.907574557509825,16.387093213541675 50.636610300310906,17.309944776041675 50.30095867480735,18.035042432291675 50.026485564958456,18.880989697916675 49.52275194210202,18.188851026041675 49.25816551764307,17.760384229166675 48.88390343585812,17.189095166666675 48.847768061048605,16.947395947916675 48.601355238570925,16.222298291666675 48.731959479050985,15.024788526041675 49.013774785025085,14.552376416666675 48.58682276011454,14.014046338541675 48.601355238570925,13.761360791666675 48.833306604672416,13.234017041666675 49.114552196164965,12.805550244791675 49.35844690296278,12.410042432291675 49.76462984717475,12.530892041666675 49.92757212334005,12.201302197916675 50.146321472693394,12.805550244791675 50.44110310248771))"))) .
  22. }
  23. }
  24. limit 10