This page describes how to create and maintain your neo4j graph up to date with your server's Datashare projects
The neo4j related features are added to the DatashareCLI through the extension mechanism. In order to run the extended CLI, the Java CLASSPATH
must be extended with the path of the datashare-extension-neo4j
jar. By default, this jar is located in /home/datashare/extensions
, so the CLI will be run as following:
In order to create the graph, run the --fullImport
command for your project:
the CLI will display the import task progress and log import related information.
When new documents or entities are added or modified inside Datashare, you will need to update the neo4j graph to reflect these changes.
To update the graph, you can just re-run the full export:
The update will always add missing nodes and relationships, update existing ones if they were modified, but will never delete graph nodes or relationships.
To detect whether a graph update is needed, open the 'Projects' page and select your project:
compare the number of documents and entities found inside Datashare:
to the numbers found in the 'Graph statistics' and run an update in case of mismatch:
explore your graph using your favorite visualization tool