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

Can we make a graph object in py2neo and using other graph object's merge function for merging the graphs?

I want to merge a graph into my graph database using py2neo. My question is can we make a graph object, add all the required nodes and relationships and then using the merge function of object which is an instance of my graphdatabase, merge the…
0
votes
2 answers

py2neo to BOLT: how to convert tx.append statements to BOLT

In Py2neo there is the ability to append transactions and then commit them as one block to the server from py2neo import Graph graph = Graph() tx = graph.cypher.begin() stmt1 = "CREATE (:Person {name: 'Guinevere'})" stmt2 = "CREATE (:Person {name:…
Goofball
  • 735
  • 2
  • 9
  • 27
0
votes
1 answer

py2neo command in neo4j BOLT driver

I have a command written in python using the py2neo to access the name of an exchange. This works. graph = Graph() stmt = 'MATCH (i:Index{uniqueID: 'SPY'})-[r:belongsTo]->(e:Exchange) RETURN e.name' exchName = graph.cypher.execute(stmt)[0][0] Can…
Goofball
  • 735
  • 2
  • 9
  • 27
0
votes
1 answer

Neo4j relationship not getting added using Load csv

I am trying to use the Load csv method of neo4j. I have successfully added all the nodes to neo4j. But when it comes to relationships , the cypher statements run without any errors but they are never getting added and are not visible in the browser.…
mysterious_guy
  • 425
  • 11
  • 23
0
votes
2 answers

error in starting and connecting to neo4j from py2neo

I am trying to connect to neo4j from py2neo: from py2neo.server import GraphServer server=GraphServer() server.start() At this stage when I check the logs I see that the server is up and running: 2016-06-10 09:41:09.928-0600 INFO …
mysterious_guy
  • 425
  • 11
  • 23
0
votes
2 answers

TypeError: create() takes 2 positional arguments but 4 were given

Here is my code file with name is CreateNode.py #!/usr/bin/python import py2neo from py2neo import Graph, Node def createNodeWithLabelProperties(): print("Start Create label with prperties") py2neo.authenticate ("localhost:7474",…
csr
  • 69
  • 1
  • 7
0
votes
2 answers

Error connecting py2neo

I'm trying to connect my neo4J DB with Python using py2neo. I'm following the example extracted from py2neo 2 API but there's no way to get it work. My code: from py2neo import Graph graph =…
user2238244
  • 229
  • 1
  • 4
  • 13
0
votes
1 answer

Neo4j--py2neo-- Unable to create nodes using tx.create(a)

I am using Py2neo 3.0 and Neo4j 3.0 to create nodes. Followed the transaction statements to create the nodes but failed. Syntax: tx = graph.begin() a= Node("Person1", name="Alicedemo") tx.create(a) tx.commit And, then did the same…
Jack Daniel
  • 2,527
  • 3
  • 31
  • 52
0
votes
2 answers

Compare the existing neo4j with a csv and add missing nodes and relationships from a csv

Below is my code to create a neo4j relationship by reading from a csv file. import csv from py2neo import neo4j, cypher, authenticate, Graph from py2neo import node, rel import py2neo authenticate("localhost:7474", "neo4j", "bhatt1234") graph_db =…
mysterious_guy
  • 425
  • 11
  • 23
0
votes
1 answer

Neo4j - Object oriented Paradigm using Py2neo

I am learning Neo4j using py2neo. I wanted to know whether it has the capability to create objects in an Object Oriented Programming fashion like in neomodel. Ex: Lets say, I have a class as follows: Class Human{ Age, height, …
Jack Daniel
  • 2,527
  • 3
  • 31
  • 52
0
votes
1 answer

py2neo | TypeError: execute() got an unexpected keyword argument

I have seen a reference http://www.markhneedham.com/blog/2015/07/23/neo4j-loading-json-documents-with-cypher/ to Load JSON data with cypher to convert into graph-database structure. But I'm getting TypeError: execute() got an unexpected keyword…
0
votes
2 answers

py2neo - Functions like COUNT(),MIN(),MAX() in py2neo Api.(without using cypher.execute)

HI, I am new to Py2neo API. I have good knowledge using cypher but my requirement is to run python API (instead of cypher.execute("****")), because of performing analytics operation on graph. I want a way to find the no of nodes in the…
Jack Daniel
  • 2,527
  • 3
  • 31
  • 52
0
votes
1 answer

py2neo - Unable to fetch Data from a remote server

I am using Py2neo package to query my database which is located in a server machine. My code snippet: from py2neo import Graph,authenticate import time from py2neo.packages.httpstream import http http.socket_timeout = 9999 def dbConnect(): …
Jack Daniel
  • 2,527
  • 3
  • 31
  • 52
0
votes
1 answer

How can I extract information from a recordList returned as node in python using py2neo?

My question is when I have my result as recordList and returned values are nodes then how can I extract information like properties of any particular node from recordList data structure? results = graph.cypher.execute("MATCH (n:Person) return…
0
votes
1 answer

No handlers could be found for logger "mongo_connector.util"

I always got the error below when I try to run mongo-connector with neo4j doc manager. I also tried with a config file as in https://github.com/mongodb-labs/mongo-connector/blob/master/config.json Where is the problem? mongo-connector -m…
user1916077
  • 431
  • 1
  • 7
  • 18