Neo4j

Some Bash magic, graph, csv

Unix shells are powerful. Scripts are useful. I am working on a project for which I want to know if the master data is already present in my graph as I’ll process CSV files. So, the idea is to get all the distinct unique values from a given column in all the csv file and […]

Neo4j Favorites

You certainly already know that you can add a Cypher statement as a favorite by hitting the star button next to the input box A very useful trick is to start it with a comment, so that the comment appears as the title of the favorite in the favorites tab. // Isolated nodes – count […]

APOC to the rescue #2

In this short post, another APOC feature worth its weight. The function apoc.any.property takes two parameters, first being the object (node, relation) the second being the name of a property of that object. It returns the value of any property of an object.   <– genius 🙂 That is super useful when you want to use […]

APOC to the rescue #1

Picture yourself, querying on a text property, looking for duplicates and BOOM you see they not only have the same text but also the same Identifier !!! Your brain screams “OMG I have nodes with the same identifier ! How can that be !” Your start to wonder if all the confidence you put on […]

Importing France into Neo4j

importing data from several CSV files into Neo4j, with periodic commit by making a one big file via bash.