Questions tagged [py2neo]

Py2neo provides Python bindings for the Neo4j graph database via its REST web service interface.

Py2neo provides Python bindings for the Neo4j graph database via its REST web service interface. With more detailed information available from py2neo.org, the source code can be found on GitHub and an installable package from the Python Package Index.

The library provides both in-depth support for the Cypher query language as well as the Geoff graph data notation.

729 questions
1
vote
0 answers

How to pass parameter with regex query

I am trying to query using regular expression in py2neo. However, I ran this query, but It did not work. I tried running the same query directly in Cypher and it worked. I do not know what I am missing. propertyNode = tx.run("MATCH (n)…
B89
  • 51
  • 1
  • 6
1
vote
2 answers

How to change max_connection_lifetime of python driver in py2neo

I need to increase max_connection_lifetime of python driver in py2neo but i cannot find anyway in documents to do that I there a way to increase the max_connection_lifetime in py2neo ?
Ariyan
  • 14,760
  • 31
  • 112
  • 175
1
vote
0 answers

Neo4j is frequently going down with Out of memory error

Suddenly Neo4j stops working with following error Neo4j configuration details as below: dbms.memory.heap.max_size=8000m dbms.memory.heap.initial_size=8000m dbms.memory.pagecache.size=4000m neo4j_version:3.3.9 we use python as our backend…
ck22
  • 264
  • 3
  • 16
1
vote
1 answer

Py2neo: how to use graph.run correctly?

I have been trying to use py2neo to read from my neo4j database and in particular I want to execute the following cypher query, MATCH (node {name:"shoes"})-[r]->(n) RETURN r,n; //This works well in cypher-shell Now the equivalent of this query using…
mettleap
  • 1,390
  • 8
  • 17
1
vote
1 answer

Py2Neo Issue with Batch Transactions - AttributeError: 'Node' object has no attribute 'upper'

Following asking a previous question, I've tried to use batch transactions with Py2Neo to speed things up. I've adapted my code quite a bit, but seem unable to build and execute a batch of transactions. The matching works fine, it's only the…
Dave C
  • 367
  • 5
  • 19
1
vote
1 answer

Multiprocessing and Neo4J Insertion/Update via py2neo

I work on a project that requires a lot of information to be played into Neo4J via py2neo rapidly, and I've hit a snag in attempting to use Python's multiprocessing library to expedite the process. In general terms, what we're doing is twofold,…
csh1579
  • 201
  • 1
  • 7
1
vote
0 answers

Error while creating node using py2neo : keyword can't be an expression

from py2neo import Graph, Node, Relationship l=["Vipul", "Vithal", "Yoga"] hasage=["hasAge", "hasAge", "hasAge"] age=[24,31,26] g = Graph(password="Abc123") tx = g.begin() for item in l: Vithal = Node("item", name=l[l.index(item)],…
1
vote
1 answer

Connecting to Neo4j database after importing CSV

I have imported my csv files using the neo4j-admin according to the documentation using the following command /bin/neo4j-admin import --mode=csv --nodes all_nodes_ne_header.csv,all_nodes_ne.csv --relationships…
Areza
  • 5,623
  • 7
  • 48
  • 79
1
vote
1 answer

Matching all nodes related to a set of other nodes - neo4j

I'm just getting started with neo4j and would like some help trying to solve a problem. I have a set of Questions that require information (Slots) to answer them. The rules of the graph (i.e. the Slots required for each Question) are shown…
ceharep
  • 419
  • 1
  • 5
  • 12
1
vote
1 answer

Neo4j visualization with py2neo: TypeError: 'LabelSetView' object is not callable

I am trying to follow the example in https://nicolewhite.github.io/neo4j-jupyter/hello-world.html from scripts.vis import draw import neo4jupyter options = {"Person": "name", "Drink": "name", "Manufacturer": "name"} draw(graph, options) For this…
Hi_there
  • 41
  • 4
1
vote
2 answers

AttributeError: 'Transaction' object has no attribute 'append'

Well, I started to work with Py2neo and Neo4j in order to initiate a connection between them and already installed both libraries correctly without no errors. When I decide to start training by the following commands: from py2neo import Graph graph…
Mohammad Heydari
  • 3,933
  • 2
  • 26
  • 33
1
vote
1 answer

Unable to set list type value in COALESCE pypher

I want to build query like through pypher set entity.birth_date = coalesce(VALUE + entity.birth_date, entity.birth_date , [] + VALUE) VALUE is string like '38' What I've tried is: from pypher import Pypher, __ p = Pypher() p.Merge.node('ent',…
gB08
  • 182
  • 2
  • 10
1
vote
1 answer

Neo4j/Py2Neo timeout issue when importing large CSV files

When importing data from large CSV files (>200MB) into Neo4j, the response ends up hanging. The query does complete, and all records are imported, however there seems to be some sort of response timeout which results in no indication that the import…
1
vote
1 answer

py2neo: ImportError: cannot import name 'Rev'

I have 4.2 version of py2neo [ py2neo in c:\programdata\anaconda3\lib\site-packages (4.2.0) ] and when importing in my python script, seeing this error from py2neo import Graph, Node, Path, Rev ImportError: cannot import name 'Rev' also when using…
Sudheer
  • 349
  • 3
  • 12
1
vote
2 answers

How to count relationships (of one type) to a node using py2neo

Using py2neo 4.x, neo4j 3.5.3, python 3.7.x What I have: a node from the graph a graph = Graph( host="alpha.graph.domain.co", auth=('neo4j', 'theActualPassword') ) # grab the graph a = Node("Type",…
Lost Odinson
  • 418
  • 1
  • 5
  • 14