Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [tinkerpop]

Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP).

0 votes
1 answer
23 views

Why is addE failing with a string reference to an earlier step?

I'm trying to create a Vertex and an Edge if the vertex doesn't already exist. This is the Gremlin query I'm trying to run: g.V(4128).as('parent').out().has('qt', 1).fold().coalesce(unfold(), addV('...
0 votes
1 answer
21 views

Tinkerpop vertex property single cardinality is not working

When creating a vertex i explicitly mentioned Cardinality as single still its taking list, not able figure out why. wg.addV("label") .property(VertexProperty.Cardinality.single,"name&...
0 votes
0 answers
22 views

JanusGraph edges from Java do not appear in Gremlin console

I'm running a JanusGraph server and client per the instructions here. I included an argument to expose port 8182 so I can connect to it from a Java application. My Java application just creates a new ...
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
24 views

How to get all incoming direct and indirect nodes with edges of a given node

I have a graph like below a->b b->c d->c a->c e->d c->e e->a f->g g->a c->h If i select c, it should return all incoming direct and indirect nodes with edges along the ...
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
16 views

How is select being used outside a traversal? groovy gremlin vs nodejs gremlin

I found this QA to be very useful, or at least would be if I understood what the heck is going on, and could translate it from groovy gremlin to nodejs gremlin. What's tripping me up is the use of the ...
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
205 views

Encountered an error when making Gremlin.Net communicate with JanusGraph in the JanusGraph official website.net introductory tutorial

I tried to operate JanusGraph with .net using JanusGraph official tutorial, but got an error, the following is my code and .net\JanusGraph Error displayed by the server I use vscode, the command to ...
1 vote
1 answer
24 views

Java Optional - equivalent in Gremlin

I would like to make a query that works on an element. But sometimes this element doe not already exist. So the query shoudl create it on demand. Like in Java the Optional::orElseGet - method. My ...
2 votes
1 answer
312 views

Azure Cosmos graph db supported Gremlin and Tinkerpop version

I'm having trouble finding what Azure Cosmos DB supports in using npm gremlin and Tinkerpop. https://www.npmjs.com/package/gremlin The gremlin package makes no reference to client.submit scripts, ...
1 vote
3 answers
123 views

Running a local tinkerpop gremlin graph for testing in nodejs

I'm looking for a solution to run a gremlin tinkerpop graph locally to use for toy graphs for unit testing with Jest. I saw tinkergraph, but it doesn't appear to have a javascript implementation that ...
0 votes
1 answer
29 views

The most efficient way to compare 2 aggregates (set of vertices) in Gremlin Query Language

What's the most efficient way to compare 2 aggregates (set of vertices) and see if they contain the exact same results? Using this doesn't seem to work: .where(select('aggregate1').is(eq('aggregate2'))...

15 30 50 per page
1
2 3 4 5
68