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
2 answers

How to check the results of graph_db.get_indexed_node for empty?

How can I test if a / no NODE has been found? NODE = graph_db.get_indexed_node("index", "ID", "myID") if (NODE == None): print "None found" exit() unfortunately results in: Traceback (most recent call last): File "foo.py", line 275, in…
akrueger
  • 365
  • 3
  • 16
0
votes
2 answers

Which indexing system should I use?

I'm currently using py2neo to interface with my neo4j server. One thing that I'd like to do is enforce a uniqueness constraint for a label (i.e. enforce a unique client-generated hash on the server side). For the sake of example, I have the…
Mr. S
  • 1,469
  • 2
  • 15
  • 27
0
votes
1 answer

py2eo, neo4j: How to handle large IO operation

I have 473639 nodes and 995863 parent->child relations in mysql table. Using both normal and batch operation to fetch data, create node and relation, but both type of operations are slow. Is there any workaround to make this process faster? Code…
Quazi Marufur Rahman
  • 2,603
  • 5
  • 33
  • 51
0
votes
1 answer

Py2Neo Label Indexing

I have a dataset containing words and documents associated with those words. I would like to set labels on them to separate them into these two categories. I was able to create the labels by doing this: if not "Social Words" in…
drowningincode
  • 1,115
  • 1
  • 12
  • 19
0
votes
1 answer

Increase Heap Space Available for JVM: OutOfMemoryError: Requested array size exceed VM limit Ubuntu 64Bit Neo4j 2.0

My specs: -Ubuntu 64bit -Neo4j 2.0 -32 GB of Ram -AMD FX-8350 Eight COre Processor The problem: I'm making a request to my Neo4j server with the following query: MATCH (being:my_label_2) RETURN being And gives me this…
AngelloMaggio
  • 504
  • 5
  • 16
0
votes
1 answer

py2neo transactions unbound pattern

I am trying to create a NEO4j cypher transaction using the py2neo library following the example on: http://book.py2neo.org/en/latest/cypher/#id2 When executing and committing the transaction I get the error: py2neo.cypher.InvalidSemantics: Unbound…
Greg Reed
  • 25
  • 6
0
votes
1 answer

py2neo cypher query error: neo4j.SyntaxException

I'm trying to execute a simple parameterized cypher query which actually fails due to a syntax error. params = { "k" : k, "v" : v, "p": { "name": "marc" } } query = "CYPHER 2.0 MATCH (n { { k } : { v } }) SET { p } RETURN n" data,…
mwienhold
  • 42
  • 6
0
votes
3 answers

Check if node exist in my database Neo4j

please i can't check and create a node plus a relationship to pre-existing node. i need to check if node pre-existing in my Neo4j database and create a node plus relationship to this node. Thank you
Ismahane
  • 27
  • 2
  • 8
0
votes
2 answers

how to check if a node exists in NEO4J with py2neo

I would like to insert in my python code, a verification as follows: {`if (data.screen_name == node.screen_name) THEN {just create new relationship with new text} else {create new node with new relationship to text } `} i need to Implement this…
Ismahane
  • 27
  • 2
  • 8
0
votes
1 answer

Add multiple value property to an index with py2neo - Neo4j

I'm trying to store a multiple value property with py2neo in a Neo4j database. My code is something like this: names = ["Hello", "Bye"] batch.add_to_index( neo4j.Node, "NAME", "names", names , mynode ) Sadly, checking resulting Lucene index with…
0
votes
2 answers

How to use returned nodes after a transaction on py2neo?

I successfully merged nodes using the following code: session = cypher.Session('http://192.168.56.20:7474/db/data/') txa = session.create_transaction() txa.append(""" MERGE (frame:FRAME {timestamp:{props}.ts}) ON CREATE SET frame:FIRST_FRAME …
Fernando Ferreira
  • 798
  • 1
  • 11
  • 26
0
votes
2 answers

py2neo rel() list indices must be integer not float

I'm trying to import nodes into Neo4j in a batch. But when I try to execute it, it throws an error: List indices must be integers, not float. I don't really understand which listitems, I do have floats, but these are cast to strings... Partial…
puredevotion
  • 1,135
  • 1
  • 11
  • 27
0
votes
1 answer

"Random" SocketError/Connection Refused errors on py2neo queries

Hullo, hope this doesn't end up being too trivial. The relevant parts of my stack are Gunicorn/Celery, neomodel (0.3.6), and py2neo (1.5). Neo4j version is 1.9.4, bound on 0.0.0.0:7474 (all of this is on linux, Ubuntu 13.04 I think) So my…
BluePeppers
  • 1,603
  • 14
  • 12
0
votes
1 answer

py2neo socket error - windows

Currently getting the following error using windows to ingest data into Neo4j: py2neo.packages.httpstream.http.SocketError: unknown error I have a working example ingesting maybe 100 rows of a csv but the code breaks with the error as reported…
user965586
  • 563
  • 5
  • 22
0
votes
1 answer

py2neo Relationship not callable error

I am using py2neo REST API to connect to neo4j version 1.9.5 via a Mac. I have successfully created three nodes: a, b and c using graph_db.create(). Then I successfully created a relationship "MANAGES" between a and b using: rel, =…
ELamar
  • 114
  • 11