Skip to content

GeoSPARQL relation triples inside FILTER (NOT) EXISTS match nothing #56

Closed

Description

@MathiasVDA

Found in review of #55. This is on main and needs no property path.

SELECT ?x ?r WHERE { ?r a ex:R ; geo:hasGeometry ?rg . ?x a ex:P FILTER EXISTS { ?x geo:hasGeometry ?g . ?g geo:sfWithin ?rg } } gives 0 rows. The same pattern outside EXISTS gives 648. FILTER NOT EXISTS keeps every row for the same reason. The docs don't state this as a limit.

Cause: the spatial rewrite walks graph patterns but not the patterns inside expressions. An EXISTS sees only asserted geo:sfWithin triples, and the probe data has none.

Taking this in the query lane.

Activity

  1. added a commit that references this issue on Nov 19, 2026
    fc083a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions