Hi Jan, others,
let me share some progress. 6.4 will include Jena's GeoSPARQL support and Google Map components in the editor.
In the most basic form, users can open a Map Explorer panel to browser any resource that has geo:lat/long in the visible bounding box:
This is backed by an in-memory geospatial index that can be
generated and updated from data stored in EDG. Only data from
production copies is supported, i.e. the additional triples from
working copies will not be in the index. In terms of performance,
I tried 1 million locations and indexing takes about 25 seconds.
There are SWP elements and SPARQL functions to programmatically
manage those indices, e.g. in scheduled jobs.
This geospatial index can be used via SPARQL using the functions described at
https://jena.apache.org/documentation/geosparql/index.html#property-functions
Query performance seems to be good.
The following finds all locations in a radius of 1000 units
around the map coordinate (10, 20):
Such results can then also be visualized using a Map Results
panel. The Search, SPARQL Results and Asset Lists panels have a
batch operations menu to display any set of resources with their
lat/long:
If anyone has feedback on what else we should support, please let
me know.
Regards,
Holger
Hi Jan, others,
let me share some progress. 6.4 will include Jena's GeoSPARQL support and Google Map components in the editor.
In the most basic form, users can open a Map Explorer panel to browser any resource that has geo:lat/long in the visible bounding box:
This is backed by an in-memory geospatial index that can be
generated and updated from data stored in EDG. Only data from
production copies is supported, i.e. the additional triples from
working copies will not be in the index. In terms of performance,
I tried 1 million locations and indexing takes about 25 seconds.
There are SWP elements and SPARQL functions to programmatically
manage those indices, e.g. in scheduled jobs.
This geospatial index can be used via SPARQL using the functions described at
https://jena.apache.org/documentation/geosparql/index.html#property-functions
Query performance seems to be good.
The following finds all locations in a radius of 1000 units
around the map coordinate (10, 20):
Such results can then also be visualized using a Map Results
panel. The Search, SPARQL Results and Asset Lists panels have a
batch operations menu to display any set of resources with their
lat/long:
If anyone has feedback on what else we should support, please let
me know.
Regards,
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/c64d370c-ab3f-f5ec-aafd-8ac5b0599153%40topquadrant.com.
Hi Marco,
no sorry, the Map can only display lat/long values of resources that are stored in a "local" graph. So you would first need to add those triples, maybe temporarily, e.g. using a SPARQL INSERT request.
As usual, you can see the queries that it runs from places like
the Network tab of Chrome dev tools.
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CABWJn4Q8YBymcfcdAkSxmJGo2_%3DMvQeCGXX8BGYPDmuiRVBBtg%40mail.gmail.com.