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

Hype around graph databases... why?

There is some hype around graph databases. I'm wondering why. What are the possible problems that one can be confronted with in today's web environment that can be solved using graph databases? And are graph databases suitable for classical…
amirouche
  • 7,682
  • 6
  • 40
  • 94
20
votes
3 answers

ORM with Graph-Databases like Neo4j in Python

i wonder wether there is a solution (or a need for) an ORM with Graph-Database (f.e. Neo4j). I'm tracking relationships (A is related to B which is related to A via C etc., thus constructing a large graph) of entities (including additional…
dorvak
  • 9,219
  • 4
  • 34
  • 43
20
votes
1 answer

How to Model Real-World Relationships in a Graph Database (like Neo4j)?

I have a general question about modeling in a graph database that I just can't seem to wrap my head around. How do you model this type of relationship: "Newton invented Calculus"? In a simple graph, you could model it like this: Newton (node) ->…
Lance
  • 75,200
  • 93
  • 289
  • 503
20
votes
2 answers

Populating a spring bean using a constructor-arg field

How can i inject a properties file containing a Map to be used as additional constructor arg using the field. With a Map being loaded from a properties file the bean is currently setup using:
patrick-fitzgerald
  • 2,561
  • 3
  • 35
  • 49
20
votes
2 answers

Is there any .NET binding for Neo4J?

Is there a .NET version/binding for Neo4j? It looks like exactly what I want, but I'm working in C# on .NET. Thanks
Greg
  • 34,042
  • 79
  • 253
  • 454
20
votes
6 answers

Using MongoDB and Neo4j together

I am starting a new project and I am looking at using MongoDB as the document storage facility and Neo4j as the mechanism to map relationships between documents and then I want to expose the results of my queries via rest API. What would one say are…
Mike Barnes
  • 4,217
  • 18
  • 40
  • 64
20
votes
4 answers

Is D3.js the right choice for real-time visualization of Neo4j Graph DB data

I am a CS Research student at UW, and my group is at the point of trying to visualize specific network traffic that is put into a neo4j graph DB in real time. I have read about many different tools such as gephi, cytoscape, rickshaw (based on…
20
votes
4 answers

How do I rename relationships in Neo4j?

I realized only after importing a ton of nodes that I had created relationships called START, which is a reserved keyword. Querying the DB through the Cypher console hence always complains about the reserved keywords: SyntaxException: reserved…
ulkas
  • 5,748
  • 5
  • 33
  • 47
19
votes
1 answer

What are the implications of of SSD usage on fundamental database assumptions?

SSDs are commonplace now; Amazon EBS is backed by SSDs, and hence most of the cloud databases now also run on SSDs (Heroku PostgreSQL, etc.). Databases and related architectures were traditionally designed with the idea the random access is bad -…
EugeneMi
  • 3,475
  • 3
  • 38
  • 57
19
votes
4 answers

Convert Neo4j DB to XML?

Can I convert Neo4J Database files to XML?
unj2
  • 52,135
  • 87
  • 247
  • 375
19
votes
2 answers

Neo4j Cypher, START n=node(id) over MATCH id(n)=id

I was wondering how WHERE id(n) = id compares to START n = node(id) as most of the time I do not select nodes by id (at least in number of code appearances) and therefore like to do it always in the match
Sovos
  • 3,330
  • 7
  • 25
  • 36
19
votes
6 answers

How to execute Cypher in a file?

I am working on windows. I have created a text file of Cypher query using notepad. How can I run the query in the file using Neo4jShell or Neo4j web interface console.
Dinesh
  • 1,825
  • 5
  • 31
  • 40
19
votes
3 answers

In Cypher, how can I create a relationship if it doesn't exist; update property if it does

In Cypher in Neo4J, given two nodes, if there's no relationship between them, I'd like to create a relationship (of type Foo) with a weight property of one. If this relationship already exists, I'd like to increment its weight property. Is there a…
Newtang
  • 6,414
  • 10
  • 49
  • 70
18
votes
3 answers

How can I get the number of nodes of a Neo4j graph database from Python?

I'm trying to get the number of nodes of a Neo4j graph database using Python, but I don't find any method or property to do that. Does anybody how can I get this information? Other Python packages like NetworkX has a method to get this…
Marc Pou
  • 649
  • 2
  • 7
  • 20
18
votes
2 answers

Why Neo4J docker authentication doesn't work

I want to run a Neo4J instance through docker using a docker-compose. docker-compose.yml version: '3' services: neo4j: container_name: neo4j-lab image: neo4j:latest environment: - NEO4J_dbms_memory_pagecache_size=2G -…
Dralucas
  • 229
  • 2
  • 6