Questions tagged [tinkerpop]

Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP).

Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP). Graph systems that are TinkerPop-enabled, allow users to the ability to utilize the various aspects of the TinkerPop stack in development of vendor-agnostic graph applications. The key component to the TinkerPop stack is the Gremlin, a graph traversal language, which allows users to query and manage a graph.

974 questions
3
votes
1 answer

Tinkerpop/Gremlin Breadth first traversal

I'm trying to traverse a graph to trace the lineage of a specific node. I would like my query to yield the antecedents to that node in a breadth first pattern. Note, each node can have multiple parents. The Graph can be many layers deep and I'd like…
veekay33210
  • 141
  • 4
3
votes
1 answer

min() of Date properties in JanusGraph

In JanusGraph, I want to get min() of some Date properties. Since both min() and max() supports only Number type, I use map{it.get().getTime()}. But strange result. How to do it ? JanusGraph version: github master (build at about 2 weeks…
takaomag
  • 1,545
  • 1
  • 16
  • 26
3
votes
2 answers

Remote Gremlin Server graph mutation with Java / Scala

I am trying to get modify vertices on a remote Gremlin Server using a traversal but it seems that only in the traversal in which a vertex is created I can also add properties, when starting a new traversal I properties are not added. Scala/Java…
user3508638
  • 195
  • 1
  • 7
3
votes
1 answer

Get all the actors that played in a movie that all my friends liked

I am playing with TinkerPop and I am getting my head stuck around this problem : I would like to find all the actors from the movies that ALL my friends liked (in other words, find the common movies that my friends liked and get the name of all the…
Louis F.
  • 2,018
  • 19
  • 22
3
votes
1 answer

What is the syntax to sequence statements in Gremlin?

Within the Gremlin language (a Groovy child) I'm a little confused by the behavior and uses of ;, &&. For example, in GremlinClient REPL (running Titan 1.0 here) I might desire to add a few nodes at once: gremlin> graph =…
Thomas M. DuBuisson
  • 64,245
  • 7
  • 109
  • 166
3
votes
1 answer

How to query Titan Graph Database from iOS App

If I set up a graph-database with an AWS DynamoDB backend using the Titan plug-in, how do I then actually send queries to the database and return values? From this Diagram that I found here, it looks like the TinkerPop API can be used to send these…
user3053470
  • 241
  • 4
  • 9
3
votes
1 answer

DSE Graph with Java Driver, how to build a graph using Tinkerpop/Gremlin APIs like in Titan?

I have an application which currently relies on tinkerpop & titan. I would like to assess Graph features provided by DSE 5.0 but I did not find any way to instantiate a tinkerpop Graph using DSE Graph java API. For titan, I used the tinkerpop…
3
votes
1 answer

Titan index update takes too long

Even on an empty database, creating an index in Titan 1.0 takes several minutes. The time seems exact, which suggests there is an unnecessary delay. My question is this: How to I shorten or eliminate the amount of time Titan takes to reindex? …
Thomas M. DuBuisson
  • 64,245
  • 7
  • 109
  • 166
3
votes
2 answers

How to collect optional branches in TinkerPop3?

I have a graph that looks like this: Using gremlin-scala, I'm trying to traverse from A and collect these tuples: (A, Some(A1)), (B, None), (C, Some(A2)) So essentially I want to repeatedly take α out edges and optionally branch to β, collecting…
Arkadiy Kukarkin
  • 2,153
  • 14
  • 24
3
votes
1 answer

Tinkerpop: Set Label After Creating Vertex

Is there a way to set the T.label after the vertex has been created. I have tried the following: Vertex v = graph.addVertex(); v.property(T.label.name(), "test"); But when I try the following…
Filipe Teixeira
  • 3,565
  • 1
  • 25
  • 45
3
votes
1 answer

Which Giraph I/O format can be used for property graph?

There are several built-in input output format in Giraph, but all those formats support only numerical ids & value. So is there a way to process property graph such that both vertices & edges can have multiple key & values or anything close? I'm…
Parth
  • 729
  • 8
  • 23
3
votes
1 answer

Comparing properties in Gremlin

I have a simple graph, with parents and children being vertices. Parents have the relationship "isParentOf" to their children. The vertices all have one property: the "familyName". I want to use gremlin to match all the parents whose child's…
lOlive
  • 209
  • 1
  • 5
3
votes
2 answers

How should hasNot() work in Gremlin?

If a given vertex doesn't have a particular property, what should be the result of g.V.hasNot('non-existent-property', 'value') query? Should the vertex be emitted by such query? I get contradictory results when using TinkerPop and Titan's…
Adam Dyga
  • 8,666
  • 4
  • 27
  • 35
3
votes
2 answers

Orientdb: Create new Graph database

I'm trying to create a new instance of OrientGraph database, as follows: OrientGraph graph = new OrientGraph("local:C:/temp/graph/db"); graph.create(); //BUT no create method!! anyhow, while sticking with the manual and do it with…
m_b
  • 51
  • 1
  • 5
3
votes
2 answers

Baffled by all this Node -> Titan stuff

I'm new to Java, Gremlin, Nodejs, Tickerpop, Maven and just about everything else. What does this code do? In particular what is 'java.import' doing? Is it a Java class? What has this got to do with Titan? var Titan = require('titan-node'); var…
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189