Questions tagged [gremlin-java]

14 questions
1
vote
1 answer

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][Warning] [{}] [o.a.t.g.s.o.AbstractEvalOpProcessor]:…
Rostislav Krasny
  • 577
  • 3
  • 14
1
vote
1 answer

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?
Thirumal
  • 8,280
  • 11
  • 53
  • 103
1
vote
1 answer

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-12-19T16:39:57-08:00" The application/API receives the time in…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

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) Create-and-Startup JanusGraph Docker-container docker…
0
votes
1 answer

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.log4j.Logger; import…
Zach
  • 539
  • 1
  • 4
  • 22
0
votes
0 answers

OrientGraph Cannot Create A Connection To Remote Server Localhost:2424

Problem OrientGraph Cannot create a connection to remote server localhost:2424 but OrientDB can. Running Apache-TinkerPop-3 Gremlin commands through the OrientDB API, Either for Java or Groovy. Caused by:…
Zach
  • 539
  • 1
  • 4
  • 22
0
votes
1 answer

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?
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

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 primary target backend) has a bulk loading API…
Fabrice Gabolde
  • 215
  • 2
  • 8
0
votes
1 answer

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 items in specific order.
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

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 fine when the range interval is 1 (OR) total number of return vertex is 1. If it has…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

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 implements MethodSecurityExpressionOperations…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

How to map gremlin query output Map to java Pojo class?

How to map gremlin query output Map 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 class?
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

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, it throws an exception. It's obvious the traversal…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

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") public interface EmpTraversalDsl extends…
Thirumal
  • 8,280
  • 11
  • 53
  • 103