GH-4204: Add four GeoSPARQL 1.1 geometry metadata functions - #4205
Open
edmondchuc wants to merge 2 commits into
Open
GH-4204: Add four GeoSPARQL 1.1 geometry metadata functions#4205edmondchuc wants to merge 2 commits into
edmondchuc wants to merge 2 commits into
Conversation
edmondchuc
force-pushed
the
feat/geosparql-geometry-metadata-functions
branch
2 times, most recently
from
September 8, 2026 05:03
9190711 to
ac00eec
Compare
Implement geometryType, is3D, isMeasured, and numGeometries with reusable GeometryWrapper methods and ARQ registration. Add documentation and tests covering geometry types, Z/M layouts, empty geometries, member counts, and SPARQL error handling.
edmondchuc
force-pushed
the
feat/geosparql-geometry-metadata-functions
branch
from
September 8, 2026 05:35
ac00eec to
6d6e170
Compare
Preserve source GML types during parsing and resolve constructed types through a mapping shared with the GML writer. Delegate type resolution to geometry datatypes and cache the result, avoiding XML round trips while retaining source subtypes.
edmondchuc
force-pushed
the
feat/geosparql-geometry-metadata-functions
branch
from
September 10, 2026 06:31
a102341 to
18bfdcd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub issue resolved #4204
Adds the following GeoSPARQL 1.1 geometry metadata functions:
geof:geometryTypegeof:is3Dgeof:isMeasuredgeof:numGeometriesThe functions are registered with ARQ and implemented through reusable GeometryWrapper operations.
Geometry type handling:
geof:geometryTypeneeds to preserve the geometry type expressed by the source serialization. This is particularly relevant for GML, where types such as Curve, Surface, MultiCurve, and MultiSurface may be represented internally by different JTS geometry classes.The implementation therefore:
By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.
See the Apache Jena "Contributing" guide.