• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Cypher queries in python

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
expectation is the root of all heartache - shakespeare. tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!