I'm migrating a postgresql database to neo4J. I am using the Python language, but I have a problem. I have a table called 'historico' which marks the rainfall recorded by a sensor in a certain latitude and longitude. My problem is the following: if a node with such latitude and longitude in my database Neo4j, I'll just create a node with precipitation and connect it to the existing node, otherwise I create a new node with latitude and longitude and connect the rainfall node to it. But I don't know how to compare the return of my cypher query in python for I know if there is a node or not. My code:
I am a man of mystery. Mostly because of this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!