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
6
votes
3 answers

Does it make sense to use neo4j to index a file system

I am working on a Java based backup client that scans for files on the file system and populates a Sqlite database with the directories and file names that it find to backup. Would it make sense to use neo4j instead of sqlite? Will it be more…
Hannes de Jager
  • 2,903
  • 6
  • 37
  • 57
6
votes
2 answers

Passing dynamic value inside sample method in gremlin is not working

I am a newbie to the gremlin. I am trying to get some random vertices based on some condition. But if I am using sample method with some mathematical computation it is not working. But if I give integer values it is working fine. The following query…
rajashekar
  • 609
  • 5
  • 19
6
votes
1 answer

Querying by node labels vs relationships

I have a use case where I need to classify people's trajectories within a big room. In terms of performance and best Neo4j practices, what option would be better if I want to classify this data to later be able to search/fetch using any type…
Lionel Cichero
  • 553
  • 4
  • 17
6
votes
1 answer

Can you partition a graph database? If so, how?

I know that databases in general can scale horizontally using master/slave replication. This is a great strategy when the number of concurrent reads is growing. As the number of concurrent writes or just the amount of data starts to grow, though,…
Aseem Kishore
  • 10,404
  • 10
  • 51
  • 56
6
votes
1 answer

How to use a Gun Server as a relay only?

Is there a way to setup the GUN-server as a relay only? In other words, is there a way to ensure data is shared peer-to-peer only? The server only acts a signal (STUN like) server. In the few tests I've done I can't seem to see the data go P2P,…
Jbjet777
  • 61
  • 3
6
votes
1 answer

JanusGraph : Please add a key named "ConfigurationManagementGraph" to the "graphs"

I get the this error in gremlin console cegprakash@cegprakash:~/workspace/janusgraph-0.2.1-hadoop2$ ./bin/gremlin.sh \,,,/ (o o) -----oOOo-(3)-oOOo----- plugin activated: janusgraph.imports plugin activated:…
cegprakash
  • 2,937
  • 33
  • 60
6
votes
2 answers

Cosmos Db Graph - Performance and throughput of Gremlin.Net vs Microsoft.Graph

As I'm learning how to use graph with Cosmos DB, I found two Microsoft tutorials: One using Gremlin.Net The other using Microsoft.Azure.Graph pre-release While I use the same query, its execution differs. Using Gremlin.Net, it executes at once. I…
François
  • 3,164
  • 25
  • 58
6
votes
1 answer

How to merge nodes that have the same value for name property in Neo4j

I just push text corpus into Neo4j database. When I execute MATCH (n) RETURN n Cypher query, it returns multiple nodes with the same name. how can I merge these nodes as one? nodes having same name
AkhilTC
  • 71
  • 1
  • 3
6
votes
1 answer

Which backend database Neo4j uses to store data?

I have worked on titan. I came to know that titan can take three databases as it's back-end. Now I am learning Neo4j. But, I am not getting just like titan uses Cassandra etc. at it's back-end; which database Neo4j uses at it's back-end. Or there is…
Akshay Gaikwad
  • 420
  • 6
  • 13
6
votes
1 answer

storing a vertex as JSON in CosmosDB

All the examples I've seen using the gremlin API to query a CosmosDB graph use vertices that have one level of properties. But what if we want represent our vertices as JSON documents? user.name = "Mike" user.location.lat =…
mikestaub
  • 2,134
  • 4
  • 24
  • 34
6
votes
2 answers

How to add unique data to a neo4j graph database

I am adding iteratively data to my neo4j database but I am stuck with how to overwrite or update existing data and to check whether the data does not already exist in there. Basically I have a set of movies with their corresponding id's, e.g.: [ …
WJA
  • 6,676
  • 16
  • 85
  • 152
6
votes
1 answer

ArangoDB: Insert as function of query by example

Part of my graph is constructed using a giant join between two large collections, and I run it every time I add documents to either collection. The query is based on an older post. FOR fromItem IN fromCollection FOR toItem IN toCollection …
Nate Gardner
  • 1,577
  • 1
  • 16
  • 37
6
votes
1 answer

ArangoDB: Aggregating counts via graph traversal

In my ArangoDB graph, I have a subject, message threads associated with that subject, and messages inside those message threads. I would like to traverse the graph in such a way that I return the data associated with the message thread as well as…
Nate Gardner
  • 1,577
  • 1
  • 16
  • 37
6
votes
4 answers

Combining a Graph Database and an RDBMS

Is it bad design / difficult to implement two or more databases for an application? For instance, let's say I have User objects which I would like to store into a relational database. These 'User' objects have relationships with one another and have…
Jake Miller
  • 2,432
  • 2
  • 24
  • 39
6
votes
2 answers

Why do I get a "Cartesian Product" warning?

I am still trying to understand why I get a cartesian product warning for a certain format for a query in neo4j and not for another. This is how I set up my database: CREATE (q:Form {version: "1.0"}) CREATE (q:Question {text: "Sector de la…
Aly
  • 241
  • 2
  • 11