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
4
votes
2 answers

Titan Db ignoring index

I have a graph with a couple of indices. They're two composite indices with label restraints. (both are exactly the same just on different properties/labels). One definitely seems to work but the other doesn't. I've done the following profile() to…
Pomme.Verte
  • 1,782
  • 1
  • 15
  • 32
4
votes
1 answer

Setup and configuration of Titan for a Spark cluster and Cassandra

There are already several questions on the aurelius mailing list as well as here on stackoverflow about specific problems with configuring Titan to get it working with Spark. But what is missing in my opinion is a high-level description of a simple…
Florian Hockmann
  • 2,634
  • 13
  • 24
4
votes
1 answer

How P.test(V value) in Titan graph traversal query works?

Came across a scenario where I need to write a titan query using GraphTraversal api which has various clauses like in, contains, within etc. To form the required clauses I am utilising P.within(..), P.inside(..), P.test(..) etc. predicates.…
Bhavesh
  • 519
  • 6
  • 26
4
votes
1 answer

Gremlin-Server Add Vertex with Multiple Properties (Titan 1.0.0)

I'm creating a Titan graph (backed by Dynamodb); I'm using Titan 1.0.0 and running Gremlin-Server 3 (on TinkerPop3). I'm trying to add a vertex to my graph with a label and multiple properties in a single line. I'm able to add a vertex with a label…
4
votes
1 answer

TinkerPop 3.1.0 Console - Display stack trace?

I'm currently using TinkerPop 3.1.0 Console Incubating, and everytime there is an option Display stack trace? [yN] I cannot enter "y" or "N" to show or not show the Stack Trace. It simply goes to a new line and gives you no chance to enter the yN…
4
votes
2 answers

How do I use Gremlin/Tinkerpop with Java?

I'm working on a project which involves the use of knowledge representation in Java, and I got the impression that some kind of semantic network is the way to go about it. Gremlin/Tinkerpop seems to have very nice syntax for graph generation and…
user5513268
  • 41
  • 1
  • 2
3
votes
2 answers

TinkerPop Gremlin, how get child elements filtered and grouped

I'm new to using Gremlin and I need help to set the best query to select unique and filtered results. Starting from a team I would get player (note: each player can play for more than one team) of each team connected by is_friends_with The result (I…
Uncoke
  • 1,832
  • 4
  • 26
  • 58
3
votes
1 answer

How to emit() only complete path or terminated by repeat loop?

My Graph looks like above image. It is simplified form of optical communication network. each vertex transmits one color. when two colors joins ("Mux") then it creates new color and transmits new light. At remote end colours are demuxed and passed…
defender
  • 353
  • 2
  • 11
3
votes
2 answers

Gremlin: ConcurrentModificationException and multithreading

My application is not live yet, so I'm testing the performance of my Gremlin queries before it gets into production. To test I'm using a query that adds edges from one vertex to 300 other vertices. It does more things but that's the simple…
fermmm
  • 1,078
  • 1
  • 9
  • 17
3
votes
1 answer

What is the best practice for gremlin client cluster in java spring project

I am using Neptune (AWS) graph data base, and my client api is in java spring. My application read and write into my database. Actually we have 2 clusters for reading and writing as a bean. W e are generating several traversal and after submitting…
3
votes
0 answers

How do I create vertex centric index in JanusGraph

I am trying to build vertex centric Index in Janusgraph. foo = mgmt.makePropertyKey('foo').dataType(String.class).cardinality(org.janusgraph.core.Cardinality.SINGLE).make(); foo_bar = mgmt.makeEdgeLabel('foo_bar').make(); byfoo_bar =…
3
votes
1 answer

Gremlin DSL usage errors within `repeat` step

We are using gremlin-javascript and have recently started to define a DSL to simplify our queries. I am not sure if I've overlooked some caveat, but when attempting to use DSL methods within a repeat step, I consistently receive…
bkrypt
  • 83
  • 5
3
votes
1 answer

Geolocation distance with AWS Neptune?

I'm trying to use Amazon Neptune, in my gremlin query I need to filter nearby users and also filter by other relationships, similar to what Tinder (a dating app) does. So I need a geolocation distance calculation into the query. I can't find that…
fermmm
  • 1,078
  • 1
  • 9
  • 17
3
votes
1 answer

Understanding different methods for adding edges with Gremlin-Python

I'm trying to understand the differences in methods, and the best syntax for adding edges (between existing vertices) in Gremlin-Python. Having read several posts here on SO, I've subdivided some different approaches I found into a few…
robin214
  • 45
  • 4
3
votes
1 answer

Gremlin find highest match

I am planning to use a Graph Database (AWS Neptune) that can be queried with Gremlin as a sort of Knowledge base. The KB would be used as a classification tool on with entities with multiple features. For simplicity, I am using geometric shapes to…
Sanandrea
  • 2,112
  • 1
  • 27
  • 45