http://franz.com/ns/allegrograph/4.11/sna/neighborCache
Create a cache of the neighbors of a node.
For example,
?cache sna:neighborCache ( ex:namedGenerator ?startnode ?depth ) .
will create a neighbor matrix for the neighbors of ?startnode
out to a depth of ?depth
using the generator ex:namedGenerator
. This assumes that this generator exists and that both ?startnode
and ?depth
are bound by other patterns in the query.
The bindings to ?cache
act like blank nodes in that they have no meaning outside of the current query execution. During the execution, however, they can be used in place to generators in order to speed up other SNA computations.
There is also a functional form for neighborCache which can be used in an expression. For example:
BIND( sna:neighborCache ( ex:namedGenerator, ?startnode, ?depth ) AS ?cache )
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.