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

neo4j.rb check relation already exists between two nodes

I Need to check relation between two nodes exists already. brian.following << chris brian.following #=> chris I Need to check like this brian.following?(chris) #=> true brian.following?(john) #=> false Any method is there in neo4j.rb for this? if…
Raj Adroit
  • 3,828
  • 5
  • 31
  • 44
1
vote
2 answers

ArangoDB REST Traversal return invalid startVertex

I've been trying to do some simple traversal in python using the REST API: import requests url = "http://localhost:8529/_api/traversal" d = { "startVertex": 'V/62824208658', "graphName" : "G", "direction" : "outbound"} r = requests.post(url, data =…
tariqdaouda
  • 2,506
  • 2
  • 13
  • 14
1
vote
1 answer

Difference between Graph Triples and EAV

Recently I've started to play with cayley and ArangoDB for their graph datastores. While reading and watching videos about graph databases a question popped up into my mind: what makes a graph database so different (and "awesome") from a typical…
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
1
vote
1 answer

Gremlin simplePath() not working in a loop

I'm trying to write a DAG traversal accounting for the possibility that the there actually might be cycles (bad data, etc.). So on the toy graph: gg = TinkerGraphFactory.createTinkerGraph() gg.v(2).addEdge('knows',…
StasM
  • 10,593
  • 6
  • 56
  • 103
1
vote
1 answer

Timeouts on traversing from node with millions of edges

I have a graph that has some nodes with millions of incident edges, using Titan 0.5.2 on top of Cassandra DB. E.g. this reproduces such graph: mgmt = g.getManagementSystem() vidp =…
StasM
  • 10,593
  • 6
  • 56
  • 103
1
vote
1 answer

Neo4j 2.1.6 Hello World in NetBeans maven project

My configuration is : * OS : Windows 8 * Neo4j community 2.1.6 (latest stable) * IDE : NetBeans 8.0.2 (latest) * java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b18) Java HotSpot(TM) 64-Bit Server VM (build…
ARMBouhali
  • 300
  • 2
  • 12
1
vote
0 answers

Which database to use for highly-connected data model with frequent schema changes?

I am currently working on a project, where we use web mining (web crawlers) to build up a company database. At the moment we employ PostgreSQL as our main database, however, I feel it will cause a lot of problems in the future, because as our…
Erik
  • 11,944
  • 18
  • 87
  • 126
1
vote
1 answer

Return one result per person in neo4j

Assuming I have this graph in neo4j: CREATE (a:Person {name: "Person A"}) CREATE (b:Person {name: "Person B"}) CREATE (r1:TestA {result: 1}) CREATE (r2:TestA {result: 2}) CREATE (r3:TestA {result: 3}) CREATE (r4:TestA {result: 3}) CREATE…
Sebastian
  • 45
  • 4
1
vote
1 answer

How can I use cypher query to return the count of all the elements in one array?

How can I count all the elements in one array with Neo4j cypher query? For example, if I have a relationship like (a)-[:REL{type:[‘A’,’B’]}]->(b) What’s the cypher query that I need to obtain the count of the elements of the attribute type? I…
davide.ferrari
  • 221
  • 2
  • 10
1
vote
0 answers

Cypher Relationship Type returning no results

I'm getting some unexpected results when trying to define the type of a relationship in a Cypher Query. My model consists of Action nodes which are related to an ActionType node via an :OCCURRENCE_OF relationship. Here is a sample create…
1
vote
1 answer

Update property value in Neo4j on import

I have the following code for importing data in CSV. The data is of the form A-[:LIKES {times: x}]-B where x is a number. However when importing, I am stuck on how to update the value of times if the relationship is found again. There seems to be a…
GvanJoic
  • 213
  • 2
  • 14
1
vote
1 answer

How to add infinity, NaN, or null values to a double[] property on a node in Cypher/Neo4j

I have some nodes in my neo4j graph that are a combination of multiple entities. On these nodes I have a property named "p_value" that has a type of double[]. I'm merging new entities into existing nodes and with my merge command I'm using on match…
AFK
  • 4,333
  • 4
  • 23
  • 22
1
vote
1 answer

How to use @rid in OrientDB?

I'm new to OrientDB. I would like to use the functionalities of OrientDB, however, my mind is a little bit confused with the usage of @rid function. I have read the web documentation of the application and group discussions, and I am trying to…
Yilmazerhakan
  • 1,765
  • 1
  • 13
  • 21
1
vote
1 answer

Embedded neo4j server and web admin at the same time

I followed the instructions at the following links, however, when I run my program and go to http://localhost:7474/ the webpage of the web admin is not available. How to connect to a locally installed neo4j server using Java Neo4j Hello World…
user2360448
  • 63
  • 2
  • 5
1
vote
2 answers

How to decide whether to create a node or a property in Neo4j

I'm having few Nodes. lets say User 1,User 2,User 3. if i want to mention the college of users, which of the following approach gives us better performance. 1: Creating College as node (or) 2: just keeping college name as property in…
Pavan Kumar Varma
  • 1,413
  • 1
  • 14
  • 22
1 2 3
99
100