An R package that allows you to interact with a Neo4j graph database from your R environment.
Questions tagged [r-neo4j]
41 questions
8
votes
1 answer
How to Create Nodes in RNeo4j using Vectors or Dataframes
The popular graph database Neo4j can be used within R thanks to the package/driver RNeo4j (https://github.com/nicolewhite/Rneo4j).
The package author, @NicoleWhite, provides several great examples of its usage on GitHub.
Unfortunately for me, the…

Hack-R
- 22,422
- 14
- 75
- 131
5
votes
1 answer
RNeo4j cypher - retrieving paths
I'm trying to extract a sub-graph from a global network (sub-networks of specific nodes to a specific depth).
The network is composed of nodes labeled as Account with a property of iban and relationships of TRANSFER_TO_AGG.
The cypher syntax is as…
3
votes
1 answer
Replicate Neo4j browser auto-complete function in a cypher statement
I am trying to replicate the "auto-complete" functionality of the neo4j browser interface using only a cypher query. A successful implementation would mean that if the query is executed in the browser, toggling the auto-complete button would have no…

ArminD
- 33
- 5
3
votes
3 answers
How to use SSL certificates in Neo4j instead of self-signed certificates (or snakeoil.cert)
For a production Neo4j server I need to use a SSL certificate that is not self-signed. I will post lessons learned in the response below.

rvaneijk
- 663
- 6
- 20
3
votes
2 answers
rjson: Convert `list` to JSON-like string compatible with Cypher DSL
Let's have:
desired_output="{a:'1', b:'foo'}"
D = list(a=1, b="foo")
Then:
out = toJSON(D)
out
"{\"a\":1,\"b\":\"foo\"}"
identical(out, desired_output) # FALSE
Is there a better function f (other than gsub) so that this holds?
identical(…

Daniel Krizian
- 4,586
- 4
- 38
- 75
2
votes
1 answer
R Shiny reactive environment error when building Apps using Neo4j graph data
I am building an interactive Shiny app using Neo4j graph data by using RNeo4j package to connect Neo4j with R.
The app contains a table showing properties of graph data pulled from Neo4j, users can view and change table content (properties of graph…

MMAASS
- 433
- 4
- 18
2
votes
1 answer
Duplication when merging bulk nodes with attributes
I can't see from documentation how to merge bulk data with attributes. The example here uses R but the solution will be Cypher. I need to designate id as the unique field so that the node will not be duplicated when attributes are changed or new…

geotheory
- 22,624
- 29
- 119
- 196
2
votes
1 answer
How to manually change the position of nodes in VisNetwork in R
I have a problem with VisNetwork. I created a graph in R and each time when I click on the node and move it to other place, it comes back to where it was before. Is there any possibility to rearrange network manually? I'd like to move some nodes to…

Natalia
- 375
- 3
- 11
2
votes
1 answer
is there the equivalent of R's dput in Neo4j?
I would like to make a minimal viable example of a graph in Cypher. I'm searching for an equivalent of R's dput function to do so. I haven't been able to find anything. If anyone has a workaround or some wisdom to share it would be greatly…

Monica Heddneck
- 2,973
- 10
- 55
- 89
2
votes
1 answer
RNeo4j: Error in httr::content(response)$errors : $ operator is invalid for atomic vectors
I am new to RNeo4j. I was running the following the codes.
library(RNeo4j)
graph = startGraph("http://localhost:7474/db/data", username='neo4j', password='xxxxx2')
addConstraint(graph, "Person", "name")
However, I'm getting error after…

Toufiq
- 61
- 1
- 9
2
votes
2 answers
How to use custom self signed certificates in Neo4j (instead of snakeoil.cert)?
Recently I ran into the problem of generating a custom certificate that does not bind to 0.0.0.0 in Neo4j. It turns out that Neo4j - in contrast to the documentation - expects DER certificates for both the public and private key.
I will post lessons…

rvaneijk
- 663
- 6
- 20
1
vote
0 answers
Data Frame from RNeo4j cypher() output
I've got a problem with this code:
library(RNeo4j)
library(dplyr)
library(stringr)
library(MASS)
graph = startGraph("http://localhost:7474/db/data/", username = "neo4j", password = ",yT:/9L)8aoi8t")
query = "MATCH (m:MARKETS)
MATCH (n:CBP_NAICS…

Steve
- 575
- 4
- 18
1
vote
1 answer
Selecting all connected nodes in a sub-graph with a specific starting point to display in an R visualization
I have a simple neo4j database that I use for social network analysis. The database consists of user nodes and other nodes that users may have in common, such as phone or address. There is only one type of relationship [:HAS]. For a user to match…

Tyler Balamas
- 11
- 2
1
vote
1 answer
Accessing a local non-default database using RNeo4j
Using startGraph, I can access the default Neo4j database:
graph <- startGraph("http://localhost:7474/db/data")
which points to my default directory C:\Users\XXX\Documents\Neo4j\default.graphdb. I have a second database located at…

CLH
- 13
- 3
1
vote
1 answer
neo4j createNode with double attribute
The following code fails to correctly store the attribute dt:
graph = startGraph("http://localhost:7474/db/data/", username="neo4j", password=MYPASS)
clear(graph, input=FALSE)
t1 = createNode(graph, "testType", name="t1", dt=2015.1113, v1=1)
t2…

Sasha Gutfraind
- 11
- 1