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

Create node with label using Neo4jClient in f#

I am trying to create a node and also assign a label to that node. Following the instructions in Using Neo4j Graph DB With F#, I managed to create the Person nodes, but I could not create a label Person for the node created. Is my use of the create…
cgio
  • 53
  • 3
4
votes
1 answer

Cypher query in py2neo

How do I perform the functions of shortestPath() and allShortestPaths() in py2neo? In Cypher, I'd execute something like: START beginning=node(4), end=node(452) MATCH p = shortestPath(beginning-[*..500]-end) RETURN p I've tried what I thought was…
jvc26
  • 6,363
  • 6
  • 46
  • 75
4
votes
1 answer

Optimizing high volume batch inserts into Neo4j using REST

I need to insert a huge amount of nodes with relationships between them into Neo4j via REST API's Batch endpoint, approx 5k records/s (still increasing). This will be continuous insertion 24x7. Each record may require creating one node only, but…
GoSkyLine
  • 43
  • 1
  • 5
4
votes
0 answers

Neo4j 2.0: advanced queries on label-based indexes possible?

Neo4j's legacy indexes offer functionality like doing Lucene queries on them, or indexing arbitrary key/value pairs. For example, if my User node looks like this: (me { FirstName: 'John', LastName: 'Doe'}), I can put this user in a legacy index with…
Jan Van den bosch
  • 3,542
  • 3
  • 26
  • 38
4
votes
3 answers

Import RDF (XML or Turtle) into Neo4j

i downloaded the Database dump of Freebase. The format of the file is rdf turtle. I need to get all the data into the neo4j database. I already wrote an importer with help of tinkerpop.blueprints. First it seemed to work but after 30 minutes of…
Mulgard
  • 9,877
  • 34
  • 129
  • 232
4
votes
1 answer

Neo4j increasing latency as SKIP increases on Cypher query + REST API

My setup: Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) Neo4j 2.0.0-M06 Enterprise First I made sure I warmed up the cache by executing the following: START n=node(*) RETURN…
voldomazta
  • 1,300
  • 1
  • 10
  • 19
4
votes
1 answer

adding Spatial plugin to neo4j server

I am having troubles with installing spatial plugin into neo4j server. I am using neo4j 1.9.4 for Windows platform and spatial plugin from: http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-spatial/0.11-neo4j-1.9/ which I have in…
Taras Shchybovyk
  • 416
  • 4
  • 17
4
votes
1 answer

Neo4j 2.0: SKIP, LIMIT, ORDER all results returned by UNION?

I've got three queries that are combined with a UNION clause: CYPHER 2.0 START user=node:User(Id="2") MATCH (user)-[:FOLLOWS_USER]->()-[:SHARES]->(post)-[?:ORIGINAL]->(original) WHERE original is null RETURN distinct post.Id AS Id,…
Jan Van den bosch
  • 3,542
  • 3
  • 26
  • 38
4
votes
1 answer

Longest shortest path between any two nodes of a graph

I am trying to find two nodes that are furthest from each other in my Neo4j Database. For the purposes of my analysis, I am considering shortest distance between the two nodes as the distance between them. Therefore, the two nodes that are furthest…
Anshul
  • 211
  • 2
  • 12
4
votes
2 answers

Neo4j Cypher query: order collection, take first n elements

I'm having trouble writing a Cypher query for this social networking type of application. It involves users that add posts (essentially an image with a description), which users can review. In Cypher the graph model is…
Jan Van den bosch
  • 3,542
  • 3
  • 26
  • 38
4
votes
3 answers

how to import data from sql to neo4j

I have developed a .net project which has a SQL database. I want to know is there any way, that I can import my SQL DB file into the neo4j database directly?
user862226
  • 129
  • 2
  • 8
4
votes
1 answer

Bulbflow – How to save list/dictionary as property

I am using Bulbflow to access Neo4j through python. I'm now trying to save a python list as a node property, but am consistently running into errors. From the documentation, I can see that lists are an accepted type when defined in models, but I'd…
zanbri
  • 5,958
  • 2
  • 31
  • 41
4
votes
3 answers

Neo4j : Retrieving All Nodes and Relationship connected to a Node in Neo4j Rest OR through Cypher

I want to Retrieve all nodes and relationship connected to a node. I Tried to do this in two ways: 1st Through Neo4j REST API i Tried this URI traverserUri = new URI( startNode.toString() + "/traverse/node" ); WebResource resource =…
Shiv
  • 4,569
  • 4
  • 25
  • 39
4
votes
1 answer

Return value after deleting node or relationship in neo4j

I have experienced that when I delete some node (which may have relationships) or relationship in neo4j using cypher query, it do not give anything in return like in mysql db. is there any way which can give the confirmation about the number of…
Aman Gupta
  • 5,548
  • 10
  • 52
  • 88
4
votes
1 answer

Neo4j Cypher Query include start node

I want to list all movies that I act in and the sum of actors in each movie, but the query below only returns the sum of actors apart from me and will not return movie which without other actors. start me=node({0}) match…
gozizibj
  • 285
  • 1
  • 5
  • 23