See official AllegroGraph documentation for information on 2D and nD Geospatial database design. See examples below to get a general idea on how to use these functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | listGeoTypes(repository)
getCartesianGeoType(repository, stripWidth = NULL, xMin = NULL,
xMax = NULL, yMin = NULL, yMax = NULL)
getSphericalGeoType(repository, stripWidth = NULL, unit = "degree",
latMin = NULL, latMax = NULL, longMin = NULL, longMax = NULL)
getStatementsInsideBox(repository, type, predicate, xMin, xMax, yMin, yMax,
limit = NULL)
getStatementInsideCircle(repository, type, predicate, x, y, radius,
limit = NULL, offset = NULL)
getStatementsHaversine(repository, type, predicate, lat, long, radius,
radiusUnit = "km", limit = NULL, offset = NULL)
createPolygon(repository, resource, points)
getStatementsInsidePolygon(repository, type, predicate, polygon, limit = NULL,
offset = NULL)
|
repository |
Object of type repository specifying server details and repository to work on. |
stripWidth |
Determines the granularity of the strip. |
xMin |
Helps determine size of cartesian plane |
xMax |
Helps determine size of cartesian plane |
yMin |
Helps determine size of cartesian plane |
yMax |
Helps determine size of cartesian plane |
unit |
Defaults to 'degree'. The unit in which stripWidth is specified. It can be degree, km, radian or mile. |
latMin |
Limit the size of the region modelled by appropriate type |
latMax |
Limit the size of the region modelled by appropriate type |
longMin |
Limit the size of the region modelled by appropriate type |
longMax |
Limit the size of the region modelled by appropriate type |
type |
Specifies a geospatial sub-type, as created by getCartesianGeoType or getSphericalGeoType |
predicate |
Specifies a predicate for the query |
limit |
Specifies a maximum number of triples to return |
x |
Specifies x-coordinate of circle |
y |
Specifies y-coordinate of circle |
radius |
Specifies the radius of the circle |
offset |
Specifies how many triples should be skipped over |
lat |
Specifies the latitude of the center of the circle |
long |
Specifies the longitude of the center of the circle |
radiusUnit |
Defaults to km. Spefies the unit in which radius is given when using Haversine |
resource |
Name of the polygon to add |
points |
A list of points represented as AllegroGraph geospatial object (created through createCartesianGeoLiteral) |
useContext |
When true (default false), use the context (graph) field of the triple instead of its object |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.