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

Neo4J with Py2neo: Unauthorized error HTTPS

I have Neo4J running on a Docker container in which I have mapped the internal container ports 7473 and 7687 to their respective host ports 7473 and 7687, 7474 is exposed but not mapped. The Neo4J server configuration regarding network. # Bolt…
Strinnityk
  • 548
  • 1
  • 5
  • 17
0
votes
2 answers

Create same relationships between nodes with different properties

I'm creating a simple social graph where a user can create a post, tag it, and comment on it. I'm using py2neo to do the modelling. The model has user and post as nodes. A user TAGGED, POSTED, or COMMENTED on a post. In my case, a single user can…
Jason Strimpel
  • 14,670
  • 21
  • 76
  • 106
0
votes
1 answer

Connection error to Graphenedb hosted on heroku

Hi I am getting Unable to connect to localhost on port 7687 - is the server running? error whenever my python code executing import os import json from urllib.parse import urlparse, urlunparse from django.shortcuts import render # Create your…
0
votes
1 answer

Cannot import Graph, Node, Relationship from py2neo

I cannot import py2neo's elements: Graph, Node, NodeSelector, Relationship When I try to code it directly on the WinPython Commad Prompt it works just fine: But when I type that in a file using Notepad++ and I try to run it on command prompt it…
Benz
  • 289
  • 4
  • 15
0
votes
0 answers

py2neo. Not all nodes and relationships are merging

I have written some code with python to obtain the list of my followers and following users in Twitter. Once I have this information, I create nodes and relationships in neo4j with py2neo by looping over the list of followers and following users…
cristinik
  • 133
  • 1
  • 10
0
votes
0 answers

connecting to neo4j via py2neo on digitalocean error

I have a droplet on digital ocean and have neo4j installed and running, the results of service neo4j status is: Loaded: loaded (/etc/init.d/neo4j; bad; vendor preset: enabled) Active: active (exited) since Wed 2017-04-19 10:35:43 UTC; 21h ago …
laila
  • 1,009
  • 3
  • 15
  • 27
0
votes
2 answers

How to extract all subgraph from neo4j

I'm using neo4j and I build a large graph that has a lot of subgraph. For example, in the pic below there are 4 subgraphs. So how can I get 4 groups of nodes by cypher query? I'm using neo4j 3.0
milowang
  • 101
  • 2
  • 10
0
votes
1 answer

How to load data from remote server into neo4j using python?

I have two servers, one is for neo4j to store graph data, another server will run ETL to load data into neo4j every minutes. My current solution is: using a for loops to run a transaction for each item of coming data (based on py2neo) , but the…
T.David
  • 1
  • 1
0
votes
1 answer

py2neo bolt ProtocolError: Server closed connection

We are seeing intermittent failures with the error py2neo.packages.neo4j.v1.exceptions.ProtocolError: Server closed connection (stacktrace below). This error only happens every now and again when executing the same block of code. Here is the code we…
0
votes
1 answer

Neo4j: using a numeric index for nodes

This is py2neo 1.6. My question is how to generate the unique_identifier for each idea (see commented lines) in order to have a distinct filename for the image. For the moment we are using python’s uuid. I wonder if there is some utility in neo4j…
0
votes
2 answers

py2neo Neo4j TypeError: is not JSON serializable

from flask import Flask, jsonify, render_template from py2neo import Graph,authenticate app = Flask(__name__) authenticate("localhost:7474","neo4j", "neo4j") graph = Graph("http://localhost:7474/db/data") def buildNodes(nodeRecord): …
0
votes
1 answer

Calling flask app configuration inside models.py

OK, I am trying to do something a little bit esoteric with my Flask application. I want to have some conditional logic in the model structure that is based on information in a configuration file. At present when I call my Flask App, a configuration…
ChrisGuest
  • 3,398
  • 4
  • 32
  • 53
0
votes
1 answer

how to get a sub graph by using py2neo ogm

I know hot to get the sub-graph by using Cypher query. But since I use py2neo.ogm model. I just want to know how to get sub-graph by using ogm. for example: class Company(GraphObject): __primarykey__ = "firm_name" firm_name = Property() …
Howardyan
  • 667
  • 1
  • 6
  • 15
0
votes
2 answers

py2neo - cannot change bolt port

Although changed bolt port using: authenticate(bolt_url_strippted + ":24786", username, password) g = Graph( host=bolt_url_strippted, bolt=True, bolt_port=24786, user=username, …
0
votes
1 answer

how can i avoid visiting a node with same property more than once in neo4j?

My Cypher query: MATCH p =(o:Order)-[r:seeks*2..8]->(o:Order) WHERE o.Name="000093" AND ALL(x IN tail(nodes(p)) WHERE SINGLE(y IN tail(nodes(p)) WHERE x=y)) RETURN extract(n IN nodes(p)| n.Name) AS OrderID, extract(u IN nodes(p)| u.UserName) AS…
MUHAMMAD
  • 61
  • 6