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

Need assistance with reducing the processing time for merging​​ nodes and building relationships

I am new to Cypher. I am building a simple graph using GrapheneDB and py2neo (version 2.0.2) In my simple graph I have Repository, Organization & People nodes. IN_ORGANIZATION and IS_ACTOR are two types of relationships. Below is the code snippet…
harishvc
  • 451
  • 8
  • 20
0
votes
1 answer

Py2neo Connection Refused Only with Cypher Execute

I'm running py2neo 2.0.4 on a remote Neo4j 2.1.6 database. I'm able to connect to the database with some commands, but not with all. Using the same connection uri for both instances: This works fine. test = self.graph_db.find_one('Node') This does…
user2004245
  • 399
  • 1
  • 6
  • 16
0
votes
1 answer

Failing to install py2neo on CentOS

I am trying to install py2neo on a CentOS server. It fails with the following message: File "setup.py", line 29, in from py2neo import __author__, __email__, __license__, __package__, __version__ File…
Patrick
  • 1,091
  • 1
  • 14
  • 14
0
votes
1 answer

py2neo 2.0.4 remote connection refused

looked into related questions and answers and can't find a solution for the 'connection refused' when trying to use py2neo 2.0.4. Here the ipython session (python '2.7.5 (default, Mar 9 2014, 22:15:05) \n[GCC 4.2.1 Compatible Apple LLVM 5.0…
bitgap
  • 1
0
votes
2 answers

Multiple "CREATE INDEX" in neo4j slowing down search/updates to the graph database?

Recently, I noticed that uploading from CSV files (creating nodes and relationships) into my graph database has been slown down in a great deal. In the process of looking for the culprits, I was wondering doing multiple "CREATE INDEX :[node…
user4279562
  • 669
  • 12
  • 25
0
votes
1 answer

Moving to py2neo 2.0 and streaming

I upgraded to py2neo 2.0 and the code I used for streaming and writing results to file doesn't work any more. The error I am getting is TypeError: 'CypherResource' object is not callable. from py2neo import Graph from py2neo.packages.httpstream…
user201411
  • 254
  • 2
  • 11
0
votes
1 answer

py2neo.error. InvalidSemanticsException

I am stuck into Invalid Semantic exception error following is my code: import json from py2neo import neo4j, Node, Relationship, Graph graph = Graph() graph.schema.create_uniqueness_constraint("Authors",…
Mohan Timilsina
  • 490
  • 6
  • 25
0
votes
1 answer

py2neo offline install failing

I'm trying to install py2neo on an offline machine. I can't use pip because I'm not connected to the internet. I'm trying to install py2neo-2.0.3 with python2.7.9 on redhat. When I run python setup.py install I get ImportError: cannot import name…
adam
  • 940
  • 5
  • 13
  • 30
0
votes
1 answer

Inserting vectors with certain values causes 500 error

I'm inserting nodes with feature vectors into Neo4j using py2neo. It works on almost all of my data. In two cases, though, the vectors contained NaN values, which caused Neo4j to return a 500 error when I tried to create the node. Example 'good'…
betseyb
  • 1,302
  • 2
  • 18
  • 37
0
votes
1 answer

neo4j / py2neo : Transaction error - File too large

I am trying to insert/update a graph db (~ 500K nodes & relationships) using py2neo. Somewhere in this process, the transaction failed & neo4j crashed. As per the log file - the root cause was reported as "Caused by: java.io.IOException: File too…
0
votes
1 answer

Iterating throug nodes in Neo4j using py2neo

I am working on using Neo4j with py2neo for analyzing Twitter data. I'm a newbie in all of these, so the question might be pretty basic. But I could not find the answer in any of the documentations. I have two csv files, one with 100 followers, the…
KMM
  • 1
0
votes
0 answers

Confusion over indexing and labels in Neo4j (py2neo)

I have been trying to understand the difference between old indexes and current indexing scheme in Neo4j and I have trouble understanding whether I actually need to use graph_db.get_or_create_indexed_node or not. I have an example and I would…
Anastasia
  • 864
  • 5
  • 13
  • 26
0
votes
1 answer

Cypher queries in py2neo

I am starting to use py2neo and tried to work on some sample data sets. Here is (simplified) original set of queries: CREATE (Ann:person{name:'Ann',gender:'female'}) CREATE (Target:store{name:'Target',location:'New York'}) CREATE (Ann)-[:PURCHASED…
Anastasia
  • 864
  • 5
  • 13
  • 26
0
votes
1 answer

py2neo set_labels not working with get_or_create_indexed_node

Why does batch.set_labels() work with batch.create() but not with batch.get_or_create_indexed_node() This works, a node is created as expected. batch = neo4j.WriteBatch(neo4j_graph) a = batch.create(node({'name': 'a'})) batch.set_labels(a,…
Cathal Coffey
  • 1,105
  • 2
  • 20
  • 35
0
votes
1 answer

py2neo unique nodes with unique relations given timestamp

I am trying to create a graph that stores time based iterations between nodes. I would like the nodes to be unique and relationships between nodes to be unique given the timestamp property. My first attempt creates 2 nodes and 1 relationship which…
Cathal Coffey
  • 1,105
  • 2
  • 20
  • 35