Questions tagged [neo4j]

Neo4j is an open-source graph database (GDB) well suited to connected data. Please mention your exact version of Neo4j when asking questions. You can use it for recommendation engines, fraud detection, graph-based search, network ops/security, and many other user cases. The database is accessed via official drivers in Java, JavaScript, Python and .NET, or community-contributed drivers in PHP, Ruby, R, Golang, Elixir, Swift and more.

Neo4j is a open-source, transactional, high-performance native graph database.

Neo4j stores its data as a graph: Nodes are connected through Relationships, both with arbitrary properties. Neo4j features a graph-centric declarative query language called Cypher. Its drivers support many programming languages. More details in the Online Training and the Neo4j Manual.

Neo4j offers a fully-managed cloud database (Database as a service) called Neo4j AuraDB.

For questions that are not suitable for the Stack Overflow Q&A Format, please reach out on Discord. Neo4j also maintains a public Feedback Board for feature ideas and future development directions.


Useful Links

External Resources


Related Tags

22696 questions
4
votes
2 answers

Add value to array if its not already in there

I want to add a value to an array if its not already there. So far my code looks something like this (note that both r.names and {name} are arrays, and [1] + [2] = [1,2]): MERGE (r:resource {hash:{hash}}) ON CREATE SET r.names = {name} ON MATCH SET…
J.J
  • 3,459
  • 1
  • 29
  • 35
4
votes
1 answer

Neo4j partition

Is the a way to physically separate between neo4j partitions? Meaning the following query will go to node1: Match (a:User:Facebook) While this query will go to another node (maybe hosted on docker) Match (b:User:Google) this is the case: i want to…
Lior Goldemberg
  • 866
  • 13
  • 26
4
votes
1 answer

How to use neo4j-import?

I am new to neo4j and I have downloaded its community version on my mac. I would like to use the neo4j-import command to import a csv file. I found on the documentation of Neo4j that I should write on the command line the following: neo4j-import…
4
votes
2 answers

Neo4j Python py2neo authorization error

Installed Neo4j 2.2.3 on Windows 8.1. Nothing special. Started the server through the Neo4j start app. Nothing special Started working with py2neo as in the documentation on Neo4j.org. Ran into an authorization error I cannot explain. Log follows…
Fred Ottenhof
  • 51
  • 1
  • 3
4
votes
2 answers

Pushing Spark Streaming RDDs to Neo4j -Scala

I need to establish a connection from Spark Streaming to Neo4j graph database.The RDDs are of type((is,I),(am,Hello)(sam,happy)....). I need to establish a edge between each pair of words in Neo4j. In Spark Streaming documentation I found…
Naren
  • 457
  • 2
  • 10
  • 19
4
votes
1 answer

Neo4j - Unable to create Relationship entities

I am trying to insert the relationships between two nodes in Neo4j. I am using the Neo4J(2.1.8 Community) & spring-data-neo4j(3.3.0.RELEASE). I am using trying to create the Employee-Manager relationship. This relationship entity is Report. (Both…
mevada.yogesh
  • 1,118
  • 3
  • 12
  • 35
4
votes
1 answer

How create multiple Neo4j databases for multiple projects?

I have multiple projects using Neo4j and I'd like to separate them so I don't have to clear and reseed the database whenever I switch between projects. How can I do this? I downloaded Neo4j using brew install neo4j. I start and stop neo4j using…
Chet
  • 18,421
  • 15
  • 69
  • 113
4
votes
1 answer

Stop Cypher traversal when where condition on reduce() can no longer be satisfied

Suppose I have a neo4j database with a single node type and a single relationship type to keep things simple. All relationships have a "cost" property (as in classical graph problems), whose values are non-negative. Suppose now I want to find all…
Gerardo Lastra
  • 645
  • 5
  • 15
4
votes
1 answer

Spring Data Neo4j and Grails 3

Does anyone have Spring Data Neo4j (3.3.0) working with Grails v3 and is willing to share the configuration? I'd like to get the web interface working (as per here: How to enable neo4j webadmin when using spring-data-neo4j?), but I'm getting a bit…
John
  • 10,837
  • 17
  • 78
  • 141
4
votes
1 answer

How to import neo4j dump into the current database

I can get a dump of the current database as following: neo4j-shell -c dump > dump.sql Now how do I import that dump file into another database (using the shell)
Max
  • 3,824
  • 8
  • 41
  • 62
4
votes
3 answers

Consuming JSON in neo4j server extension

I'm building a Neo4j (2.2.2) unmanaged extension and I can't figure out why the following method is throwing 415: unsupported media type when I post requests with properly-formatted JSON bodies and Content-Type:application/json headers.…
drew moore
  • 31,565
  • 17
  • 75
  • 112
4
votes
1 answer

Doing a DFS on a neo4j graph

I have a database with the following structure. The property node is of the type create (A:Property {value:"abc"}) How to do a dfs so that it will be able to print all the values in the graph.In the order A->B->E->F->C->G->H->D->I->J The…
lost Coder
  • 577
  • 2
  • 8
  • 34
4
votes
1 answer

neo4j-import failing on Prepare node index phase

I'm trying to import 130M nodes and 200M relationships on a new neo4j database from csv files using neo4-import tool and it gets stuck on the process. The output of the process: Nodes [>:3.35 MB/s---|PROPERTIES(2)======|*NODE:1007.08…
4
votes
1 answer

Neo4j: using 'order by' and 'limit' with subqueries

I have a data model that's a tree structure with a max depth of 3. For example: (a) ... first level root node / | \ / | \ (b) (b) (b) ... [0..n] number of second depth nodes / | | / | …
dbcb
  • 878
  • 7
  • 13
4
votes
2 answers

Connecting the neo4j web client to a local database

I've created a boatload of nodes in my neo4j database and I've been happily querying them. Everything's working great, but I don't see how to get the web interfaced attached to my local database – terminology doesn't seem to be super consistent in…
Ion Freeman
  • 512
  • 4
  • 19