Create and update Neo4j graph

This page describes how to create and maintain your neo4j graph up to date with your computer's Datashare projects

Create the graph

  1. Go to 'All projects' and click on your project's name:

Screenshot of Datashare's 'All projects' page with the name of one project highlighted
  1. Go to the Graph tab and in the first step 'Import', click on the 'Import' button:

Screenshot of Datashare's project page on the Graph tab with the 'Import' button highlighted on the first step of the form

You will then 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:

Screenshot of Datashare's project page on the Graph tab with the Graph statistics highligted

Update the graph

If new documents or entities are added or modified in Datashare, you will need to update the Neo4j graph to reflect these changes.

Go to 'All projects' > one project's page > the 'Graph' tab. In the first step, click on the 'Update graph' button:

Screenshot of Datashare's project page on the Graph tab with 'Update' button on the first step of the form highlighted

To detect whether a graph update is needed, go to the 'Projects' page and open your project:

Screenshot of Datashare's All projects page with the name of one project highlighted
Open your project

Compare the number of documents and entities found in Datashare in 'Projects' > 'Your project' > 'Insights'...

Screenshot of Datashare's project page on the Insights tab with statistics highlighted
Statistics of one project

...with the numbers found in your project in the 'Graph' tab. Run an update in case of mismatch:

Screenshot of Datashare's project page on the Graph tab with statistics highlighted

The update will always add missing nodes and relationships, update existing ones if they were modified, but will never delete graph nodes or relationships.

You can now explore your graph using your favorite visualization tool.

Last updated