From a16ea933f8b72009818d1b9594a196e2fe38def9 Mon Sep 17 00:00:00 2001 From: Hannah Bast Date: Fri, 15 Dec 2023 03:04:52 +0100 Subject: [PATCH] Update the geometry predicate for OSM So far, the predicate for obtaining the WKT of a geometry was geo:hasGeometry. Since a few weeks, in the TTLs provided on https:/osm2rdf.cs.uni-freiburg.de use the standard-conform (but more clumsy) geo:hasGeometry in combination with geo:asWKT. --- src/qlever-petrimaps/GeomCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qlever-petrimaps/GeomCache.cpp b/src/qlever-petrimaps/GeomCache.cpp index c4a667e..761576d 100644 --- a/src/qlever-petrimaps/GeomCache.cpp +++ b/src/qlever-petrimaps/GeomCache.cpp @@ -28,14 +28,14 @@ using util::geo::latLngToWebMerc; const static std::string QUERY = "PREFIX geo: " "SELECT DISTINCT ?geometry WHERE {" - " ?osm_id geo:hasGeometry ?geometry " + " ?osm_id geo:hasGeometry/geo:asWKT ?geometry " " } INTERNAL SORT BY ?geometry"; const static std::string COUNT_QUERY = "PREFIX geo: " "SELECT (COUNT(?geometry) as ?count) WHERE { " "SELECT DISTINCT ?geometry WHERE {" - " ?osm_id geo:hasGeometry ?geometry " + " ?osm_id geo:hasGeometry/geo:asWKT ?geometry " "} INTERNAL SORT BY ?geometry }"; const static std::string QUERY_WD =