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
29
votes
4 answers

What are the best ways to store Graphs in persistent storage

I am wondering what the best ways to store graphs in persistent storage are, for later analysis, search, clustering, etc. I see neo4j being an option, I am curious if there are also other graph databases available. Does anyone have any insights into…
nicoslepicos
  • 505
  • 1
  • 5
  • 9
28
votes
3 answers

where can I find a neo4j quick tutorial?

I was trying to save directed graphs into databases for further processing and query. And neo4j seems to fit my needs. However, I don't seem to find a good tutorial regarding the following: Creating the database and put data in. Making queries. I…
dacongy
  • 2,504
  • 3
  • 30
  • 48
28
votes
6 answers

How to create new database in neo4j?

I'm using Linux 16.04 OS. I have installed fresh neo4j. I get referenced exegetic and digitalocean sites. By default there's graph.db database. My question is how to create a new database and create nodes and relation ship between nodes? As I…
Dhaval
  • 1,393
  • 5
  • 29
  • 55
28
votes
3 answers

Neo4j super node issue - fanning out pattern

I'm new to the Graph Database scene, looking into Neo4j and learning Cypher, we're trying to model a graph database, it's a fairly simple one, we got users, and we got movies, users can VIEW movies, RATE movies, create playlists and playlists can…
Eek
  • 1,740
  • 1
  • 15
  • 24
28
votes
2 answers

Neo4j sharding aspect

I was looking on the scalability of Neo4j, and read a document written by David Montag in January 2013. Concerning the sharding aspect, he said the 1st release of 2014 would come with a first solution. Does anyone know if it was done or its status…
Monta
  • 1,136
  • 1
  • 12
  • 28
27
votes
2 answers

How to return relationship type with Neo4J's Cypher queries?

I am trying to get the relationship type of a very simple Cypher query, like the following MATCH (n)-[r]-(m) RETURN n, r, m; Unfortunately this return an empty object for r. This is troublesome since I can't distinguish between the different types…
F Lekschas
  • 12,481
  • 10
  • 60
  • 72
27
votes
1 answer

How to get the label of a relationship

If I have the cypher query MATCH (a)-[r]->(b) I can get the labels of a and b fine line so MATCH (a)-[r]->(b) RETURN labels(a), labels(b) But when I want the label of r using the same syntax MATCH (a)-[r]->(b) RETURN labels(r) I get Type…
Christopher Hackett
  • 6,042
  • 2
  • 31
  • 41
27
votes
8 answers

neo4j how to drop all constraints

Is there a cypher command to drop all constraints? I know I can drop specific constraints. DROP CONSTRAINT ON (book:Book) ASSERT book.isbn IS UNIQUE However I want to clear all constraints as part of teardown after testing. Can't find anything in…
AJcodez
  • 31,780
  • 20
  • 84
  • 118
27
votes
4 answers

Export whole database in Cypher format (ASCII text)?

Is there a way to export an entire Neo4J database in Cypher, resulting in an ASCII file of the Cypher commands which could be used on an empty Neo4J database to re-create the original database? Since Neo4J is undergoing such rapid development, I…
Phil
  • 441
  • 1
  • 5
  • 5
27
votes
1 answer

what is zookeeper port and its usage?

I am quite new for zookeeper port through which I am coming across from past few days. I introduced with zookeeper port keyword at two occasion: while configuring neo4j db cluster (link) and while running compiled voltdb catalog (link) (See Network…
Aman Gupta
  • 5,548
  • 10
  • 52
  • 88
27
votes
3 answers

neo4j script file format - is there any?

I would like to predefine some graph data for neo4j and be able to load it, maybe via a console tool. I'd like it to be precisely the same as MySQL CLI and .sql files. Does anyone know if there exists a file format like .neo or .neo4j? I couldn't…
ducin
  • 25,621
  • 41
  • 157
  • 256
26
votes
3 answers

What is the difference between a Graph Database and a Network Database?

What is the difference between a Graph Database (e.g. Neo4J) and a Network Database (e.g. IDS, CODASYL)? In principle are they the same thing?
nvogel
  • 24,981
  • 1
  • 44
  • 82
26
votes
6 answers

How to decide which NoSQL technology to use?

What is the pros and cons of MongoDB (document-based), HBase (column-based) and Neo4j (objects graph)? I'm particularly interested to know some of the typical use cases for each one. What are good examples of problems that graphs can solve…
Chiron
  • 20,081
  • 17
  • 81
  • 133
26
votes
4 answers

Is there an easy GUI-based way to build graphs in neo4j?

Is there a GUI-builder for neo4j? I want to be able to quickly add new nodes, set labels, set properties and relationships all in a gui-environment by clicking on nodes in a visualisation. I have searched, but have found nothing. Thanks.
Zuriar
  • 11,096
  • 20
  • 57
  • 92
26
votes
2 answers

When to not use neo4j?

Neo4j is a great tool for mapping relational data, but I am curious what under what conditions it would not be a good tool to use. In which use cases would using neo4j be a bad idea?
Tim Ferrell
  • 1,348
  • 3
  • 17
  • 40