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
17
votes
2 answers

Is it possible to add a temporary property to a neo4j node for return only?

I have been using cypher and neo4j for a while now, and I keep running into a similar problem again and again. I would like to be able to add a "temporary" property to a node thats exists only in the returned data and is not persisted to the Neo4j…
Dalaigh88
  • 392
  • 3
  • 13
17
votes
3 answers

Why did Neo4j change it's name to Neo5j?

They just announced, they changed their name to Neo5j. I always thought that 4j meant for-Java. And as Neo4j is implemented in Java and Scala and the ~4j suffix has been highly popular (in the 90's) it never occurred to me that the 4j and now 5j is…
Michael Hunger
  • 41,339
  • 3
  • 57
  • 80
17
votes
3 answers

Changing the default Node label when viewing a graph from Browser

When you add a Node to Neo4j and you access your graph via the Neo4j Browser, the Node that was created is displayed (as a circle) and the Name property is outputted as the primary property for the Node. You can tell which Nodes are which by the…
LiveWithPassion
  • 407
  • 3
  • 6
  • 16
17
votes
3 answers

Best Open Source Visualization Software for Neo4J?

What is the best Open Source visualization software for Neo4J? By best, I mean: * Fully featured * Open Source * Still being developed/supported for latest Neo4J stable release * Interactive I've tried the data browser in Neo4J's web admin, but get…
Phil
  • 441
  • 1
  • 5
  • 5
17
votes
7 answers

neo4j find all nodes with matching properties

I have a relatively large set of nodes, and I want to find all pairs of nodes that have matching property values, but I don't know or care in advance what the property value is. This is basically an attempt to find duplicate nodes, but I can limit…
Paul
  • 35,689
  • 11
  • 93
  • 122
17
votes
4 answers

Use neo4j with R

Is there a R library that supports neo4j? I would like to construct a R graph (e.g. igraph) from neo4j or - vice versa - store a R graph in neo4j. More precisely, I am looking for something similar to bulbflow for Python. Update There is a new…
Martin Preusse
  • 9,151
  • 12
  • 48
  • 80
16
votes
6 answers

Neo4j and ORM (Hibernate)

I've been using RDBMSes since college and am really struggling with the underlying concepts of NoSQL databases...but I think their concept is really cool. I believe I understand the following (please correct me if I'm wrong, because these play into…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
16
votes
4 answers

In neo4j, how can I index by date and search in a date range?

In neo4j, how can I index by date and search in a date range. Also for times, I would like to search between 8am and 9am in a date range as well.
Phil
  • 46,436
  • 33
  • 110
  • 175
16
votes
3 answers

Storing multiple graphs in Neo4J

I have an application that stores relationship information in a MySQL table (contact_id, other_contact_id, strength, recorded_at). This is fine if all I need to do is show who a contact's relationships are or even to generate a list of mutual…
emh
  • 1,279
  • 3
  • 15
  • 26
16
votes
4 answers

Using MongoDB as our master database, should I use a separate graph database to implement relationships between entities?

We're currently in the process of implementing a CRM-like solution internally for a professional firm. Due to the nature of the information stored, and the varying values and keys for the information we decided to use a document storage database, as…
Mike Scott
  • 955
  • 1
  • 8
  • 15
16
votes
3 answers

How can I run cypher scripts on startup of a neo4j docker container?

Background I previously had neo4j installed on Windows and a PowerShell script to run some migrations. The DB is recreated every time from these migration scripts & some CSVs in the import folder. A .NET WebAPI talks to the neo4j db. Goal I decided…
SeanKilleen
  • 8,809
  • 17
  • 80
  • 133
16
votes
2 answers

How to embed neo4j browser result visualisation in web application

The neo4j browser, which can be accessed through http://neo4j:7474 (where neo4j is the neo4j host), is really great in visualising query results. As I understand, a javascript library is responsible for talking to the database backend at…
fiedl
  • 5,667
  • 4
  • 44
  • 57
16
votes
3 answers

How to install apoc for neo4j?

According to https://neo4j-contrib.github.io/neo4j-apoc-procedures/, one only needs to download the binary jar from http://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/3.1.0.3 to place into the folder "Neo4j CE 3.1.1\plugins". I did so.…
Aqqqq
  • 816
  • 2
  • 10
  • 27
16
votes
1 answer

Simple recursive CYPHER query

This is an extremely simple question, but reading through the docs for the first time, I can't figure out how to construct this query. Let's say I have a graph that looks like: and additionally each person has an age associated with them. What…
Hooked
  • 84,485
  • 43
  • 192
  • 261
16
votes
2 answers

Neo4j Traversal API vs. Cypher

When should I choose Neo4j’s traversal framework over Cypher? For example, for a friend-of-a-friend query I would write a Cypher query as follows: MATCH (p:Person {pid:'56'})-[:FRIEND*2..2]->(fof) WHERE NOT (p)-[:FRIEND]->(fof) RETURN fof.pid And…
Jay
  • 359
  • 2
  • 14