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
1 answer

How to introduce parameters in a cypher query?

I have this cypher query in a Python program: prevNode = graph_db.data("OPTIONAL MATCH (n:Node) WHERE n.property = {param} RETURN n") The line of code above gives this error: 'py2neo.database.status.ClientError: Expected a parameter named…
ibamar
  • 23
  • 8
0
votes
0 answers

Error when using password parameter in Py2neo when creating a Graph object

I'm trying to create a Graph object in python using the py2neo library using interactive python. See output below. >>> from py2neo import Graph >>> myGraph = Graph(password='xxxx') Traceback (most recent call last): File "", line 1, in TypeError:…
0
votes
1 answer

Complex query neo4j from GraphObject

I am using GraphObject to map Neo4j nodes to Python Classes, I like when I get a Node with relationships because I get its nodes too as Python Classes. For example, if my class is Person, I can use Person.select, and get Person objects. Now, I need…
0
votes
1 answer

Create many graphs in neo4j 3.0

How to create two graphs on the same database. In fact, I modelized my problem using two graphs and I need to compare time execution to choose the better one. I'm using pyn2eo to generate both graphs. Thank you for reply
MAYA
  • 1,243
  • 1
  • 12
  • 20
0
votes
1 answer

ObjectModel accessing incoming relations

I have two nodes A and B. They have a directed relation from A to B. Thus, A has a ConnectedTo attributed of type RelatedTo. However, I want to iterate over all B nodes and access the incoming relations from A. How can I do this? I tried adding a…
Sim
  • 4,199
  • 4
  • 39
  • 77
0
votes
2 answers

Creating node in py2neo shows up blank in Neo4j

I am new to Neo4j and py2neo. I used the GraphObject model like so: class Capability(GraphObject): __primarykey__ = "term" term = Property() child_of = RelatedTo("Capability") parent_to = RelatedTo("Capability") After I create a…
Sean
  • 2,412
  • 3
  • 25
  • 31
0
votes
1 answer

py2neo and flask query

I have issue in my application, I am trying to run a code in flask with py2neo. I have latest version of NEO4j and python2.7 Here is my code for fucntion in USER class class User: def __init__(self, username): self.username =…
csr
  • 69
  • 1
  • 7
0
votes
1 answer

What is wrong with my Neo4j query for Py2neo?

This is my query for Py2neo for Neo4j database MATCH (u:User),(p:Prize),(ca:Category) CREATE (ch:Challenge {chid:'dassdshhhhasdasda',challenge_title:'Exm 2015',…
csr
  • 69
  • 1
  • 7
0
votes
2 answers

Cypher query return undesirable result

I need to get texts and save them to Neo4j. After that, I separate each word of that text and create a [:NEXT] relationship between them indicating the word that comes after another one and a [:CONTAINS] relationship indicating that the text…
Paulo Fabrício
  • 319
  • 3
  • 17
0
votes
1 answer

Using py2neo v3 with google app engine

I'm trying to set a backend using py2neo on google app engine. It works just fine when pushed on the dev on app engine, however, unfortunately, it doesn't work when I use it on localhost. First, i've setted the HOME environment variable in python…
Arnaud PARAN
  • 126
  • 5
0
votes
1 answer

Passing node object as parameter in graph query Py2neo

I have the following code in which I am obtaining a node. How can I pass it to graph.evaluate as a parameter. Is there a possible method to do so if this is incorrect ? Or some alternative method user_node = selector.select("User",…
aradhyamathur
  • 340
  • 7
  • 21
0
votes
0 answers

Neo4j: Adding nodes and finding relationship taking more time

Here is my python code, I am trying to insert nodes and find relationships but it is taking more time, help will be appreciated from xml.dom import minidom from py2neo import Graph, Node, Relationship, authenticate authenticate("localhost:7474",…
0
votes
1 answer

py2neo relationship push empties nodes

I'm using py2neo (using the Relationship.push() method) to update the properties of existing relationships. The relationship properties are updated successfully, but the related nodes get emptied of all their properties. Is this standard…
Ken Adey
  • 11
  • 1
0
votes
1 answer

creating node in py2neo with function call

I would like to create a node based on argument passed in func. In this createRelation func, one node is known "User" but other node might or might not exist. Depending on kind of relationship I want to create, I check if node of that type exist, if…
jas
  • 1,539
  • 5
  • 17
  • 30
0
votes
1 answer

How can I use py2neo to store a dictionary as one property value to single property key of a node in neo4j?

I have a node and I want to add one property property_x whose value I want to be {"year1":value, "year2":value}. Making more than one node for each year is not needed as I need these values in my processing together.