GraphDB-SE Storage Tool

compared with
Version 7 by evgeni.milev
on Jun 08, 2015 19:02.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (17)

View Page History
{code}

Options:
h5. Options:
{code}
-command=<operation to be executed, MANDATORY>
{code}

h5. Supported commands:
{code}
scan ==> scan repo index(es) and print statistic of the number of statements
rebuild ==> use source index(srcIndex) to rebuild destination index(destIndex) or in case of srcIndex null and non stmt destIndex just rebuild the destIndex(at the moment support only predicates index)
scan scan repo index(es) and print statistic of the number of statements

rebuild use source index(srcIndex) to rebuild destination index(destIndex) or in case of srcIndex null and non stmt destIndex just
rebuild the destIndex(at the moment support only predicates index)

replace ==> replace an existing(-origURI) entity with a non-existing one(-replURI)

mergeindex ==> merge pso and pos indexes(make union), rebuild context indexes if any, note that there is no data backup

check if no index spcified check all indexes for consistency, else check only specified index for consistency and additionally scan
check ==> if no index spcified check all indexes for consistency, else check only specified index for consistency and additionally scan it for corrupt statements, one statement is corrupt if one of its parts(s,p,o,c) is not present in the entity pool
{code}

h5. Examples:
Examples:
* scan pso index

{code}
-command=scan -storage=/repo/storage -esize=40 -srcIndex=pso ==> scan pso index
-command=scan -storage=/repo/storage -esize=40 -statusPrintInterval=60 ==> scan all indexes, print status on every 60 seconds
-command=rebuild -storage=/repo/storage -esize=40 -srcIndex=pso -destIndex=pso ==> compact pso index(self rebuild equals to compacting)
-command=rebuild -storage=/repo/storage -esize=40 -srcIndex=pso -destIndex=pos ==> rebuild pos from pso index and compact pos
-command=rebuild -storage=/repo/storage -esize=40 -destIndex=predicates ==> rebuild predicates statistics index
-command=replace -storage=/repo/storage -origURI=<http://onto.com#e1> -replURI=<http://onto.com#e2> ==> replace <http://onto.com#e1> with <http://onto.com#e2>
-command=check -storage=/repo/storage -srcIndex=pos ==> check pos consistency and additioaly scan it for corrupt statements
{code}
We plan to extend the tool with additional commands and options as needed.

* scan all indexes, print status on every 60 seconds

{code}-command=scan -storage=/repo/storage -esize=40 -statusPrintInterval=60{code}

* compact pso index(self rebuild equals to compacting)

{code}-command=rebuild -storage=/repo/storage -esize=40 -srcIndex=pso -destIndex=pso{code}

* rebuild pos from pso index and compact pos

{code}-command=rebuild -storage=/repo/storage -esize=40 -srcIndex=pso -destIndex=pos{code}

* rebuild predicates statistics index

{code}-command=rebuild -storage=/repo/storage -esize=40 -destIndex=predicates{code}

* replace <http://onto.com#e1> with <http://onto.com#e2>

{code}-command=replace -storage=/repo/storage -origURI=<http://onto.com#e1> -replURI=<http://onto.com#e2>{code}

* check pos consistency and additioaly scan it for corrupt statements

{code}-command=check -storage=/repo/storage -srcIndex=pos{code}