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
0
votes
1 answer

py2neo update node in graph

i started using the py2neo database system with django. How can i update a node in the graph database ? I created a node: user = graph_db.get_or_create_indexed_node("users_email_single", email, email, {"user_id":user_id, …
0
votes
1 answer

py2neo: minimizing write-time when creating graph

I would write a huge graph to neo4j. Using my code would take slightly less than two months. I took the data from Kaggle's events recommendation challenge, the user_friends.csv file I am using looks like user,friends 3197468391,1346449342 3873244116…
user17375
  • 529
  • 4
  • 14
0
votes
2 answers

Creating indexed nodes on neo4j cypher via rest api

I'm trying to create an indexed node in cypher, with the following syntax: neo4j-sh (?)$ start m=node:person(UID= "1") return m; ==> +------------+ ==> | m | ==> +------------+ ==> | Node[64]{} | ==> +------------+ ==> 1 row ==> 0 ms ==>…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
0
votes
3 answers

py2neo Batch Insert timing out for even 2k nodes

I'm just trying to do a simple batch insert test for 2k nodes and this is timing out. I'm sure it's not a memory issue because I'm testing with a ec2 xLarge instance and I changed the neo4j java heap and datastore memory parameters. What could be…
coolio
  • 409
  • 4
  • 12
0
votes
1 answer

MVC and OOP in py2neo

I'm looking for some "best practice" coding style using py2neo. Coming from Django ORM and Bulbs (another python neo4j library), I'm used to MVC-style separation of model from controller like this: class Node_Type_A(Node): element_type = 'A…
bebbi
  • 2,489
  • 3
  • 22
  • 36
0
votes
2 answers

py2neo adding relationships in a loop

I have the following code which takes a list of domains from my Neo4j database, performs a lookup on the IP and then creates a relationship if one does not already exist. It works fine up until the last few line of code where the relationships are…
Chris Hall
  • 871
  • 6
  • 13
  • 21
0
votes
1 answer

py2neo Listing all nodes in DB

I'm trying to list all nodes from an index in my neo4j database. The following code works however it only prints out about 600 nodes when I have over 10K in the index. I suspect I'm using the wrong the method. Any help is appreciated. myindex =…
Chris Hall
  • 871
  • 6
  • 13
  • 21
0
votes
1 answer

index error in py2neo , Neo4j

I'm brandnew to py2neo so I figured I would start off with a simple program. Its returning a TypeError: Index is not iterable. Anyway I'm trying to add a set of nodes and then create relationships for them while avoiding duplicates. Don't know what…
Chris Hall
  • 871
  • 6
  • 13
  • 21
0
votes
1 answer

py2neo error in rest.py :: httplib.HTTPException as err:

I have been using py2neo on my local machine and it's been working great. However, when I installed it out on my server I received an error before it said Successfully Installed. This was the error: File…
P-Rod
  • 471
  • 1
  • 5
  • 18
0
votes
1 answer

Is it safe to use get_or_create_indexed_node() to guarantee property uniqueness in neo4j? Use as a foreign key

I'm using python+py2neo with neo4j I am assigning my SQL db's auto-assigned record ID as a foreign key in my neo4j database. I'm using get_or_create_indexed_node() to create a new node with a unique id if a node with this ID does not already exist…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
0
votes
1 answer

py2Neo throwing py2neo.rest.NoResponse Exception

I am using py2neo for accessing neo4j database. I'm loading the graph from data in text file. Since my data-set has about a million nodes, it takes quite a long time for loading the entire data-set. Somewhere in between, the code throws…
darshan
  • 1,230
  • 1
  • 11
  • 17
-1
votes
1 answer

How to solve OverflowError: mktime argument out of range?

begin = time.mktime(time.strptime('1970-01-01 00:00:00', '%Y-%m-%d %H:%M:%S')) Traceback (most recent call last): File "", line 1, in OverflowError: mktime argument out of range
jiadong
  • 9
  • 5
-1
votes
1 answer

py2neo run().data() randomly return tuples instead of list

im using py2neo 5.0b1 in combination with flask 1.1.2 and jinja2 2.11.2 to build a small webapp. My simple function which return the values of my cypher: Model: def get_threats(): query = '''Match (n:Threat) return n.threat_name as threat_name…
Gio Mac
  • 3
  • 3
-1
votes
2 answers

How create new node and create mappings to existing node in NEO4J

I try to add a new node to an existing graph in neo4j, and try to create a mapping between the new node(BAI09.03) and an existing node(PR.IP-6) but am getting it like this but my output should be like this
-1
votes
2 answers

Mongo connector error: Unable to process oplog document

I am new to neo4j-doc-manager and I am trying to use neo4j-doc-manager to view the collection from my mongoDB to a created graph in neo4j as per: https://neo4j.com/developer/mongodb/ I've have my mongoDB and neo4j instance running in local and I'm…
1 2 3
48
49