Install the neo4j plugin following instructions available in the dedicated page.
1. Go to "Settings":
2. Make sure the following settings are properly set:
Neo4j Host
should be localhost
or the address where your neo4j instance is running
Neo4j Port
should be the port where your neo4j instance is running (7687
by default)
Neo4j User
should be set to your neo4j user name (neo4j
by default)
Neo4j Password
should only be set if your neo4j user is using password authentication
3. When running Neo4j Community Edition
, set the Neo4j Single Project
value. In community edition, the neo4j DBMS is restricted to a single database. Since Datashare supports multiple projects, you must set the Neo4j Single Project
with the name of the project which will use neo4j plugin. Other projects won't be able to use the neo4j plugin.
4. Restart Datashare to apply the changes
5. You should be able to see the neo4j widget in your project page, after a little while its status should be RUNNING
:
You can now create the graph !
This page describes how to create and maintain your neo4j graph up to date with your computer's Datashare projects
Open the 'Projects' page and select your project:
Create the graph by clicking on the 'Create graph' button inside the neo4j widget:
You will see a new import task running:
When the graph creation is complete, 'Graph statistics' will reflect the number of documents and entities nodes found in the graph:
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 click on the 'Update graph' button inside the neo4j widget:
To detect whether a graph update is needed you can compare the number of documents found inside Datashare to the number found in the 'Graph statistics' and run an update in case of mismatch:
The update will always add missing nodes and relationships, update existing ones if they were modified, but will never delete graph nodes or relationships.
explore your graph using your favorite visualization tool
This page explains how to setup neo4j, install the neo4j plugin and create a graph on your computer
Follow the instructions of the dedicated FAQ page to get neo4j up and running.
We recommend using a recent release of Datashare (>= 14.0.0
) to use this feature, click on the 'Other platforms and versions' button when downloading to access versions if necessary.
If it's not done yet analyze your documents and extract both names of people, organizations and locations as well as email addresses.
If your project contains email documents, make sure to also extract email addresses.
You can now run Datashare with the neo4j plugin !