Example

This example demonstrates how to use this Action Agent to insert movie data into a Neo4j graph database.

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

  1. Drag the Neo4j Action Agent onto the Canvas.

  2. Rename the Agent and link the input endpoint to the movie data.

  3. Save the Data Stream.

  4. Double-click to configure the Agent.

Step 2: Configure Server

Enter the server details: Server Uri, Username, and Password. In this case, the Neo4j database is on the local machine so we are not using variables.

Step 3: Configure Database

Set the Database, Label, and Command. In this case, set the database to "neo4j" and the label to "Movie". Leave Command as "Insert".

Apply the changes and save the Data Stream.

Step 4: Input Mapping

Select the link between the agents, click Configure, and map the Simulator's outputs to the Neo4j Action Agent's inputs.

Select the Neo4j's input arrow and click Configure.

Map one of the parent Agent's output attributes to each Neo4j label's property.

Step 5: Results

Apply the changes, save the Data Stream, and publish it.

Let's take a look at the Live Data View. Observe the Nimona movie is printed.

View the Neo4j database in a browser, and observe that the Nimona movie was inserted.

Refer to configuration to understand all configuration options of this Agent.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Last updated