GADM dataset and bif:st_within predicate

21 views
Skip to first unread message

ing.anton...@gmail.com

unread,
Nov 24, 2014, 10:26:52 AM11/24/14
to linked-...@googlegroups.com
Hi all,

I was wondering if is possible to query via SPARQL the GADM dataset just added to LGD using the predicate bif_st_within.

Basically I need to write a query that returns which GADM level are related to one point. I tried this but I get server error:

SELECT ?a ?b ?l ?geo WHERE {
 ?a a gadm-o:Level .
  ?b rdfs:label ?l .
  ?b geom:geometry ?geom .
  ?geom ogc:asWKT ?geo .
  FILTER (bif:st_contains(?geo, bif:st_point(13.3593475, 38.12474145)))  
}
LIMIT 100

thanks in advance

Antonino Lo Bue
CNR-ICAR PA
Reply all
Reply to author
Forward
0 new messages