Skip to content

Commit

Permalink
Update the geometry predicate for OSM
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Hannah Bast committed Dec 15, 2023
1 parent 338df82 commit a16ea93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qlever-petrimaps/GeomCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ using util::geo::latLngToWebMerc;
const static std::string QUERY =
"PREFIX geo: <http://www.opengis.net/ont/geosparql#> "
"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: <http://www.opengis.net/ont/geosparql#> "
"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 =
Expand Down

0 comments on commit a16ea93

Please sign in to comment.