Questions tagged [graph-databases]

A graph database uses graph structures with nodes, edges, and properties to represent and store information.

A graph database stores nodes and relationships instead of tables, or documents. Data is stored just like you might sketch ideas on a whiteboard. Your data is stored without restricting it to a pre-defined model, allowing a very flexible way of thinking about and using it.

Popular graph database providers

Books

Articles

2926 questions
8
votes
1 answer

Microservices: decomposing a graph db based application

I'm planning to decompose an application I started to build as a monolith with a graph database into microservices. But the dilema i'm facing is trying to find a proper solution to split the different services and not loosing the benefits provided…
saljuama
  • 2,906
  • 1
  • 20
  • 42
8
votes
2 answers

How to embed a neo4j graph in another site?

Background I've been using neo4j to query a fairly large (but ultimately uncomplicated) dataset. I'm writing cypher directly into the web interface and keeping a track of my queries in a text file (old-skool). Problem I love the results I'm getting…
8
votes
1 answer

How is a graph database different to a graph represented in a relational database?

I can represent a graph trivially in a relational database with two tables: vertex and edge. Richer structure like "properties" and "labels" (in Neo4j terminology) can be represented as more tables. Have I misunderstood, or does a graph database…
jameshfisher
  • 34,029
  • 31
  • 121
  • 167
8
votes
1 answer

How to Create Nodes in RNeo4j using Vectors or Dataframes

The popular graph database Neo4j can be used within R thanks to the package/driver RNeo4j (https://github.com/nicolewhite/Rneo4j). The package author, @NicoleWhite, provides several great examples of its usage on GitHub. Unfortunately for me, the…
Hack-R
  • 22,422
  • 14
  • 75
  • 131
8
votes
2 answers

Domain Driven Design alongside Graph database

I've been searching online for any information relating to using both Domain Driven Design and Graph databases such as Neo4j, I've got to say there's not a lot of information to be had! My main queries come in with the apparent overlap between the…
raven-king
  • 1,550
  • 2
  • 18
  • 40
8
votes
1 answer

Storing data as an array/list on neo4j property

I am fairly new to Neo4j and have the following problem at hand. I am trying to develop a social networking site wherein I would like to store the message exchanged between two users on their relationship property. For this, I am trying to store all…
ayan_2587
  • 833
  • 2
  • 11
  • 21
8
votes
2 answers

Best practice for storing a neural network in a database

I am developing an application that uses a neural network. Currently I am looking at either trying to put it into a relational database based on SQL (probably SQL server) or a graph database. From a performance viewpoint, the neural net will be very…
ose
  • 4,065
  • 2
  • 24
  • 40
8
votes
4 answers

What is the right way to find an edge between two vertices?

Using tinkerpop blueprints API, what is the best way to find if an edge exists between two vertices? I would like to avoid vertex.getEdges() and iterate until find the right one. E.g.: Check if v1 is friend of v2 Vertex v1 =…
Luccas
  • 4,078
  • 6
  • 42
  • 72
8
votes
3 answers

neo4j - graph database along with a relational database?

this is a question on best practice, i understand that there are a lot of different options for doing this, but i would like your opinions as to how you would approach solving this problem. Please take it as though performance is critical in this…
mur
  • 879
  • 1
  • 13
  • 26
7
votes
1 answer

Calculating a user's importance or 'Betweenness Centrality' from a user's followers?

I want to know how I can find interesting relationships between users accounts such as the most connected, or most valuable users based on their connections to others. Below I have the two tables I use. One has all the users, the other has the keys…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
7
votes
5 answers

Get the id + the map of a vertex on Gremlin?

g.v(1).id gives me vertex 1 id, g.v(1).map gives me vertex 1 properties. But, how can I get a hash with id and propeties at the same time
michaelSc
  • 91
  • 1
  • 1
  • 6
7
votes
1 answer

How could I write this queries in neo4j?

I'm very new to neo4j and to graph database in general. I'm prototyping an app, and I don't know how should i write these queries I've this domain: User Restaurant Review TypeOfFood So a Restarurant have one or many TypeOfFood, the User leaves…
NicoGranelli
  • 670
  • 7
  • 14
7
votes
4 answers

Groupings of queries

I would like to understand what might be the highest-level groupings of how query languages can be broken up into, and why one grouping might be fundamentally different than another. For example, the groupings that I have come up with now (for…
David542
  • 104,438
  • 178
  • 489
  • 842
7
votes
1 answer

Gremlin Javascript Traversal Never Resolves

I'm trying to use the gremlin npm module and connect to a Neptune database. During testing, I tried having gremlin connect to an inactive endpoint and invalid url to make the system more resilient. I expected some sort of error to be thrown.…
7
votes
1 answer

Update action [REINDEX] cannot be invoked for index with status [INSTALLED]

I am following this blog: https://developer.ibm.com/dwblog/2018/janusgraph-composite-mixed-indexes-traversals/ code: gremlin> graph.tx().rollback() ==>null gremlin> mgmt =…
Arayan Singh
  • 3,192
  • 3
  • 16
  • 35