http://franz.com/ns/allegrograph/5.0/geo/nd#inBoundingBox

Returns the subject or subject and object of triples in the bounding box specified by the nD minimum and maximum ordinate values.

?event nd:inBoundingBox (ex:myCartesianPredicate
:x-min 30.3 :x-max 31.2
:y-min 11.6 :y-max 11.9
:time-min "2016-03-02T10:00:00"
:time-max "2016-03-02T11:00:00"
:temp-min 48 :temp-max 60 ) .

or

(?event ?coord) nd:inBoundingBox (ex:mySphericalPredicate
:lon-min -123 :lon-max -122
:lat-min 32 :lat-max 33
:time-min "2016-03-02T10:00:00"
:time-max "2016-03-02T11:00:00"
:temp-min 48 :temp-max 60 ) .

The pairs of lower and upper bounds specifying the nD box for each ordinate in the nD literal encoding must all be bound before this magic property can be evaluated.

Notes

The following namespace abbreviations are used:

The SPARQL magic properties reference has additional information on using AllegroGraph magic properties and functions.