16 questions
4
votes
1
answer
122
views
Merge Operator in sack() step does not work as expected
I've been working with sack() step in gremlin. I'm trying to perform some operation on sack when two traversers merge. But for some reason the merge doesn't seem to work as expected. To describe my ...
0
votes
0
answers
194
views
JanusGraph fails to create connection with multi-node Cassandra cluster
I have a multi-node Cassandra cluster version 4.1.3 with 3 nodes. I have changed the following properties in their cassandra.yaml file.
cluster_name: 'cassandra_cluster'
listen_address: <node_IP>...
1
vote
2
answers
159
views
Gremlin query to traverse JanusGraph with step count until leaf vertex
I have a JanusGraph with vertices containing property key "ID" and edges labelled as "ML_EDGE", containing property key "STRENGTH".
I have to start from a vertex and ...
1
vote
1
answer
341
views
No signature of method exception after upgrading Apache Gremlin 3.6.2 to any newer version
This is an existing project that works properly with Apache Gremlin 3.6.2 but fails to pass unit tests after upgrading to any newer version of Gremlin - 3.6.3 or 3.6.4:
[2023-06-13T11:34:57,445][...
0
votes
1
answer
342
views
How To Connect To JanusGraph In Java with AnonymousTraversalSource
Problem
Why am I unable-to-connect to JanusGraph-Server on localhost:8182?
Using Java-17, TinkerPop3 Gremlin, and Janusgraph:latest.
Reproduction
Steps
Download-and-Install Docker (Windows)
...
0
votes
1
answer
59
views
GraphTraversalSource Causing log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter)
Problem
How-To-Fix Log4j2 Warnings
When Using Tinkerpop-3-Gremlin (Language)-GraphTraveralSource?
Tried
src/main/java/main.java
import org.apache.logging.log4j.LogManager;
import org.apache.logging....
0
votes
1
answer
111
views
How to add vertex id as property in Gremlin
Due to an application design fault, I need to add vertex_id as the property of the vertex. How to do that in Gremlin Query?
0
votes
1
answer
435
views
How can I use addV to insert an unknown number of vertices in gremlin-java?
I'm trying to write a Java wrapper that will help me upsert (or even just insert) vertices in a Gremlin server.
I realize that different tools may support other methods, e.g. AWS Neptune (which is my ...
0
votes
1
answer
329
views
Cardinality "set" property in gremlin is ordered or unordered?
Cardinality "set" property in apache tinkerpop gremlin is ordered or unordered?
List is not supported in AWS Neptune, but I need to maintain insertion order (or) save & retrieve the ...
0
votes
1
answer
244
views
UnsupportedOperationException in gremlin "by step with range" for more than one element
g.V().hasLabel('employee').fold().as("emp", "count")
.select("emp", "count")
.by(range(local, 0, 2).elementMap())
.by(count(local));
The above query is working ...
1
vote
1
answer
563
views
How to find the cardinality of property in apache tinkerpop Gremlin?
How to find the cardinality of property in apache tinkerpop Gremlin?
Is there any method to find the given property cardinality is SET or SINGLE?
0
votes
1
answer
71
views
Autowired is not working in CustomMethodSecurityExpressionRoot always returning NULL
Autowired is not working in CustomMethodSecurityExpressionRoot always returning NULL. here is the custom method security.
public class CustomMethodSecurityExpressionRoot extends SecurityExpressionRoot ...
0
votes
1
answer
334
views
How to map gremlin query output Map<Object, Object> to java Pojo class?
How to map gremlin query output Map<Object, Object> to java Pojo class?
Gremlin returns vertex properties in Object, how to convert/map it to POJO Class?
Do we need to write a separate mapper ...
1
vote
1
answer
96
views
How to use java `OffsetDateTime` in apache tinkerpop gremlin?
The application can be accessed from a different timezone, so I am trying to store date time using class java.time.OffsetDateTime.
startTime: "1996-12-19T16:39:57-08:00",
endTime: "1996-...
0
votes
1
answer
107
views
How to add new vertex using gremlin coalesce when the traversal is empty?
I am using @GremlinDsl so my traversal from g.V().hasLabel('NEW'), so I am using coalesce to add new vertices. It works well when there is any vertex with the given LABEL in the database, otherwise, ...
0
votes
1
answer
107
views
Can we use apache Gremlin DSL for mutations (CREATE, UPDATE & DELETE)?
Can we use apache Gremlin Domain Specific Language (DSL) for mutations (CREATE, UPDATE & DELETE)?
Gremlin Java DSL
@GremlinDsl(traversalSource = "com.sample.dsl.EmpTraversalSourceDsl")
...