I want to return all geometries nearby the one specified. I know I have multiple geometries from another graph in the database (I can return them). But when I run this query, I only return the one geometry with that WKT value.
I imagine I am doing something wrong which is obvious?
Hi Kris, apologies for the late reply, but I myself was having trouble figuring out what you needed to do.
It turns out that (for the first post at least), you are doing something wrong, it’s just painfully NOT obvious. When defining a POINT as a wktLiteral, the parameters are reversed. It’s actually POINT(long lat)…but then geof:nearby expects (lat long …)
This explains why specifying the POINT again is working, but not the individual values. It also explains why using the geometry itself is also fine. If you flip them around in your query, you will see the desired results:
And as for the query spanning multiple graphs, you will either need to add a GRAPH <urn:whatever> {} block to your query, or ensure that query.all.graphs=true is specified in your stardog.properties file