All Questions
94
questions
0
votes
1
answer
35
views
Why I could not do E step at the middle of a Gremlin query?
I notice that I could not have an E step at the middle of a Gremlin query. Is there a reason behind it, or just the feature is missing?
g.V().....E()...
Basically, I have an index on an edge property ...
1
vote
1
answer
71
views
Why doesnt the gremlin query return edges using path() when logical operators are present in the query?
I am fairly new to gremlin query and janusgraph. I had a requirement to get both edges and nodes of the graph given various properties of the nodes and the relationship between them. There can be ...
1
vote
1
answer
115
views
Finding suspicious logins using amazon neptune graph database
I have a below structure of graph loaded in amazon neptune.
In words graph can be described as: Device is getting accessed from location and Device is logging into the account.
Problem Statement: I ...
2
votes
1
answer
257
views
TinkerGraph g.V(ids).drop().iterate() is confusingly slow
Have run into an issue with using plain old TinkerGraph to drop a moderate sized number of vertices. In total, there are about 1250 vertices and 2500 edges that will be dropped.
When running the ...
0
votes
1
answer
114
views
Gremlin - find subgraph from specific starting points
I am having problems with creating quite a simple query:
Lets assume a graph with nodes representing people and edges of type 'has child'.
I get a subset of the people as starting point and I need to ...
0
votes
1
answer
192
views
How stop Repeat when first results are found in Gremlin TinkerPop Graph
How can I stop traversing further down a graph using a Repeat when the first results are found?
I have tried to use an aggregate variable but it seem that the until step ignores it.
Se demo
https://...
0
votes
1
answer
324
views
Gremlin query to check if a value exists in the given external map
I would like to traverse the graph until my node property value exist in the set. Set contains id of the nodes and trivial objects.
The query is like:
public Map<String,Object> getNodes( Long ...
0
votes
1
answer
292
views
Check the sack() value in a gremlin query
We have a query to find the possible paths to a node. We represented ABC paths with numbers as shown in the table and we are using bitwise and operation to see available paths to a node. We are ...
2
votes
1
answer
466
views
Gremlin / tinkerpop: insert key:value property constant in every vertex and edge traversed then return path
Using AWS Neptune with Gremlin query language (last version).
Using sample data inserted this way:
g.addV('test_report').property('name', 'REF').property('creationDateTime','2022-07-01 00:00:00.000000'...
0
votes
1
answer
125
views
Error when constructing Gremlin traversal using Lambda function
I have a vertex that is set with properties startDate and endDate:
Date start = new Date();
Date end = Date.from(start.toInstant().plusSeconds(600));
g.V(8L).property("startDate", start)....
0
votes
1
answer
36
views
edit sack() value depending on path
I have three paths leading to two goals. All edges have a different strength and I collect them with sack().
I want to weigh some of the paths more heavily than the others (independent of the edge ...
0
votes
1
answer
44
views
Learning resources for developing custom TinkerPop Vertex Programs
I have read the TinkerPop official docs and provided tutorials on their website. I am looking for further learning resources on developing custom Vertex Programs that cover the fundamentals and ...
0
votes
1
answer
189
views
How to process large .kryo files for graph data using TinkerPop/Gremlin
I am new to Apache TinkerPop.
I have done some basic stuff like installing TinkerPop Gremlin console, creating graph .kryo file, loaded it in gremlin console and executed some basic gremlin queries. ...
1
vote
2
answers
1k
views
How to traverse using `startsWith()` in gremlin?
How to traverse using startsWith() in gremlin?
g.V('6b4e7018-a2d1-45fd-a1ce-78efe4c96c33').bothE(startsWith('live_at_'))
.elementMap().toList()
or
g.V('6b4e7018-a2d1-45fd-a1ce-78efe4c96c33').bothE()....
0
votes
3
answers
1k
views
Gremlin how to filter the results of a projection?
I have a query like this
g.V.has('id', 1).outE()
.project('edge','vertex')
.by(valueMap('number'))
.by(inV().valueMap())
it returns a dictionary that looks like this:
{&...