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
1 answer

Spring Data Neo4j not populating RelationshipEntity

I am creating enties and RelationshipEntitys that point between them. I place the RelationshipEntitys within an entity and then save the entity. This also saves the RelationshipEntity automatically. I know the relationship has saved as I then…
Rob McFeely
  • 2,823
  • 8
  • 33
  • 50
4
votes
2 answers

neo4j cypher single vs multiple labels performance

Consider the following example: a neo4j based wiki with lots of articles and much, much more article versions (the history of all edits). How much of a difference does using multiple labels to identify each…
Sovos
  • 3,330
  • 7
  • 25
  • 36
4
votes
1 answer

Can Neo4j Cypher query do similar thing as "Having" in SQL?

SQL has "Having" clause, for example: SELECT LastName, COUNT(*) FROM Employees GROUP BY LastName HAVING COUNT(*) > 10; In Cypher, we can do count() START n=node(2) MATCH (n)-[r]->() RETURN type(r), count(*) But does Cypher have similar function…
William Zhang
  • 125
  • 3
  • 9
4
votes
1 answer

Neo4j 2.0 Cypher Query - CREATE within a FOREACH

I want to replace a relationship, if it exists, with a new node and two new relationships. The query below tests if the relationship exists but it fails on the new node creation. The CREATE syntax works on its own but not nested within the FOREACH…
rorymadden
  • 954
  • 3
  • 10
  • 20
4
votes
1 answer

Play Framework WS: Returning JSON data as Int

i was trying out the code from this site (with a little modification) and i ran into a problem returning the result as an Int. class NeoService(rootUrl: String) { def this() = this("http://default/neo/URL/location/db/data") val stdHeaders…
ameernuri
  • 305
  • 4
  • 12
4
votes
1 answer

How to visualize a neo4j graph

I want to visualize a neo4j embedded graph within my JAVA application. I have read the Max De Marzi's Graph Visualization Blog but I could not find anything in JAVA but only ruby and C++ May you help me to find a guide to install something easy to…
QGA
  • 3,114
  • 7
  • 39
  • 62
4
votes
4 answers

Optional MATCH with property (and label ?)

I'm trying to build this model in Neo4j http://blog.neo4j.org/2012/02/modeling-multilevel-index-in-neoj4.html Now i need a query to find out if a timeline path already exist. The problem is that i can't seem to make a node optional and at the same…
Flip
  • 4,778
  • 1
  • 34
  • 48
4
votes
1 answer

Spring with Neo4j, GraphRepository vs handmade interface

I found out that there is an interface called GraphRepository. I have a repository for users implementing a homemade interface that does its job, but I was wondering, shouldn't I implement GraphRepository instead ? Even if it will be quite long to…
user2137101
4
votes
1 answer

Cypher Return Node with MAX(n.property)

With Cypher, I'm trying to return the node of the highest score. However it either just returns the score without any id to the node, what do I need to add to my query? start n=node(*) WHERE HAS(n.score) return MAX(n.score);
CoffeeCoder
  • 103
  • 2
  • 11
4
votes
1 answer

neomodel: how to share index across StructuredNode Objects

how is it possible in neomodel to share a unique index across node objects, without instantiating separate objects to just hold the indexed data? I'd like to find the object based on a index query, e.g like this: ... mynode =…
bebbi
  • 2,489
  • 3
  • 22
  • 36
4
votes
0 answers

Neo4j - Exception when writing on slaves in HA mode

i'm experiencing some troubles with Neo4j 1.9.1 in HA mode. At the moment, the messages.log in graph.db directory has a lot of errors like these : 2013-07-12 12:08:26.323+0000 ERROR [o.n.k.h.c.m.MasterServer]: Error handling…
Gouffe
  • 161
  • 1
  • 10
4
votes
2 answers

Viewing the query in an embedded Neo4j database

I want to see the query being executed by the embedded Neo4j database using spring data in a JUnit test. How would I go about doing this?
user1325194
  • 175
  • 2
  • 3
  • 12
4
votes
2 answers

What are the Cypher commands to delete index and index entry

If I use the default Lucene index engine, what is the Cypher command to delete an index? and what is the Cypher command to delete an index entry within a specific index?
William Zhang
  • 125
  • 3
  • 9
4
votes
1 answer

Using Neo4j embedded in Java for a remote DB

was wondering if I can use the Neo4j Java API for connecting to remote DBs or is REST the only way for me to access a remote DB ? Was looking to use something like GraphDatabaseService graphDb = new…
sharath
  • 3,501
  • 9
  • 47
  • 72
4
votes
1 answer

REST interface implementation for exposing Neo4j nodes

I'm representing my nodes as domain entities. I'd like to expose my nodes via a REST interface using GET to query by id, POST to save a node with its related nodes and PUT to update a node and its related nodes. GET is working just fine, but I'm…
tstorms
  • 4,941
  • 1
  • 25
  • 47