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
5
votes
1 answer

Use of store and select keywords in gremlin

Im new to gremlin. i followed the document on tinkerpop3. But i couldn't understand the use of store and select keywords.. Can anyone explain it simply?
vineeth
  • 198
  • 3
  • 13
5
votes
2 answers

What is the use of double underscore in repeat() or other steps in Tinkerpop Gremlin?

I have noticed double underscore being used in some step functions in Tinkerpop Gremlin 3.3. Could someone please tell why we use this double underscore with an example ? I could not find enough information about this in the documentation.
livetolearn
  • 221
  • 3
  • 11
5
votes
1 answer

How to delete all child nodes when parent node deleted using the gremlin query?

I have a requirement to drop all child nodes when parent node is dropping using gremlin query. suppose A / \ B C / \ …
cva
  • 61
  • 1
  • 5
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

How to remove an edge and add a new edge between two vertices?

I'm trying to drop an edge and add a new edge between two vertices. How do I do that in Tinkerpop3? def user = g.V().has("userId", 'iamuser42').has("tenantId", 'testtenant').hasLabel('User');…
Vibgy
  • 577
  • 6
  • 15
4
votes
1 answer

Serializer for type org.janusgraph.graphdb.relations.RelationIdentifier not found

Following error shows up in JanusGraph v0.5.3 server logs while retrieving edges from java client 12277786 [gremlin-server-exec-7] WARN org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor - The result…
rpg
  • 45
  • 6
4
votes
2 answers

Gremlin Driver blocks while initializing ConnectionPool with multiple endpoints

We are running a neptune DB in AWS. We have one writer and 3 reader instances. A few weeks ago, we found out, that the load balancing does not work as expected. We figured out, that our software instance is connecting to just one reader and keeps…
4
votes
2 answers

Neptune - How to get distance to all nodes with proportional weights gremlin

I'm having difficult time figuring out query in gremlin for the following scenario. Here is the the directed graph (may be cyclic). I want to get top N favorable nodes, starting from node "Jane", where favor is defined as: favor(Jane->Lisa) =…
Some name
  • 53
  • 4
4
votes
1 answer

How can I use GraphQL to execute Gremlin queries?

I have a backend service with Gremlin and Amazon Neptune. I would like to provide a GraphQL endpoint to execute queries in Neptune. I found an old hackathon project that might works. But, I would like to know if there is a better way to achive it.
cmaluenda
  • 2,099
  • 1
  • 14
  • 15
4
votes
2 answers

gremlin python clone traversal

I'm using gremlin-python to connect to gremlin-server and I'm trying to build up a query incrementally but I'm getting stuck. I have an initial part of my query like the following: query = g.V().hasLabel('') Now I would like to do…
cts
  • 1,790
  • 1
  • 13
  • 27
4
votes
2 answers

JanusGraph image stop responding after query timeout, how to prevent it?

When JanusGraph server exceeded his 'evaluationTimeout' the server stop responding I'm using the default docker image janusgraph/janusgraph:latest (Berkeley and Lucene) and connecting with gremlin console After the first timeout accord, queries…
dor yosef
  • 43
  • 3
4
votes
1 answer

Gremlin relationship recommendations

I am trying to identify missing relationships in a graph and provide recommendations to add a user to group since his peers are in the same group. Example: Manager dave of IT has members with relationship to group. I would like to find all vertex…
Jautomator
  • 149
  • 1
  • 9
4
votes
0 answers

Neither the sideEffects, map, nor path has a Y-key: WherePredicateStep(neq(Y))

I am continuing my work on extending the Gremlinator to support a larger subset of SPARQL queries. In our work we frequently see SPARQL queries like this: SELECT DISTINCT ?X ?Y ?Z ?V ?NAME WHERE { ?X e:brother ?Z . ?Y…
anton
  • 53
  • 2
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
4
votes
1 answer

Gremlin - Select vertices based on group keys

I have a graph with 2 different vertex classes with some identical properties. I need to: group all vertices of class Item based on some properties find the vertices of class Product that share these properties g.addV("Item"). …
1 2
3
48 49