Examples

The following examples can be found on this page:

Neo4j - Node Label

This example Application demonstrates how to read node data corresponding to a node label from a Neo4j instance using this Connector. In this case, movies released after 2000.

You can download the files here to try it out for yourself - adjusting the steps to use your own Neo4j credentials.

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

Step 1: Add the Connection

From the Properties blade of the widget to which the Neo4j Connector will be linked, a data grid in our example, select the Data Source tab.

Click the plus icon next to Data Source and then the plus icon next to Connection.

Select the Neo4j Connector and enter a name for the connection. In this case, set the name to "Movies".

Step 2: Configure Server and Database

Enter the Server details: the URI, User Name, and Password. In this case, tick to use variables.

Select the Database (neo4j) and click Save.

Step 3: Use the Connection

Use the Connection that was just created to complete entering the new Data Source. In this case, set the name to "Movies", the connection to "Movies", and the entity to "Movie".

Save the Data Source.

Note: the primary key is auto-populated once the entity is selected.

Step 4: Use the Data Source

Select the Data Source we just added.

Click the pencil icon next to Filter to enter criteria: 'released' is greater than 2000.

Apply the filter and save the Application.

Click the Launch button and view the data grid.

Step 5: Results

Observe that movies released after the year 2000 are returned from the Neo4J database.

Files

See the Import, Export, and Clone - XMPro article for steps to import an Application.

Neo4j - Cypher Query

This example Application demonstrates how to read node data with relationships from a Neo4j instance using a Cypher Query and this Connector. In this case, actors who appeared in movies released after 2000.

You can download the files here to try it out for yourself - adjusting the steps to use your own Neo4j credentials.

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

Step 1: Add the Connection

From the Properties blade of the widget to which the Neo4j Connector will be linked, a data grid in our example, select the Data Source tab.

Click the plus icon next to Data Source and then the plus icon next to Connection.

Select the Neo4j Connector and enter a name for the Connection. In this case, set the name to "Actors By Movie".

Step 2: Configure Server

Enter the Server details: the URI, User Name, and Password. In this case, tick to use variables.

Step 3: Configure Database

Select the Database, tick to specify a cypher, paste the Cypher Query, and select a Primary Key.

In this case:

  • Database: neo4j

  • Cypher: MATCH (movie:Movie)-[ActedIn]-(person:Person) RETURN movie.title AS movie, person.name AS Actor, person.born AS Born, movie.released AS Released

  • Primary Key: movie

Click Save.

Step 4: Use the Connection

Use the Connection that was just created to complete entering the new Data Source. In this case, set the name to "Actors By Movie", the connection to "Actors By Movie", and the entity to "Cypher Query".

Save the Data Source.

Note: the primary key is auto-populated once the entity is selected.

Step 5: Use the Data Source

Select the Data Source we just added.

Click the pencil icon next to Filter to enter a criteria: 'released' is greater than 2000.

Apply the filter and save the Application.

Click the Launch button and view the results.

Step 6: Results

Observe that the actors who appeared in movies released after the year 2000 are returned from the Neo4j database.

Files

See the Import, Export, and Clone - XMPro article for steps to import an Application.

Last updated