All Questions
345
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 ...
0
votes
2
answers
116
views
Optimize neptune query while using repeat & times
I have the following neptune query
g.V().hasLabel('User')
.has('user_id', 1004)
.repeat(both('USES_UPI','USES_ACCOUNT','USES_HARDWARE_ID','USES_GAID','HAS_COOKIES').simplePath().dedup())
.times(3)
...
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 ...
0
votes
1
answer
53
views
Merge edge based on conditional property check
My edge contains properties active and inactive. I am trying to perform add if not exists for the edge where the condition is to check if the input date falls between active and inactive dates or not.
...
1
vote
1
answer
63
views
Can we update the primary key of a vertex in gremlin graph?
I have a requirement where I need to update the primary key of a vertex in gremlin graph. I have a 'policy' vertex and 'policy_number' is the primarykey of the vertex. Existing policy number value is '...
0
votes
0
answers
108
views
Gremlin query has strange behavior with range() and limit()
I have a Neptune database and use gremlin to query it. I have user vertices that could be connected with edges like "friends", "follows", "blocks", "reports". I ...
1
vote
1
answer
51
views
Gremlin Query for Flights Between Origin and Destination without Transferring On AWS Neptune
I'm attempting to set up a graph data that is representative of airline routes in order to determine routes between an origin and destination between a certain time period.
My vertices are the ...
0
votes
1
answer
48
views
How does it come that my gremlin query delivers two different results?
I needed to write a query which merges two vertices together with all the outgoing edges and properties. For the development process I used gremlify and following testdata:
g.addV("TopVertex"...
0
votes
1
answer
74
views
How can I merge two Vertices into one using Apache Gremlin Query Language (Version 3.5.2)?
Take for example this graph model:
g.addV("TopVertex").property('id', 4713).property('testProperty1','testProperty1').as('vertex1')
.addV("SubVertex").property('name','C1').as('C1')...
0
votes
1
answer
35
views
Neptune Query Returning Duplicate objects
This is how my data in graph db looks.
There are three types of labels
Part
SubstitutePart
Tool
And two types of edges
Substitute: Part -> SubstitutePart
Uses: SubstitutePart -> Tool Or Part -...
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 ...
0
votes
0
answers
77
views
Upsert list of maps (update if exists, insert if not exists) in Gremlin
I have a list of maps which correspond to records that I will receive in streaming, I need to take each record and upsert it.
I have seen many examples that work fine with just one vertex at a time, ...
0
votes
1
answer
80
views
How do you add the degree to every vertex in a list in Gremlin using python?
I'm trying to add the degree (number of vertexes connected to the given vertexes) to each one of the vertexes in a list.
Generating the degree for each vertex works-
c.g.V(ids).as_('vertex'). \
both(...
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
77
views
Gremlin - optimize query
I have a graph, that represents database objects, parent-child relations and dataflows relations (only in-between columns).
Here is my current gremlin query (in python), that should find dataflow ...