query-35dcf350856fe8a4839e164936605ebb

rq turtle/ttl

So when I try to show the whole relation on a map it crashes for some reason, but I solved this by extracting all the simple geometries that made up the relation, and it renders nicely.

Use at

PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX osm: <https://www.openstreetmap.org/>
PREFIX osmrel: <https://www.openstreetmap.org/relation/>
PREFIX ogc: <http://www.opengis.net/rdf#>
SELECT ?id ?geo WHERE {
  osmrel:157715 osmrel:member ?member .
  ?member osm:id ?id .
  ?id geo:hasGeometry ?geo .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?geo"):::projected v2("?id"):::projected v1("?member") c1([https://www.openstreetmap.org/relation/157715]):::iri c1 --https://www.openstreetmap.org/relation/member--> v1 v1 --https://www.openstreetmap.org/id--> v2 v2 --"geo:hasGeometry"--> v3