All Questions
Tagged with tinkerpop amazon-neptune
172
questions
0
votes
1
answer
19
views
Apache TinkerPop Gremlin query language is not getting converted to Neptune-specific steps that are optimized to run on the underlying Neptune engine
I am using explain() API on AWS neptune cluster as below-
GraphTraversalSource g = getTraversal(cluster);
TraversalExplanation explain = g.V().hasLabel("Users").explain();
System.out....
0
votes
1
answer
70
views
Neptune graph traversal that uses dynamically calculated values from last vertex to select outgoing edges for further traversal
Here is my graph:
Here is graph building code:
// backslashes included so the code can be copy and pasted into gremlin console
g\
.addV("Person").property(T.id, "A").as("a&...
0
votes
1
answer
29
views
Neptune Gremlin how to break cycles when collecting paths
I have the following graph:
Created using:
g.addV("Person").property(T.id, "1").as("p1")
.addV("Person").property(T.id, "2").as("p2"...
1
vote
1
answer
27
views
why doesn't this graph traversal object have a .from() function? gremlin query in nodejs
I've encountered a bug, and here is the minimal replication of it in nodejs.
g.addV("foo").as("x").addV("bar").as("y").addE("relatesTo").from("x&...
0
votes
1
answer
60
views
efficient graph traversal to find connected components
I'm new to graphDB, I have a graph as shown in the attached image.
I want to find a connected path like "A1,E1,A2,D2,A3" for this I wrote the following query
g.V().hasLabel('A1').repeat(inE(...
1
vote
1
answer
48
views
Migrating a node label in gremlin tinkerpop
I'm working on migrating a graph from an old naming system to a new one and am looking for an efficient way to effectively re-label a given node label without losing node or edge properties or any ...
1
vote
1
answer
32
views
Neptune query behavior during edge creation
Gremlin query submitted to neptune to create edge , behaves differently when source/target vertices are missing.
we are using gremlin query in below format to submit edge creation on amazon neptune.
...
0
votes
1
answer
45
views
Fetch substring of a field from the edge of a graph
I am trying fetch substring of field that is stored as an attribute in the edge of graph. To be more specific on the company-company edges
I have attached the graph creation query.
g.addV('company')....
0
votes
1
answer
89
views
gremlin query for cycle detection works for complex graph but returns nothing for simple one
I have a gremlin query to detect cycle nature of the graph. I have tested it with multiple large complex graph it works as expected. But it does not return anything with simple 1 depth graph.
Could ...
0
votes
1
answer
51
views
select and arrange multiple result within single projection
Apologies for not having sample graph.
I’ve a directed acyclic graph mapping where Multiple nodes called "greatgrandparents" have edges to "grandparents" that has edges to ...
0
votes
0
answers
50
views
Gremlin query to check the cycle nature of the graph
I am new to gremlin. I have task where I need to check the cycle nature of the vertex in the graph and return the output in either of the format String or Boolean:
{'crn': 'COMPANY_X', 'cycle': 'Y'}
{'...
0
votes
1
answer
69
views
Modify the gremlin Query to add a new field along with existing one
I am new to Gremlin struggling modify the query to get the appropriate result.
I have a query that gives the depth of the graph. The query is as below:
g.withSack(0)
.V('company_1')
.repeat(
...
0
votes
0
answers
80
views
Tinkerpop Gremlin upgrade path (3.4.10 - 3.6.5)
I have to upgrade AWS Neptune Engine version to 1.2.1.0. The current Tinkerpop gremlin version (as a client) is 3.4.10.
Now, Thought I have already upgraded the Neptune server version which is still ...
0
votes
1
answer
148
views
AWS Neptune recommendation to make response faster
I recently had to use AWS Neptune in an authorization service to model a dataset that has intrincate relations between entities, most of them are many to many relations. This is the model I came up ...
0
votes
1
answer
200
views
How to use Cardinality properly in mergeV in gremlin javascript?
I'm trying to set cardinality. It works with addV, for example
await g.V(id1).property(single, 'timestamp', 10).next();
However it does not work when I try to do it with mergeV
const ...