Questions tagged [tinkerpop3]

Apache TinkerPop™ is an open source graph technology stack, providing a storage agnostic interface to graph databases and graph analytics frameworks. Tinkerpop 3.x represents a major change in the API since 2.x given a complete re-write with Java 8 and refined thinking with respect to graph traversal mechanisms for both OLTP and OLAP.

Apache TinkerPop™ 3.x provides graph computing capabilities for both graph databases (OLTP) and graph analytic systems (OLAP) under the Apache2 license.

It offers:

  • A standard, vendor-agnostic graph API on the JVM (needs Java 8)
  • In-memory reference implementation of this API, TinkerGraph
  • A standard, vendor-agnostic graph query language, called "Gremlin" (Groovy based)
  • OLTP and OLAP engines for evaluating query
  • A command line shell, Gremlin shell
  • Visualization, via Gephi Integration

More information:

731 questions
3
votes
1 answer

Filtering edges based on information derived from properties of different edges

I'm trying to represent a train schedule timetable as a graph using Tinkerpop3. The nodes of the graph are the train stations and the edges are "schedule elements" that contain all the information about a train going from one station to another. I'm…
3
votes
2 answers

Couldn't start gremlin server from JanusGraps (GraphFactory warning)

I try to start JanusGraph and I have a problem with TinkerPop gremlin server. I try both "release (0.1.1)" and "from source (0.2.0)" versions. When I run /bin/janusgraph.sh start there is no error but I can't connect to gremlin with my application.…
trojek
  • 3,078
  • 2
  • 29
  • 52
3
votes
1 answer

Gremlin server withRemote connection closed - how to reconnect automatically?

I am using withRemote to connect my java application to gremlin server running in AWS with dynamodb storage backend. I am getting connection timeout after few seconds (~3.3…
monali01
  • 160
  • 1
  • 9
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
1 answer

Unable to use SparkGraphComputer with Tinkerpop 3.2.3 and Janusgraph 0.1.1 in remote mode

I have set up Tinkerpop Gremlin Server 3.2.3 and Tinkerpop Gremlin Console 3.2.3 and added janusgraph 0.1.1 as plugin to both. I run following code in remote mode which ends up in below-listed exception :remote connect tinkerpop.server…
mbaxi
  • 1,301
  • 1
  • 8
  • 28
3
votes
1 answer

Can strategies be used with remote traversal in Gremlin?

I'm interacting with JanusGraph using Gremlin-Java with the remote mode. I'm now defining a new property on my edges in order to filter them when a specific strategy is used. The following is the code I'm trying to run in my application, but the…
Cattani Simone
  • 1,168
  • 4
  • 12
  • 30
3
votes
1 answer

Gremlin query to find the count of a label for all the nodes

Sample query The following query returns me the count of a label say "Asset " for a particular id (0) has >>> g.V().hasId(0).repeat(out()).emit().hasLabel('Asset').count() But I need to find the count for all the nodes that are present in the…
Abhishek Raj
  • 502
  • 3
  • 15
3
votes
0 answers

Getting orientdb-gremlin-parent error compiling OrientDB Develop branch with Tinkerpop Gremlin 3.0

I'm loving OrientDB 2.2.x. Eazy to install and configure, including Gremlin graph (2.6.0). But our team needs TinkerPop Gremlin 3.0. I see that this will be available in the OrientDB 3.0 version due in the next few months. I'd like to try it out now…
Jim H
  • 41
  • 4
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 correct configuration for increasing the thrift frame size in Titan-1.1.0-SNAPSHOT

I execute the count method on a cluster with a titan graph using the fulgora graph computer and get this common error: Frame size (20769719) larger than max length (15728640)! This can be corrected by specifying this in the config…
Sheldon
  • 135
  • 9
3
votes
2 answers

counting vertices on a titan graph using SparkGraphComputer throws org.apache.spark.SparkException: Job aborted due to stage failure:

When trying to use the SparkGraphComputer to count the number of vertices on a titan graph on a cluster I get an error that I have no idea how to deal with. I am using tinkerpop 3.1.1-incubating and Titan 1.1.0-SNAPSHOT in my code and on the cluster…
Sheldon
  • 135
  • 9
3
votes
1 answer

How to define custom step in Tinkerpop 3?

Tinkerpop 2 used to support user-defined step through Gremlin.defineStep(..) How can I achieve the same using Tinkerpop 3 ? Is there any Gremlin API to create a custom step and combine a set of traversal steps ? Any suggestion will be highly…
kaniska Mandal
  • 189
  • 1
  • 12
3
votes
4 answers

How to add multiple edges in a single gremlin query?

My scenario is to add multiple edges between vertices in a single query: Assume the nodes below: These are the labels and ids I have Users: 4100 Songs: 4200 4355 4676 I have to establish edges between these vertices 4100 --> 4200, 4100 --> 4355,…
mano haran
  • 79
  • 2
  • 7
3
votes
1 answer

Titan Gremlin Server is giving Error "not a WebSocket handshake request: missing upgrade"

I downloaded Titan Version 1.0 on EC2 server from url Titan 1.0.0 with Hadoop 1 – recommended Then I unzip and ran the titan server with following command : bin/titan.sh start Forking Cassandra... Running `nodetool statusthrift`... OK (returned…
Sumit Chourasia
  • 2,394
  • 7
  • 30
  • 57
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