Questions tagged [neo4j-python-driver]

The Neo4j Python driver is officially supported by Neo4j and connects to the database using the binary protocol. It aims to be minimal, while being idiomatic to Python.

Neo4j is a highly scalable native graph database that leverages data relationships as first-class entities, helping enterprises build intelligent applications to meet today’s evolving data challenges. Neo4j's native graph storage and processing engine deliver constant, real-time performance. The Neo4j Python driver is officially supported by Neo4j and connects to the database using the binary protocol. It aims to be minimal, while being idiomatic to Python.

To install neo4j driver using pip execute the below command

pip install neo4j-driver==1.0.0
41 questions
4
votes
3 answers

Neo4j Bolt with TLS and self-signed certificate: Certificate Verify Failed

I'm trying to set up Neo4j with TLS enabled for the Bolt Communication on CentOS7. The server is currently installed as a system service. I have generated a self-signed certificate and key: sudo openssl genrsa -des3 -out /var/ssl/ca.key…
Alex Barry
  • 415
  • 1
  • 9
  • 21
3
votes
0 answers

Issue connecting to Noe4j Aura with Python 'neo4j' driver

I attempted to connect neo4j aura database using Python but failed as "Unable to retrieve routing information". from neo4j import GraphDatabase from neo4j.debug import watch uri = "neo4j+s://.databases.neo4j.io" driver =…
Nekoken
  • 31
  • 1
3
votes
1 answer

Fetching results from cypher bolt statement

I am trying to access neo4j using neo4j python driver.I am running the following code to get a property of a thing A., I open the driver and session directly from GraphDatabase of neo4j and use session.run() to execute graph queries. These queries…
reshmak
  • 51
  • 1
  • 10
3
votes
1 answer

Creating a new relationship using Python-Neo4j yields no results

I am setting up a time-based graph database, around the following design principle: I have a program which is supposed create new time-points (when relevant) in the database. I find the relevant nodes using a binary searchand then attempt to delete…
Bas Jansen
  • 3,273
  • 5
  • 30
  • 66
3
votes
0 answers

Efficient importing of Cypher statements

I'm trying to export a database to a file and import it again without copying the actual database files or stopping the database. I realize that there are a number of excellent (and performant) neo4j-shell-tools however the Neo4j database is remote…
John
  • 783
  • 6
  • 12
2
votes
1 answer

Neo4j python driver results don't contain edge data

This is my Cypher query and its equivalent result in neo4j Browser MATCH (a)-[b:REFERENCE]->(c) RETURN a,b,c LIMIT 200 The b column (or key in JSON) contains the relationship and all the data that is associated with it. This is my ideal…
kenneth-rebello
  • 914
  • 1
  • 7
  • 13
2
votes
1 answer

Get elements along with their ids from neo4j using python driver

I am using the python neo4j driver (5.5.0) to query for data from a neo4j aura database for use in my python application. However this data is insufficient for my purpose (building a graph visualization) as it only returns the node properties and…
breach
  • 27
  • 5
2
votes
0 answers

Query Optimization for Parallel Connection in Neo4j Community Version

I am evaluating the Neo4j Community version with data that have millions of nodes and relationships. I wrote a thread application to write data in parallel. Four threads are working parallelly and the total write time got reduced by 4 times but the…
Rheatey Bash
  • 779
  • 6
  • 17
2
votes
1 answer

Getting node/edge creation/removal statistics

I am running a Python (3.8) script which uses pip library neo4j 4.0.0 to interact with a community edition neo4j 4.1.1 server. I am running many queries which use MERGE to update or create if nodes and relationships don't exist. So far this is…
Blitzkoder
  • 1,768
  • 3
  • 15
  • 30
2
votes
2 answers

Neo4j driver - confirm transaction success

I have just started playing with the new neo4j driver for python and got totally stuck with transactions. How do I check if a transaction completed successfully? As far as I can say commit function does not automatically raise any errors, i.e. if…
Szpilona
  • 121
  • 2
  • 9
1
vote
2 answers

How to check which database is used in neo4j python driver?

I have connected to multi-database model in neo4j, Also have a set of python scripts to push and pull data to and from multiple database in NEO4J. We need to specify the name of the database we are operating these scripts against. Also to this i…
Tono Kuriakose
  • 718
  • 6
  • 19
1
vote
2 answers

NEO4J error : Invalid input 's': expected 'n/N'

For the below cypher query, I am getting an error Cypher Query tried: match (n:attribAct) where not tolower(n.Aliases) contains tolower(n.name) set n.Aliases = n.name+","+n.Aliases as x return x; Error: Invalid input 's': expected 'n/N' (line 1,…
Tono Kuriakose
  • 718
  • 6
  • 19
1
vote
2 answers

Unable to connect NEO4J using neo4j python driver

I'm unable to connect to Neo4j using neo4j-python-driver version 5.3.0. Requirement is using Neo4j python driver to query NEO4J DB using cypher queries. It gives the error failed to connect to server even when the database is up and running and i…
Tono Kuriakose
  • 718
  • 6
  • 19
1
vote
2 answers

Neo4j Python Driver Using Unwind with a list of dictionaries

I'm trying to batch merge to create multiple nodes. Using the below code, def test_batches(tx,user_batch): result= tx.run(f"Unwind {user_batch} as user\ MERGE (n:User {{id: user.id, name: user.name, username:…
1
vote
0 answers

Neo4j Python driver - is it possible to run `EXPLAIN`?

Is EXPLAIN ... a purely interactive feature, or it is possible to access its outputs from the Python driver? If the latter, how? And, in general, how does one access programatically all the non-data information returned by a query? (stuff like…
Tim
  • 236
  • 2
  • 8
1
2 3