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

TinkerPop get the count and continue the same traversal

I'm currently using TinkerPop java APIs for graph traversal. Currently I had to create a duplicate copy of the same traversal to compute the count. Long allUsersCount = gt.V().hasLabel("user").has("name", "John").count().next(); List users =…
Vivek
  • 11,938
  • 19
  • 92
  • 127
5
votes
2 answers

Merge results from multiple queries in Gremlin

Let's say I want to get a few vertices from my database: g.V(1, 2, 3) And then I have another set of vertices: g.V(4, 5, 6) Imagine it's not just g.V(), but some more complicated traversal to get my vertices. But the traversal must start with V(),…
Vojto
  • 6,901
  • 4
  • 27
  • 33
5
votes
1 answer

How to collect all vertex and edge properties along path, with Gremlin

Here's a really simple query: g.V('customerId').out().path() The JSON output of this is { "requestId":"96b26c1d-d032-2004-d36e-c700bd6db2a2", "status":{ "message":"", "code":200, "attributes":{ …
Wendell Blatt
  • 177
  • 1
  • 1
  • 10
5
votes
1 answer

How to use a UUID as id in Gremlin?

I'm adding verticles like this: g.addV("foobar").property("id", 1).property(...etc... How can I set a property with a uuid instead of an integer id?
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
5
votes
2 answers

Gremlin Python returning empty graph

I've started playing around with gremlin-python wrapper to interact with my gremlin server. I did the following steps: ./bin/gremlin.sh Once the Gremlin console opens up, I loaded configurations using: graph =…
Debasish Kanhar
  • 1,123
  • 2
  • 15
  • 27
5
votes
1 answer

Gremlin query to get in and out edges for a given Vertex

I’m just playing with the Graph API in Cosmos DB which uses the Gremlin syntax for query. I have a number of users (Vertex) in the graph and each have ‘knows’ properties to other users. Some of these are out edges (outE) and others are in edges…
LDJ
  • 6,896
  • 9
  • 52
  • 87
5
votes
1 answer

Difference between Gremlin and Tinkerpop

I'm trying to understand what is the difference between Tinkerpop and Gremlin (context: http://tinkerpop.apache.org/). My assumption is that Gremlin is just the query/traversal language that can use different backends while Tinkerpop is Gremlin…
Zuza
  • 2,136
  • 4
  • 20
  • 22
5
votes
2 answers

How to search multiple values for same propertykey in gremlin

What is the best way to get values with same property key? EDIT: Sorry for changing the question my requirement was to get an employee from either of the departments I need to fetch all the the employees who work for IT or Sales departments and are…
Mahi Tej Gvp
  • 984
  • 1
  • 14
  • 34
5
votes
1 answer

olap and oltp queries in gremlin

In gremlin, s = graph.traversal() g = graph.traversal(computer()) i know the first one is for OLTP and second for OLAP. I know the difference between OLAP and OLTP at definition level.I have the following queries on this: How does the above…
Ahi
  • 175
  • 1
  • 13
5
votes
2 answers

TitanDB Index not changing state

I wanted to drop an existing index and followed the steps in the documentation so far. I have no separate indexing backend configured for now. However, when I get to the step where you have to wait for the index status to change using…
Tim Specht
  • 3,068
  • 4
  • 28
  • 46
5
votes
1 answer

What mechanism is used to determine the absolute order of vertices in tinkerpop/titan?

When performing the following traversals: graph.addVertex("a") graph.addVertex("b") graph.addVertex("c") graph.traversal().V().range(0,2) graph.traversal().V().range(2,3) What determines the order in which I get these vertices back when using the…
Sheldon
  • 135
  • 9
5
votes
2 answers

How can we use Tinkerpop Blueprints in Orientdb?

I want to use Blueprints and Pipes in OrientDB. What is the method? And also TinkerPop3 or TinkerPop2? Which is better for my learning experience?
Zeeshan
  • 375
  • 1
  • 3
  • 17
5
votes
2 answers

How to use Tinkerpop with actors

I would like to know if I can use tinkerpop within Akka Futures, so far when I commit my changes to the graph they don't get persisted. I understand tinkerpop is a thread-local library which mean I'd need to set my thread again within the future…
Roch
  • 21,741
  • 29
  • 77
  • 120
4
votes
1 answer

CosmosDB: Gremlin Query to create a new property using existing property

Each vertex has a structure: { Id: 123, field1: 10 } I want to add field2 to all the vertices such that field2 has its value equal to field1. The challenge is that almost all the queries I found here as well as other places give syntax…
4
votes
0 answers

how to retrieve meta properties defined for a vertex property in java code?

I am using Janus graph DB, and we have return custom vertex program to retrieve data from Janus graph , and we are using spark germling libs, I have created one vertex and define properties and for one property defined meta property, during code…
Bravo
  • 8,589
  • 14
  • 48
  • 85
1 2
3
64 65