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

Geometries created within query are not rendered #23

Open
magdasalatka opened this issue Dec 19, 2024 · 1 comment
Open

Geometries created within query are not rendered #23

magdasalatka opened this issue Dec 19, 2024 · 1 comment

Comments

@magdasalatka
Copy link

It is impossible to visualize geometries created within the query:

PREFIX geo: <http://www.opengis.net/ont/geosparql#>

SELECT *
WHERE {

  BIND(STRDT("POINT(8 47)", geo:wktLiteral) AS ?point)
}
@patrickbr
Copy link
Member

patrickbr commented Dec 19, 2024

Yes, good catch. The reason is the way petrimaps works: it first loads all the geometries stored in QLever during startup. Afterwards, only the QLever-internal IDs are transferred to petrimaps, and the corresponding geometry is looked up by petrimaps.

Since the geometry is generated on-the-fly in your query, petrimaps does not have it cached. We are currently experimenting with ways to show the result of arbitrary SQL queries to a PostGIS database in petrimaps. I expect that in the wake of this feature, we will also add the ability to display SPARQL results containing non-cached geometries.

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

No branches or pull requests

2 participants