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

Conditional Relationship in Graph DB

How would a graph model handle a conditional relationship like: (Alice -[Dates]-> Bob) Where [Dates] exists IF and ONLY IF (Bob -[Owns]-> Ferrari) is true Besides just querying, I'm wondering whether the relationship be applied by the database…
Jonathon Anderson
  • 1,162
  • 1
  • 8
  • 24
4
votes
1 answer

Get node or relationship by ID in Neo4j embedded java

I looked at how I can easily get a Node by ID through cypher, yet the methods that are available for the Node interface do not appear to support a way to return a particular Node object based on ID. How can I return a particular node by ID with the…
WildBill
  • 9,143
  • 15
  • 63
  • 87
4
votes
2 answers

Should I use JRuby or Ruby for Rails with Neo4j.rb?

I'm using Neo4j.rb for Integrating Neo4j Graph database with Rails. Should I use JRuby or Ruby? What's the difference (any pros/cons) when using neo4j.rb with JRuby and Ruby? Some of the examples are telling to use JRuby and I'm able to execute the…
Raj Adroit
  • 3,828
  • 5
  • 31
  • 44
4
votes
1 answer

neo4j - difference between two sets in return statement

I have a schema like: Topics have posts and users write topics and posts. I would like to find recommended topics. In my example I return count(topics) and count(rec_topics). How is possible to return difference bewteen these sets? Like [1,2] - [1]…
user1657173
  • 231
  • 1
  • 2
  • 9
4
votes
3 answers

Coloring nodes in Neo4j depending on property

On the localhost page launched to use Neo4j, it is easy to color specific nodes in a different way. Following the movie example included in Neo4j; persons in red, movies in purple and with a click of the button change one to orange. As an expansion…
4
votes
2 answers

increasing JVM memory and neo4j on win8.1

I am running neo4j 2.1.7 on a windows 8.1 pro laptop. I have 16G of RAM, but I keep running out of heap memory. I have a large-ish database of maybe 250K nodes, but nothing close to what I am planning to run. I have set -Xmx to 1024m in…
rick.it.2004
  • 231
  • 4
  • 11
4
votes
1 answer

Inserting large graph data into Neo4j using py2neo WriteBatch

I have a graph represented by the following files: VertexLabel.txt -> each line contains properties for each vertex. EdgeLabel.txt -> each line contains properties for each edge. EdgeID.txt -> each line contains 3 separated integers which…
Aaron
  • 1,693
  • 4
  • 26
  • 40
4
votes
1 answer

Cypher: loop over properties and count

I have a lot of nodes, containing the property gender. Possible values for gender are: male, female and andy. I am looking for a cypher query, that will return the count of each value. For example... "male" 100 "female" 132 "andy" 12 The…
Thomas
  • 237
  • 4
  • 15
4
votes
1 answer

Http Post request resulted in end of stream

I'm facing this weird issue. I'm running my application and Neo4j server on the local machine. From the application, I'm making a POST request to begin a transaction in Neo4j (first line in the logs): 18/02 13:33:30 DEBUG (http.headers)…
Rahul
  • 637
  • 5
  • 16
4
votes
1 answer

AWS Elastic Beanstalk and Neo4j

I am new to web application development.I developed a web application(rest web service) that has both mysql and neo4j database. now I want to host it on the internet for a mobile app to consume.I was wandering if anyone could point me to steps i…
4
votes
2 answers

How to create billions of nodes in Neo4j?

I want to test the Neo4j performance with large number of nodes. I am thinking of creating billions of nodes and then want to see how much time it takes to fetch a node meeting some criteria. Like 1 billion nodes labeled Person having SSN property…
Mahtab Alam
  • 607
  • 2
  • 9
  • 22
4
votes
1 answer

The most appropriate way to use Neo4j from Python in 2015

I'm using latest community Neo4j (2.2.0-M03) for storing my graphs. I'm interested in accessing it from Python. According to the official Neo4j documentation, there are several alternatives. From what I have understood by checking the docs, playing…
redsk
  • 261
  • 6
  • 11
4
votes
1 answer

Neo4j string or text data types

Trying to work with strings. Can't find any specs about this data types. What is the max length os String in Neo4j? If the limit is 256, is there a larger type, like Text?
LDB
  • 692
  • 6
  • 18
4
votes
2 answers

How to implement a bidirectional relationship in Spring Data Neo4j?

I am modelling a very simple use case, using Spring Data Neo4j: I want to have Persons, which are connected by friendship relations. Here is my code (getters and setters are omitted here): @NodeEntity public class Person { @GraphId private…
manu
  • 43
  • 4
4
votes
3 answers

How to add to an existing value in a map in Cypher?

I want to replace the value of the 'Amount' key in a map (literal) with the sum of the existing 'Amount' value plus the new 'Amount' value such where both the 'type' and 'Price' match. The structure I have so far is: WITH [{type:1,…
whitfa
  • 117
  • 8