Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Cypher queries in python

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:

I am a man of mystery. Mostly because of this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic