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

Neo4j, py2neo, Neomodel - Cypher Shortest Path giving error - TypeError: 'NotImplementedType' object is not callable

I'm trying to run the following Cypher query in neomodel: MATCH (b1:Bal { text:'flame' }), (b2:Bal { text:'candle' }), p = shortestPath((b1)-[*..15]-(b2)) RETURN p which works great on neo4j via the server console. It returns 3 nodes with two…
raschwab
  • 41
  • 6
0
votes
3 answers

neo4j broken/corrupted after ungraceful shutdown

I'm using Neo4j over windows for testing purposes and I'm working with a db containing ~2 million relations and about the same amount of nodes. after I had an ungraceful shutdown of neo4j while writing a batch of relations the db got corrupted. it…
Ronen Ness
  • 9,923
  • 4
  • 33
  • 50
0
votes
1 answer

encoding issues when populating neo4j with py2neo and querying with cypher

I used py2neo to add nodes and relations in neo4j. created with: asno, = graphDB.create({"name":"ASNO:"+fields[8], "ASNO":fields[8]}); asno.add_labels("Network", "ASNO", continent); printing in python: ASNO : 38023 However, when I query…
RayN
  • 1
0
votes
1 answer

Creating unique relationships in Neo4j using py2neo get_or_create

I am trying to create a graph using some nodes and relationships using py2noe. say, I'm creating a family tree. I am creating nodes using get_or_create() so that my script doesn't create duplicates if I supply the same value again. How can I do the…
Kiran Vemuri
  • 2,762
  • 2
  • 24
  • 40
0
votes
1 answer

Create relationships after creating the nodes in py2neo

I am actually working on genetics currently trying to learn py2neo to make biological databases and i'm kinda newbie so excuse me for this easy question. I have a codon dictionary that looks like this: codon_dict={'A': ['GCT', 'GCC', 'GCA', 'GCG'],…
mehmet
  • 100
  • 1
  • 8
0
votes
3 answers

How do I read node from neo4j using py2neo

I'm a python + neo4j noob. Trying to access my data on graphenedb using py2neo in my python flask web app. I have spent hours trying to do something simple. All I want to do is get a node from the db based on its property. Been trying the following…
ParleParle
  • 48
  • 1
  • 7
0
votes
1 answer

neo4j, py2neo: How to search a node using its properties

I am using py2neo on Neo4j for my self study project. I have two codes, one for creating nodes and another one for creating relations between the nodes. I have successfully created nodes using py2neo with following attributes EmpNum Name Role I need…
Alwinex
  • 3
  • 2
0
votes
1 answer

struggling with error on py2neo simple script

I've been trying to create a graph using py2neo / neo4j but I'm constantly hitting problems with my script. The latest one being the following... (bare in mind that i am also new to python. sorry!) Here is the code: from py2neo import neo4j,…
0
votes
1 answer

How to create label on py2neo object using Object-Graph-Mapping before saved in Neo4j database

I am trying to save a node with a label but i can't. Only node with properties will save on neo4j db. I appreciate if anyone can help with how to create a label on an object before i save it. I am using python and django with py2neo object-graph…
Fit
  • 1
  • 1
0
votes
2 answers

Case insensitive index in Neo4j using Py2neo

I want to make a case-insensitive index in Neo4j using Py2neo. Read through the docs and googled a lot but didn't find anything. There seems to be this option in Java but not in Py2neo. Please help!
yogk
  • 271
  • 5
  • 15
0
votes
2 answers

TypeError: not JSON serializable Py2neo Batch submit

I am creating a huge graph database with over 1.4 million nodes and 160 million relationships. My code looks as follows: from py2neo import neo4j # first we create all the nodes batch = neo4j.WriteBatch(graph_db) nodedata = [] for index, i in…
0
votes
1 answer

Use parameters to create or merge relationships

I often add large amounts relationships between existing nodes and I'm wondering if parameters could increase performance. So far I do this by building individual Cypher strings and submitting them in Cypher transactions (using py2neo 1.6.4). The…
Martin Preusse
  • 9,151
  • 12
  • 48
  • 80
0
votes
1 answer

offline install for py2neo in ubuntu

I downloaded the .zip from the py2neo github and placed in the site-packages folder and ran pip install py2neo Everything looks like it's in the right place (I compared to windows setup and they both contain the same files in the same places) but…
adam
  • 940
  • 5
  • 13
  • 30
0
votes
1 answer

Using Cypher with LIMIT and SKIP: Does Cypher always return data in the same order?

Does cypher always return results from the same query in the same order? (Assuming no modifications are made to the DB between queries?) So for example: Query 1: return n LIMIT 100 // returns from 1 to 100? Query 2: return n SKIP 100 LIMIT 100 //…
songololo
  • 4,724
  • 5
  • 35
  • 49
0
votes
1 answer

py2neo.neo4j.GraphDatabaseService.node(id) raise ClientError(e)

I think this might be an obvious to the seasoned py2neo users, but I could not get over it since I'm new. I'm trying to follow py2neo online doc: http://book.py2neo.org/en/latest/graphs_nodes_relationships/, but I was able to use the 'Node' methods…