Questions tagged [tinkerpop3]

Apache TinkerPop™ is an open source graph technology stack, providing a storage agnostic interface to graph databases and graph analytics frameworks. Tinkerpop 3.x represents a major change in the API since 2.x given a complete re-write with Java 8 and refined thinking with respect to graph traversal mechanisms for both OLTP and OLAP.

Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

Gremlin Query to fetch all objects till specified level along with sibling nodes

I have a Gremlin hierarchy of nodes which are referenced (Refer below pic). How can I retrieve all nodes, including their sibling nodes, at a specific provided level from root node ? For instance, ...
solveit's user avatar
  • 949
0 votes
1 answer
35 views

Does gremlin provide/support client side HttpChannelizer implementation using java driver?

The websocket channelizer seems to be the default and only implementation available using the java driver https://tinkerpop.apache.org/javadocs/current/core/org/apache/tinkerpop/gremlin/driver/...
rpg's user avatar
  • 47
2 votes
1 answer
35 views

Is there a nicer way to force a Gremlin query to fail when it discovers an invalid state?

It would be nice if there was a way to have a Gremlin query terminate with some kind of error message if, as part of the query, it is determined that there is no point proceeding further. One not very ...
Kelvin Lawrence's user avatar
0 votes
0 answers
18 views

Query to find the current size of janusGraph?

What is the Query to find the current size of janusGraph? or is there any Tinkerpop query to find the database size?
Thirumal's user avatar
  • 8,560
0 votes
0 answers
18 views

OrientDB v3 set auto transaction to false with tinkerpop 3.0

In tinkerpop 2.6, I am able to do setAutoStartTx(false) for the OrientGraphFactory. How can I do the same in tinkerpop 3.0 using orientdb-gremlin? I am using OrientDB v3.2.21. This is because I want ...
liyang's user avatar
  • 25
0 votes
0 answers
29 views

How to add unique constraints to edge property in janusgraph?

How to add unique constraints to edge property in janusgraph Globally? Unique constraints are applied to only vertex?
Thirumal's user avatar
  • 8,560
0 votes
1 answer
197 views

Performance issues with Neptune gremlin query

We have an analysis project for which we are using neptune db. Configuration: db.r5d.24xlarge 96 cores 768G memory. It contains around 50 million vertices and 500 million edges. Vertices have id, name ...
popcoder's user avatar
  • 3,000
1 vote
2 answers
93 views

Gremlin, linking an edge to a vertex via property

In a graph database, I have graphs like: v1: Protein{prefName: 'QP1'} -- r1: part_of{evidence: 'ns:testdb'} --> v2: Protcmplx{prefName: 'P12 Complex'} ev: EvidenceType{ iri = "ns:testdb&...
zakmck's user avatar
  • 2,827
0 votes
0 answers
42 views

Gremlin query to group and count by multiple values

Having a schema like this one (Page {name})-[HAS]->(Link {date, clicked}) I would like to retrieve records grouped by Page.name and Link.date, ordered by Link.date (desc) Also, for each of these ...
quetzalCoatlus's user avatar
1 vote
0 answers
97 views

ArcadeDB | `All hosts are considered unavailable due to previous exceptions. Check the error log to find the actual reason.`

What are the details of your problem? Why is Tinkerpop-Gremlin AnonymousTraversalSource finding ArcadeDB unavailable? I looked at log/arcadedb.log.x files but they're empty. And the Log4j2 logs also ...
Zach's user avatar
  • 565
0 votes
1 answer
139 views

What is the Gremlin query to get connected nodes and vertex labels in Amazon Neptune with TinkerPop3?

Using Apache Tinkerpop Gremlin to query a node database. I need to not only get the out edges but the Vertexes that the edges connect. Here is a diagram of the database I am trying to query. The gray ...
Scott Lewis's user avatar
0 votes
0 answers
65 views

Tinkerpop-3 Gremlin Not Found For Groovy-Project In IntelliJ IDEA

Why can IntelliJ IDEA not resolve Gremlin for its SimpleExample? I need to make a program that doesn't require intervention / manual steps, so I can't use the gremlin/groovy-shell at time of graph-...
Zach's user avatar
  • 565
0 votes
1 answer
65 views

REGISTER_INDEX() Not Registering SchemaStatus.INSTALLED JanusGraph-Index

Why is JanusGraph not registering an installed-index? The first time the janusGraphManagement.buildIndex() builds and enables fine. Although, second time the janusGraphIndex will be stuck at INSTALLED ...
Zach's user avatar
  • 565
0 votes
2 answers
77 views

Building JanusGraph Indexes On Cassandra In Java

Problem What are the next steps to complete JanusGraph indices? I've already tried following line-by-line of the JanusGraph docs; And tried using closer to source commits janusGraph instead of ...
Zach's user avatar
  • 565
0 votes
1 answer
77 views

Why Is JanusGraph Finding Expired KeyColumn Claims?

Problem What is causing JanusGraph to throw-out so many of this warnings going into full-blown retries? JanusGraph seems to find supposedly dropped vertexes, which is fine if there's a delay; I just ...
Zach's user avatar
  • 565
0 votes
2 answers
180 views

Thought I Created A JanusGraph Vertex Index But I Guess Not; What Went Wrong? [duplicate]

Why is JanusGraph not finding-and-using the index I made at time of search? Please note, I need this to work with the Java implementation specifically; not Gremlin Console. And this needs to work with ...
Zach's user avatar
  • 565
0 votes
1 answer
26 views

Do JanusGraph Cassandra Indexes Need To Be Reindexed?

Do JanusGraph indices need to be reindexed after loading in more data? I know this is a newbie question, but I am a newbie with on this subject. From my understanding right now, OrientDB and Neo4j ...
Zach's user avatar
  • 565
0 votes
1 answer
60 views

JanusGraph-PropertyKey Is Not A User-Defined-Key

Problem Why is JanusGraph throwing-up a User-Defined-Key problem when I'm just trying to make an index? Logs 2023-05-08 12:40:25,640 [INFO] [c.d.o.d.i.c.ContactPoints.main] :: Contact point ...
Zach's user avatar
  • 565
0 votes
1 answer
80 views

Why Is addVertex() Faster Than addV()?

Problem Is there something I'm missing on how to run with g.addV()? Is there some way to speed up g.addV()? If I'm asking this wrong or something else is missing, please let me know so I can correct ...
Zach's user avatar
  • 565
0 votes
1 answer
80 views

How To Create Vertex Index For Remote GraphTraversalSource

Problem How do you make Vertex Indexes with traversal().withRemote("conf/remote-graph.properties")? Questions Do I have to create a org.apache.tinkerpop.gremlin.structure.Graph? Graph graph ...
Zach's user avatar
  • 565
0 votes
0 answers
67 views

Why Does Traversal Source g Stop Working?

Problem Why does their example problem stop working after a day-or-two? Deleting and recreating the JanusGraph-Docker-container fixes the problem. Nothing has been changed since this execution was ...
Zach's user avatar
  • 565
0 votes
1 answer
84 views

Where Is JanusGraph's Gremlin-Console Finding its Tinkerpop-Server's "conf/remote.yaml"?

Problem Where is JanusGraph [Docker-container] Gremlin-Console getting its conf/remote.yaml from? [o.a.t.g.d.ConnectionPool.gremlin-driver-host-scheduler-1] :: Opening connection pool on Host{...
Zach's user avatar
  • 565
0 votes
1 answer
76 views

Why Does V().count() Show 0 with gremlin.sh But Not Zero With Code?

Problem Why does bin/gremlin.sh's V().count() not show a non-zero count? I'm new to Gremlin [Query-Language] and Graph-DBs (Graph Databases) in-general. What is the difference between running in ...
Zach's user avatar
  • 565
0 votes
1 answer
85 views

Why Do Vertexes Not Drop With g.V().drop()?

Problem How do you cleanup Vertexes (and Edges) with GraphTraversalSource g? I don't understand why g.V().drop() doesn't work with traversal().withRemote() When I have this working fine with ...
Zach's user avatar
  • 565
0 votes
1 answer
164 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) ...
Zach's user avatar
  • 565
0 votes
1 answer
37 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....
Zach's user avatar
  • 565
0 votes
1 answer
31 views

How to load data from RDBMS to Tinkergraph using Gremlin using java code?

I need to load data from RDBMS to Tinkergraph using Gremlin using java code. Ex: Select name,age from employee. There are 1000 rows. How to construct tinkergraph for such data? Tried going through ...
Riya's user avatar
  • 19
1 vote
1 answer
65 views

Neptune Multi-AZ Cluster deployment throws Decompression Exception

I am trying to get paths() from AWS neptune, using the below query on below graph g.addV('ORG').as('1'). property(single, 'orgId', 'f5c').addV('COMP'). as('2'). property(single, 'compId', ...
Parvesh Kumar's user avatar
1 vote
1 answer
105 views

Neptune gremlin java traversing with hops

We have a model in neptune db for tag and entity relationship as follows: Vertices - tags. id --- 123454 123478 345678 435677 890890 727455 345588 .... .... id | from | to | hash | score -----...
popcoder's user avatar
  • 3,000
1 vote
1 answer
31 views

SimplePath to omit certails paths based on vertex property

I have a simple graph where I am trying to generate path() from given vertex g.addV('ORG').as('1'). property(single, 'orgId', 'f5c').addV('COMP'). as('2'). property(single, 'compId', 2112896). ...
Parvesh Kumar's user avatar
0 votes
1 answer
27 views

Delete All Vertex Classes on OrientDB

How do you remove all Vertex Classes on an OrientDB Server? I'm cleaning up the graph-database for fresh imports with fixed and simpler names and properties. I'm running an OrientDB with Gremlin ...
Zach's user avatar
  • 565
1 vote
0 answers
212 views

AWS neptune performance issue

I have approx 450k routes/paths in my AWS neptune, below is the sample for the graph I have g.addV('vertex').as('1'). property(single, 'orgId', 123).addV('vertex'). as('2'). property(single, '...
Parvesh Kumar's user avatar
1 vote
0 answers
131 views

Janusgraph Is Not Working Due To Serialization Problem

Why are serialization errors still occurring? I've been trying to get JanusGraph working with much difficulties. I've configured JanusGraph server using the following: host: 0.0.0.0 port: ...
毛三王's user avatar
0 votes
1 answer
31 views

How to find all vertices having multi properties

Let's imagine I have the following two verices: g.addV('set-test').\ property('mySet','one').\ property(set_, 'mySet','two').\ property(id_,'set-test1').next() g.addV('set-test2').\ ...
Ste fan's user avatar
  • 31
0 votes
1 answer
69 views

Using Project + valueMap in combination with where

I have the following graph: https://gremlify.com/vxkibjtoz3b if u can't open the link the graph is lloking the following: You can see there 2 queries. The first one: g.V().out("r").as("...
Ste fan's user avatar
  • 31
0 votes
1 answer
34 views

Losing starting vertex in search result

I have graph, where i am trying to find certain vertex's from given vertex, but in the search result I am not getting the starting vertex. Below is the query I am trying which loose the starting ...
Parvesh Kumar's user avatar
2 votes
1 answer
53 views

Apache Gremlin Filter returns empty when the vertex/edge is not present

Apache Gremlin Filter returns empty when the vertex/edge is not present. g.V('12336', '4128', '155808').as("a").filter( __.V().has('end_time', p.gte('---DATE---')).where(P.neq("a&...
Thirumal's user avatar
  • 8,560
0 votes
1 answer
71 views

How can I apply an anonymous traversal to a graph in Gremlin?

I've got a (generated) anonymous gremlin traversal. I know for a fact that: it contains start steps (.V() / .E()) it has been created exclusively using anonmous traversal (the __ class) Now, I want ...
Martin Häusler's user avatar
1 vote
1 answer
152 views

Getting children and grandchildren in a single query in Gremlin

I am currently rewriting some of the queries written in Cypher to Gremlin. I want to create a single query that would return for the specific starting node: up to the children - based on the edge ...
Piotr G's user avatar
  • 133
0 votes
1 answer
98 views

Combine two gremlin queries with individual start steps into one

I have two gremlin queries, both with individual start steps. I have no control over their inner structure (they are passed to me as method arguments). My task is to combine them into a single ...
Martin Häusler's user avatar
0 votes
0 answers
54 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, ...
Diego Fontan's user avatar
1 vote
1 answer
64 views

Using times() ends in ResponseException "The repeat()-traversal was not defined"

g.V(startVertex) .repeat(__.inE().outV()) .until(__.hasId(targetVertex)) .path() .by(T.label); Im using Tinkerpop 3.6.1 in Java. I get an timeout exception if between startVertex and ...
Zonko's user avatar
  • 133
1 vote
1 answer
74 views

Not able to create a connection to Janus to define the schema

Not able to create a connection to Janus to define the schema. JanusGraph graph = JanusGraphFactory.build().set("storage.backend", "cql")//.set("storage.cql.keyspace", &...
Thirumal's user avatar
  • 8,560
0 votes
1 answer
62 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?
Thirumal's user avatar
  • 8,560
1 vote
1 answer
323 views

Serializer for custom type 'janusgraph.RelationIdentifier' not found

Janus Server config serializers: - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop....
Thirumal's user avatar
  • 8,560
1 vote
1 answer
40 views

How to access the vertex which is created using coalesce in gremlin?

How to access the vertex which is created using coalesce along with an edge in gremlin? In the below query, when the country already exists, it return vertex to next step (adding state) returns new ...
Thirumal's user avatar
  • 8,560
-1 votes
1 answer
30 views

Why `.as()`.step used before `.fold()` is not able to use/refer after `.fold()` in apache Gremlin?

Why .as().step used before .fold() is not able to use/refer after .fold() in apache Gremlin? Eg: g.V().hasLabel('country').has('name', 'Japan').fold() .coalesce(__.unfold(), __.addV('country')....
Thirumal's user avatar
  • 8,560
1 vote
1 answer
53 views

Project disconnected vertex with Gremlin/Tinkerpop

I am looking at a kryo file with the following vertices # Tree Vertices V(label=tree, properties={treeId:1, treeName:treeA}) V(label=tree, properties={treeId:2, treeName:treeB}) # Root Node Vertices ...
Reini's user avatar
  • 1,233
0 votes
1 answer
189 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 ...
Thirumal's user avatar
  • 8,560
0 votes
1 answer
131 views

Get result from GraphTraversal operations with TinkerPop Gremlin and Java

Using TinkerPop Gremlin with Neptune DB, is there a way to get a "result" from a mutation? The iterate() returns GraphTraversal<S, E>, but is there a way to determine success/fail? Or ...
Ebad's user avatar
  • 131

1
2 3 4 5
15