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 function geof:isWktPoint #1565

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add function geof:isWktPoint #1565

wants to merge 2 commits into from

Conversation

hannahbast
Copy link
Member

@hannahbast hannahbast commented Oct 18, 2024

The function returns true if and only if the argument is a WKT point. This can be checked efficiently by checking the datatype bits of the ID.

Note that this function is not part of the GeoSPARQL standard. We add it because we need it for https://github.com/ad-freiburg/qlever-petrimaps to efficiently fetch alll WKT literals that are not points.

The function returns true if and only if the argument is a WKT point.
This can be checked efficiently by checking the datatype bits of the ID.

Note that this function is not part of the GeoSPARQL standard. We add it
because we need it for https://github.com/ad-freiburg/qlever-petrimaps
to fetch alll WKT literals that are not points efficiently.
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.96%. Comparing base (bf36257) to head (26500a9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1565      +/-   ##
==========================================
- Coverage   88.96%   88.96%   -0.01%     
==========================================
  Files         366      366              
  Lines       33256    33268      +12     
  Branches     3729     3730       +1     
==========================================
+ Hits        29587    29597      +10     
  Misses       2439     2439              
- Partials     1230     1232       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Reason: the predicate is called `geo:asWKT`, so the new name looks more
consistent with that.
@sparql-conformance
Copy link

Copy link

sonarcloud bot commented Oct 19, 2024

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.

1 participant