http://franz.com/ns/allegrograph/3.0/geosparql/ext#buildGeohashIndex
Incrementally build Geohash index. It only build for triples that do NOT have geohash index.
For example:
PREFIX geoext: <http://franz.com/ns/allegrograph/3.0/geosparql/ext>
SELECT ?res WHERE \{
?res geoext:buildGeohashIndex () .
\}
If the building process finishes successfully, it will return "true"^^<http://www.w3.org/2001/XMLSchema#boolean>
; otherwise, it will return (bound to ?res
) "false"^^<http://www.w3.org/2001/XMLSchema#boolean>
http://franz.com/ns/allegrograph/3.0/geosparql/ext#nearby
Return all geometries that are within a specified radius of a given point.
For example:
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geoext: <http://franz.com/ns/allegrograph/3.0/geosparql/ext#>
PREFIX qudt: <http://qudt.org/vocab/unit/>
SELECT ?geom WHERE \{
?geom geo:asWKT ?wkt .
?geo geoext:nearby ("POINT(10 20)"^^geo:wktLiteral 10 qudt:KiloM) .
\}
The first argument must be a geometric serialization of a Point, e.g. "POINT(1 1)"^^geo:wktLiteral
; the second is a number that specifies the radius; the third argument is optional and is default to qudt:M
.
http://franz.com/ns/allegrograph/3.0/geosparql/ext#rebuildGeohashIndex
Forcefully rebuild Geohash index. It will delete all the current Geohash index and then rebuild.
For example:
PREFIX geoext: <http://franz.com/ns/allegrograph/3.0/geosparql/ext>
SELECT ?res WHERE \{
?res geoext:rebuildGeohashIndex () .
\}
If the building process finishes successfully, it will return "true"^^<http://www.w3.org/2001/XMLSchema#boolean>
; otherwise, it will return (bound to ?res
) "false"^^<http://www.w3.org/2001/XMLSchema#boolean>
Notes
The following namespace abbreviations are used:
- fti - <http://franz.com/ns/allegrograph/2.2/textindex/>
- geo - <http://franz.com/ns/allegrograph/3.0/geospatial/>
- geofn - <http://franz.com/ns/allegrograph/3.0/geospatial/fn/>
- nd - <http://franz.com/ns/allegrograph/5.0/geo/nd#>
- ndfn - <http://franz.com/ns/allegrograph/5.0/geo/nd/fn#>
- sna - <http://franz.com/ns/allegrograph/4.11/sna/>
The SPARQL magic properties reference has additional information on using AllegroGraph magic properties and functions.