-
Notifications
You must be signed in to change notification settings - Fork 16
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
_mapview hack #105
Comments
If variables end with the suffix |
Sure, I understood it's 2 different things. But what surprises me is the link built for Petrimaps is not able to handle this "query", which is not a query but a wkt string object. Taking your instance, with OSM sample, try this query: PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX osmkey: <https://www.openstreetmap.org/wiki/Key:>
PREFIX ogc: <http://www.opengis.net/rdf#>
PREFIX osmrel: <https://www.openstreetmap.org/relation/>
SELECT ?osm_id ?hasgeometry_mapview WHERE {
osmrel:1960198 ogc:sfContains ?osm_id .
?osm_id geo:hasGeometry/geo:asWKT ?hasgeometry_mapview .
?osm_id osmkey:building ?building .
} Click a Maybe Just to test, I tried a successful trick replacing const query = `SELECT ?geo WHERE {BIND(${wktLiteral} as ?geo)}`;
return `PETRIMAPS_URL/?query=${encodeURI(query)}&mode=objects&backend=...`; And built link is functional in petrimaps (example) |
My hacky test is not really clean. We don't need to call API in petrimaps if we already have the object to display. What do you think about:
If you agree, I can try to provide pull requests on qlever-ui & petrimaps |
Thanks @Qup42. |
Select
*_mapview
give petrimaps link in query result table.Link contains
query
param, which is filling by the object, not a query.The text was updated successfully, but these errors were encountered: