Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to fetch geometries via geo:hasGeometry/geo:asWKT #10

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

hannahbast
Copy link
Member

So far, the code supported getting the geometries via geo:hasGeometry (old osm2rdf style) and via wdt:P625 (Wikidata style). Since November, the TTLs provided on https:/osm2rdf.cs.uni-freiburg.de provide the geometries via geo:hasGeometry/geo:asWKT, which is now also supported.

TODO: The selection between is currently hard-coded, based on the name of the backend. We should find a more elegant and robust mechanism for this.

So far, the code supported getting the geometries via `geo:hasGeometry`
(old osm2rdf style) and via `wdt:P625` (Wikidata style). Since November,
the TTLs provided on https:/osm2rdf.cs.uni-freiburg.de provide the
geometries via geo:hasGeometry/geo:asWKT, which is now also supported.

TODO: The selection between is currently hard-coded, based on the name
of the backend. We should find a more elegant and robust mechanism for
this.
@hannahbast hannahbast requested a review from patrickbr January 11, 2024 22:31
@hannahbast hannahbast changed the title Update the geometry predicate for OSM Add option to fetch geometries via geo:hasGeometry/asWKT Jan 11, 2024
@hannahbast hannahbast changed the title Add option to fetch geometries via geo:hasGeometry/asWKT Add option to fetch geometries via geo:hasGeometry/geo:asWKT Jan 11, 2024
…plicates, update util lib, don't output WKT bbox in log if box is empty (ugly)
@patrickbr
Copy link
Member

I change the log level of the duplicate report to DEBUG to avoid millions of log entries, a cumulative number of duplicates is now also outputted.

Additional minor changes: for request with either no lines or no points, the line or point bounding box were outputted with their "empty" values, which are based on numeric_limits<T>::max() to the log/terminal. This was ugly and is now suppressed. Also, the util lib was updated.

@patrickbr patrickbr merged commit eeb5cab into master Jan 12, 2024
6 checks passed
@patrickbr patrickbr deleted the update-geometry-predicate-for-osm branch October 14, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants