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

Large dataset insertion into neo4j from MySQL

I am using python 3 in conjunction with py2neo (v 3.1.2) to insert a large amount of data from MySQL to Neo4j. The table in MySQL has about 20 million rows. I want to do the insertion without converting the MySQL data to CSV as suggested on neo4j's…
Jmj
  • 25
  • 1
  • 4
0
votes
1 answer

Access neo4j via python-joern

When using Joern, I accessed the Neo4j database via python-joern with the following code. from joern.all import JoernSteps j = JoernSteps() j.setGraphDbURL('http://localhost:7474/db/data/') j.connectToDatabase() res = …
0
votes
1 answer

Proper syntax for creating graph from CSV file using py2neo

This is what I believe to be a very simple question. I am trying to recreate the graph on this page (scroll down a bit): https://linkurio.us/visualizing-network-donald-trump/ There is code to create the graph on this page but I am trying to use the…
0
votes
1 answer

py2neo transaction commit duplicate

I just started to learn py2neo and neo4j, and I'm having this problem of duplicates. I'm writing a simple python script in python that will make a database of scientific papers and authors. I only need to add the nodes of papers and authors and add…
Miguel
  • 2,738
  • 3
  • 35
  • 51
0
votes
1 answer

neo4j - py2neo - Unable to place parameters into relationship on creation

If I run my python script over neo4j database, works ok: from py2neo import Node, Relationship, Graph, cypher, authenticate # set up authentication parameters authenticate("localhost:7474", "user", "password") # connect to authenticated graph…
0
votes
1 answer

ValueError in py2neo graph query

I'm trying to do a simple graph query in neo4j from python. My query looks like def do_query(self): graph = Graph(settings.NEO4J_CONNECTION_STRING) query = 'MATCH (n:SomeNode) WHERE n.id = ' + id + ' RETURN n' data =…
Jonathan Viccary
  • 722
  • 1
  • 9
  • 27
0
votes
1 answer

How to use parametrized query to extract node property in py2neo

I have a NEO4J database and i need to pass parametric query to retrieve properties of a node using Py2neo library
0
votes
1 answer

Neo4j export SVG file with Python

What I am trying to achieve is to execute a cypher query and get the SVG file from the result using Python. I couldn't find a way to export the SVG file with py2neo module. Is there a way to export the SVG file through Python?
Porjaz
  • 771
  • 1
  • 8
  • 28
0
votes
2 answers

How do I import Python node dicts into neo4j?

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['name'], 'CIK': owner['CIK']} relationship…
zelusp
  • 3,500
  • 3
  • 31
  • 65
0
votes
0 answers

Handling multiple search fields in cypher or py2neo

Just getting started with cypher. Trying to understand best way to handle this case. I need to query database based on several search fields(not always present). Wondering what's the best way to handle it. For e.g I collect data from html post…
jas
  • 1,539
  • 5
  • 17
  • 30
0
votes
1 answer

Returning unique path types in neo4j in a graoh created by py2neo

I have created a graph database using py2neo in python3. I create relationships using the following code: from py2neo import…
laila
  • 1,009
  • 3
  • 15
  • 27
0
votes
2 answers

py2neo 3.1.2 connection problems

I am trying to commit a small graph of three nodes (a_py2neo_subgraph) to my graphene Neo4j server. I am using py2neo 3.1.2. g = py2neo.Graph(server) tx = g.begin() tx.create(a_py2neo_subgraph) tx.commit() tx.finished() Where "server" is the exact…
SvarnyP
  • 7
  • 7
0
votes
1 answer

Py2neo V3 adding relationships to transactions in a loop

Trying to add nodes and relationships in transactional manner using py2neo V3. I would like to add the person and all their movies as one transaction. I could not get nodes in the outer and inner loops to work in the same transaction. I'm pretty…
Eric Rohlfs
  • 1,811
  • 2
  • 19
  • 29
0
votes
1 answer

py2neo - neokit usage in script

I want to use neokit to manage my Neo4J store from a script. I'm using Windows 7, Python 3.5.2 (Anaconda 4.1.1) and py2neo v3.1.2. Neo4J is community version 3.0.4. This is my code: import…
0
votes
1 answer

related node to existing node py2neo ogm

I use py2neo V3 to connect neo4j database my ogm model : class User(GraphObject): __primarykey__ = "username" username = Property() password = Property() ppi_graph = RelatedTo(Graph, "PPI_Graph") class Graph(GraphObject): …
Amir Abdollahi
  • 455
  • 3
  • 5
  • 18