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
136
votes
7 answers

What are the use cases of Graph-based Databases (http://neo4j.org/)?

I have used Relational DB's a lot and decided to venture out on other types available. This particular product looks good and promising: http://neo4j.org/ Has anyone used graph-based databases? What are the pros and cons from a usability…
Khangharoth
  • 1,701
  • 2
  • 11
  • 8
124
votes
9 answers

Neo4j - Cypher vs Gremlin query language

I'm starting to develop with Neo4j using the REST API. I saw that there are two options for performing complex queries - Cypher (Neo4j's query language) and Gremlin (the general purpose graph query/traversal language). Here's what I want to know -…
Rubinsh
  • 4,883
  • 10
  • 34
  • 41
112
votes
10 answers

How to reset / clear / delete neo4j database?

We can delete all nodes and relationships by following query. MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r But newly created node get internal id as ({last node internal id} + 1) . It doesn't reset to zero. How can we reset neo4j database such as…
Somnath Muluk
  • 55,015
  • 38
  • 216
  • 226
110
votes
4 answers

Neo4J get node by ID

I am using neo4j for one of my project, there's a node which only has a single property as name, I want to get that node using ID, it already has a ID but when I use this code MATCH (s:SKILLS{ID:65110}) return s It returns nothing, heres my node If…
Niraj Chauhan
  • 7,677
  • 12
  • 46
  • 78
108
votes
14 answers

How to delete/create databases in Neo4j?

Is it possible to create/delete different databases in the graph database Neo4j like in MySQL? Or, at least, how to delete all nodes and relationships of an existing graph to get a clean setup for tests, e.g., using shell commands similar to rmrel…
rmv
  • 3,195
  • 4
  • 26
  • 29
108
votes
7 answers

Return node if relationship is not present

I'm trying to create a query using cypher that will "Find" missing ingredients that a chef might have, My graph is set up like so: (ingredient_value)-[:is_part_of]->(ingredient) (ingredient) would have a key/value of name="dye colors". …
Nicholas
  • 7,403
  • 10
  • 48
  • 76
101
votes
7 answers

Delete all nodes and relationships in neo4j 1.8

I know this question is asked by many people already for my research, here's some questions asked before How to delete all relationships in neo4j graph? https://groups.google.com/forum/#!topic/neo4j/lgIaESPgUgE But after all, still can't solve our…
Huei Tan
  • 2,237
  • 3
  • 23
  • 34
79
votes
10 answers

How to increase Neo4j's maximum file open limit (ulimit) in Ubuntu?

Currently ulimit -n shows 10000. I want to increase it to 40000. I've edited "/etc/sysctl.conf" and put fs.file-max=40000. I've also edited /etc/security/limits.conf and updated hard and soft values. But still ulimit shows 10000. After making all…
theharshest
  • 7,767
  • 11
  • 41
  • 51
78
votes
2 answers

Graph Databases vs Triple Stores - when to use which?

I know that there are similar questions around on Stackoverflow but I don't feel they answer the following. Graph Databases to my understanding store data following mostly this schema: Table/Collection 1: store nodes with UID Table/Collection 2:…
B M
  • 3,893
  • 3
  • 33
  • 47
77
votes
8 answers

neo4j how to return all node labels with Cypher?

I can't find how to return a node labels with Cypher. Anybody knows the syntax for this operation?
Sovos
  • 3,330
  • 7
  • 25
  • 36
65
votes
4 answers

LIKE clause in CYPHER Query

It appears that LIKE is not supported in Cypher queries. Is there any other construct that would perform the same task? For instance: start n = node(*) where n.Name LIKE('%SUBSTRING%') return n.Name, n;
johnc
  • 39,385
  • 37
  • 101
  • 139
64
votes
8 answers

Neo4j: Match multiple labels (2 or more)

I would like to do a search, and I would like to start traversing from 2 labels (OR condition). For example, I need to find out all the nodes which have labels either 'Male' or 'Female' and whose property, name =~ '.ail.'.
gaurav.singharoy
  • 3,751
  • 4
  • 22
  • 25
63
votes
2 answers

anybody tried neo4j vs titan - pros and cons

Can anybody please provide or point out to a good comparison between Neo4j and Titan? One thing i can see is in terms of scale - Titan is scaleout and requires an underlying scalable datastore like cassandra. Neo4j is only for HA and has its own…
DevD
  • 1,201
  • 2
  • 12
  • 20
56
votes
5 answers

Node identifiers in neo4j

I'm new to Neo4j - just started playing with it yesterday evening. I've notice all nodes are identified by an auto-incremented integer that is generated during node creation - is this always the case? My dataset has natural string keys so I'd like…
Jonathan Williamson
  • 1,189
  • 2
  • 10
  • 17
56
votes
1 answer

Add label to existing node with Cypher

How can I add a label to an existing node using a Cypher query?
cheesetaco
  • 721
  • 1
  • 6
  • 11
1
2 3
99 100