import - What is --with-indices in AllegroGraph -
i trying load data allegro graph server , 1 of parameters --with-indices
. can explain about?
i have read entire allegro graph documentation , mentions indices can spogi
, sopgi
, etc, not mention about.
please explain precisely. (i not asking full-forms of spogi
, sopgi
, etc. want exact meaning.)
your triple store contains triples spo
(subject, predicate, object). query against graph stored may have traverse lot of graph find nodes match query. allegrograph can store indices make traversal faster: finding predicates match first, example, , subject , object nodes attached, can use index finds predicates first pso
. if triples have named graphs can add g
and, triples have ids i
. ag can use index psogi
. (from docs: allegrograph triple indices)
an ag triple store created default set of indices. generating specialized indices resource intensive, if know kinds of queries you're going getting, may find worthwhile specify appropriate indices optimize response times.
if you're loading command line:
the following example loads single file allegrograph.
./agload --with-indices "ospgi,posgi,spogi" triple store generate 3 triple indices: ospgi, posgi , spogi.
(from docs agload
)
if you're using rest interface, can create repositories specified indices:
put /repositories/[name]
with parameter index
:
index can specified number of times. should hold index ids, , used configure set of indices created store.
(from docs put repo
)
or can load triples , do:
put /repositories/[name]/indices/[type] ensures index indicated type present in store. takes effect @ commit time (which is, of course, when using shared back-end or auto-commit session).
(from docs put index
)
Comments
Post a Comment