py2neo Questions

3

Solved

I have some trouble with the py2neo find and find_one (http://py2neo.org/2.0/essentials.html) What I want in Cypher is: MATCH (p:Person) WHERE p.name='Alice' AND p.age=22 RETURN p Say, where th...
Theroid asked 6/1, 2015 at 9:41

3

Solved

I understand the SelectField method in WTForms takes can argument choices which has the form... choices=[("value1", "display of value 1"), ("value2", "display of value 2")] I need to populate my...
Antiquate asked 8/12, 2012 at 20:28

4

Solved

I want to change the color of my nodes based on their properties: Say I have many "Person" nodes. And I want those who live in New York to be red and those who live in Los Angeles to be blue. How ...
Milicent asked 1/11, 2015 at 20:45

3

Solved

I've been trying to figure out a way to adapt the merge_one functionality from py2neo v2 to v3. I read in a Google group that "The merge_one method no longer exists in v3 as you should be able to u...
Zhao asked 12/7, 2016 at 16:27

2

Solved

Getting results on a pandas dataframe from a cypher query on a Neo4j database with py2neo is really straightforward, as: >>> from pandas import DataFrame >>> DataFrame(graph.data...
Siskin asked 17/8, 2017 at 14:40

3

I'm using two docker containers on one host machine. The first one is based on ordinary neo4j:2.3 image with some forwarded ports (7474). The second one is python:2.7-based container. Using curl I ...
Matrimony asked 13/5, 2016 at 13:54

2

Solved

I am trying to create a huge database in neo4j which will have around 2 million nodes and around 4 million edges. I have been able to speed up the node creation process by creating the node in the ...
Marianomaribel asked 17/7, 2015 at 12:25

1

Solved

My Neo4j database contains family tree relationships. I would like to extract that data in a nested JSON format like so: { "firstname":"Jon", "lastname":"Smith", "parents":[ { "firstname":"A...
Dolhenty asked 5/7, 2017 at 10:16

2

I produce the following node and relationship data in a for loop about 1 million times. The idea is that investor nodes connect to company nodes by relationship edges: investor = {'name': owner['n...
Fricassee asked 27/12, 2016 at 23:44

2

Solved

I am working on migration of data from postgres to Graph Database manually. I have wrote script below: import psycopg2 from py2neo import authenticate, Graph authenticate("localhost:7474", "neo4...
Levite asked 30/5, 2016 at 16:38

1

I've noticed that with neo4j v3.0 there are now 3 competing drivers: py2neo neo4j-rest-client neo4j's own (bolt) driver It seems that the first and third and developed by the same person, with ...
Propaedeutic asked 9/5, 2016 at 7:7

1

Solved

I have experimented with ways to upload medium-size data sets using py2neo. In my case, there are about 80 K nodes and 400 K edges that need to be loaded every day. I want to share my experience, a...
Nephology asked 16/3, 2016 at 18:27

3

Solved

Is there a way to iterate through every node in a neo4j database using py2neo? My first thought was iterating through GraphDatabaseService, but that didn't work. If there isn't a way to do it with...
Conviction asked 18/6, 2012 at 2:9

5

Solved

I am finding Neo4j slow to add nodes and relationships/arcs/edges when using the REST API via py2neo for Python. I understand that this is due to each REST API call executing as a single self-conta...
Klingensmith asked 28/9, 2012 at 16:15

2

I am using py2neo to load JSON data into Neo4j as chyper statements. My problem is that sometimes there are signs as “ ‘ \ etc in the strings I want to import as properties to Nodes: MERGE (p:Nod...
Instate asked 28/5, 2015 at 17:44

1

Solved

I wrote the following python code to neo4j using py2neo from py2neo import Graph from py2neo import neo4j,Node,Relationship sgraph = Graph() alice = Node("person",name="alice") bob = Node("pe...
Dungaree asked 1/5, 2015 at 11:49

1

Solved

I execute a long running (5 mintues) Cypher query with py2neo 2.0: graph.cypher.run(query) or result = graph.cypher.execute(query) The query fails after ~60 sec with a Socket Error from httpstrea...
Dunderhead asked 22/11, 2014 at 14:15

2

Solved

I am trying to find a workaround to the following problem. I have seen it quasi-described in this SO question, yet not really answered. The following code fails, starting with a fresh graph: fro...
Acarpous asked 15/11, 2013 at 21:0

2

this is more of a best-practices question. I am implementing a search back-end for highly structured data that, in essence, consists of ontologies, terms, and a complex set of mappings between them...
Reinert asked 7/4, 2013 at 17:24

1

I am just getting started with Neo4j and py2neo. I am experimenting with the batch feature available in py2neo for bulk data loading of a neo4j database. At a basic level, I want to create two no...
Verein asked 10/6, 2013 at 11:41

0

I have a flask app that uses neo4j for some data. Everything runs fine locally when I use the python server, but when I deploy on nginx+uwsgi, I can no longer execute cypher queries in py2neo. I ca...
Chari asked 29/4, 2013 at 19:34
1

© 2022 - 2024 — McMap. All rights reserved.