Questions tagged [neo4j.py]

A Python wrapper for Neo4j

11 questions
8
votes
3 answers

Problem with creating an object in neo4j

I am using the django integration for neo4j and I'm getting the following traceback when I'm trying to create a node. I do have JPype installed and it can be imported. p = Person.objects.create(first_name='omer', last_name='katz') Traceback (most…
the_drow
  • 18,571
  • 25
  • 126
  • 193
3
votes
2 answers

How convert an embedded Neo4j graph db to GraphML with Python?

I want to store my embedded Neo4j Graph db to GraphML to draw it with a tool like yEd. I'm managing the graph db with python27. Does any body knows a way to do that?
Marc Pou
  • 649
  • 2
  • 7
  • 20
3
votes
2 answers

neo4jrestclient index results returns Iterable instead of node/url?

I'm trying to follow the docs http://readthedocs.org/docs/neo4j-rest-client/en/latest/indices.html I expect the index query to return a node, but it returns an "Iterable: Node" instead: db = GraphDatabase("http://localhost:7474/db/data") playerIndex…
McPedr0
  • 571
  • 1
  • 5
  • 18
2
votes
1 answer

How define a Traverse for neo4j with Python?

I need to traverse a neo4j graph using Python27. From the manual I've seen that I can define a Traversal and include a Evaluator and I got something similar to that. def my_evaluator(path): if (path.end['type'] == 'STOP') or (path.end['type'] ==…
Marc Pou
  • 649
  • 2
  • 7
  • 20
2
votes
1 answer

How to verify if a Neo4j Graph DB exist with Python?

I've this small snipped of code that load a file in an embedded Neo4j Database. With this code I've two problems and I don't find documentation to solve it. I'm following the samples of the documentation to create an index, but: a) How can I detect…
Marc Pou
  • 649
  • 2
  • 7
  • 20
2
votes
2 answers

How to use neo4jrestclient to make a node with properties from a python dictionary?

What is the easiest/best way to get the key-value stores from my dictionary into the node properties in neo4jrestclient? I have a dictionary nodeDict = {"color":"Red", "width":16, "height":32} How do I insert the dictionary into the property list…
McPedr0
  • 571
  • 1
  • 5
  • 18
1
vote
1 answer

Bulb Neo4j Update Error

I am passing a dictionary of the form {'twitterid':121212, 'followers':[121,212323,2323,1221]} to the function createVertex def createVertex(userDict): vertex = g.vertices.create(twitterid=userDict['twitterid']) …
Pratik Poddar
  • 1,353
  • 3
  • 18
  • 36
1
vote
1 answer

How to traverse a neo4j graph using python neo4jrestclient

I'm trying to follow the code example here: https://neo4j-rest-client.readthedocs.org/en/latest/traversals.html n1.traverse(types=[client.All.Knows])[:] But I don't understand what kind of obect 'client' is supposed to be, it wasn't defined in the…
Harry Palmer
  • 468
  • 1
  • 6
  • 17
1
vote
1 answer

Neo4j python binding: Querying node index for a set of values

I have a Neo4j database graphDb where nodes have a property 'label'. I have a Lucene index 'my_nodes' with key 'label' which indexes the values of node property 'label'. Now I want to retrieve nodes which have property 'label' equal to a value from…
npobedina
  • 331
  • 3
  • 14
1
vote
2 answers

Have problems building neo4j GetAll server extension

I have been trying to build the example GetAll neo4j server extension, but unfortunately I cannot make it work. I installed the Windows version of neo4j and run it as a server. I also installed Python neo4jrestclient and I am accessing neo4j through…
0
votes
1 answer

Problem installing neo4j.py

I have followed the instructions here and for some reason I am getting the following traceback: root@ubuntu:~/Downloads/neo4j-python# python setup.py install Traceback (most recent call last): File "setup.py", line 146, in main() …
the_drow
  • 18,571
  • 25
  • 126
  • 193