Apache TinkerPop

AT

Apache TinkerPop

Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.

Join

MergeV in Go - setting the label

I am having a hard time finding any docs for the Go client, and the code itself does not reveal too much. I see some syntax magic for setting the label in Groovy, but I cannot work out what the equivalent is in Go. Specifically, using: g.MergeV(match)....

Serializing graph responses for ASPNetCore Web APIs

I am hitting issues serializing graph responses in .net (with System.Text.Json and Newtonsoft) when the returned data is complex (nested dictionaries with object keys) because the libraries don't know how to serialize the inner dictionary objects. Since the data returned for every query can take different form and shape, I am not sure if I can resolve this using CustomConvertors. How do others handle these generic responses? I was looking into GraphSON and wondering if I should update my service...

Does bulking optimization provided by LazyBarrierStrategy improves query performance?

I’m having a hard time understanding usefulness of the LazyBarrierStrategy which supposedly adds bulking optimization. In the nutshell LazyBarrierStrategy simply adds barrier(2500) after FlatMapStep. As I understand it means to execute previous FlatMapStep up to 2500 times before moving to the next step. I hardly understand the usefulness of such barrier step being inserted after FlatMapStep. Do you know any use-case when LazyBarrierStrategy improves query performance anyhow or brings any benefit?...

What's ArcadeDB's graph initialize call?

I'm working on confirming that the ArcadeDB-server is up and running with Gremlin. What's ArcadeDB's graph supposed to be for graph.traversal()? ```groovy graph = JanusGraphFactory.build().set("storage.backend", "cql").set("storage.hostname", "127.0.0.1").open()...

Storing Time Series (increasing data) data with graph database

Hello! I am learning Graph database while I am working on build an application. for the most part the graph database setup works for the structure. for example, each node (vertex) is a person. that person stores daily transactions of work. how do I add this while maintaining the organization structure. I do not think creating/adding new nodes daily is right approach.

Don't know how to return count-value in Java

Basic question, why does next() not seem to give me the results back about the count of Entities? ```powershell 2023-05-24 09:21:44,641 [INFO] [j.Test35_2_1.main] :: [GraphStep(vertex,[]), HasStep([~label.eq(Entity)]), CountGlobalStep] ... Exception in thread "main" java.lang.IllegalStateException: org.apache.tinkerpop.gremlin.process.remote.RemoteConnectionException: org.apache.tinkerpop.gremlin.driver.exception.NoHostAvailableException: java.util.concurrent.CompletionException: Could not initialize 2 (minPoolSize) connections in pool. Successful connections=0. Closing the connection pool....

Using Spark inside Gremlin-Server

I am trying to invoke spark in Java inside a call step inside my graph implementation which is loaded in Gremlin-Server but I am running into a difficult error. Outside of gremlin-server everything works properly. I was wondering if anyone has experienced this or if there is anything that gremlin-server does with the class loader that might affect this?...

What is the fastest way to raise Gremlin Groovy Bugs?

I've discovered a bug in Gremlin 3.6.3+ and Groovy 2.5.22 that I want to raise. I've tried requesting a Jira account via the ASF Self-serve Portal but I think the request is stuck in limbo somewhere. I've verified my email but I think its awaiting some sort of manual approval. Does anyone know if there are are alternative channels for bugs or how to give the Jira account creation/approval process a "kick"?

Creating Indexes In JanusGraph

How do you create indices in JanusGraph and/or Gremlin with Java? JanusGraph still isn't using the index provided. ```powershell...

Technical differences between Titan/JanusGraph and HugeGraph

What are the main technical differences between Titan/JanusGraph and HugeGraph?
Solution:
As answered by the HugeGraph Community: - We have almost completely refactored the original data structure and serialization logic, and we have provided a complete set of toolchain tools, including visualization, spark/flink import, etc., and we are about to launch a separate flink/spark connector to help connect streaming data/different data sources and bulkload faster and better. - We used to focus on Hbase and Cassandra as distributed storage backends, but now and in the future we will focus on high-performance RocksDB as the main backend. The current version has initially supported multi-instance Raft + RocksDB, and the next major version will fully support multi-replica + sharding, achieving a high degree of autonomy and control throughout the chain (no longer relying too much on third-party storage). The performance can also be greatly improved, and the single/multi-machine version will be more flexible. - We have independently developed and open sourced HugeGraph Computer, which is a graph computing system based on the Pregel model with significant optimizations, and natively integrated with HugeGraph, thus bridging the storage and computing systems, providing a one-stop complete "graph service" ecosystem (rather than relying on spark-graphx or other external/limited solutions, which hugegraph also supported earlier)....

ResponseMessage after fail('...') on Neptune

Hello. I found that, while a current Gremlin Server returns the reason for a triggered fail() in its response message, Neptune doesn't (see attached screenshots). This makes it hard to extract a reason for failure. Is that by design, is it a known omission, is it a bug? Happy to file a JIRA ticket.

Finding Out Looped Graphs

I am trying to identify situations where I have inadvertently created edges that connect to the same vertex, resulting in F -> F and also possibly G -> F -> G scenarios. What are effective Gremlin techniques for detecting and resolving these instances?

Simple production database alternatives for small Gremlin.Net applications

Hi! What production database alternatives are there out there for small DotNet applications with Gremlin.Net? The reason why I'm asking is because there does not seem to be any easy to use and maintain solutions: they either require a lot production infrastructure and maintenance (JanusGraph), have high enterance fees (Datastax Enterprice), are only partially supporting old versions og Gremlin (CosmosDB) or are lacking pre-defined serialisers for DotNet (e.g ArangoDB). ...

Default Sort Order in Gremlin Query

Is there any Default sort order in Gremlin Query if we do not provide any explicit order? Whenever I ran Gremlin query multiple times, it gives the results in some random order, just need understand how this order is defined internally? I am using Janusgraph with remote gremlin servers

Why does properties().dedup() return duplicates?

When I run the query V().both().properties().dedup() on the TinkerFactory modern graph, I see duplicates for some properties (for instance, vp[NAME->Marko] and vp[LANG->java] appear twice). Looking at the documentation, I do not understand how this is possible. Any help is appreciated. Thank you!...

Is is ok to generate GraphTraversalSource on demand by using TinkerVertex.getGraph().traversal() ?

Is is ok to generate GraphTraversalSource on demand by using TinkerVertex.getGraph().traversal() ? Since GraphTraversalSource is reusable, maybe it is a bad practice ?...

How to to get total count for pagination with gremlin query using java Apache thinker pop

I need to implement pagination in my application. I'm unable to get the total count. can someone help me how to get the total count of records.

Need help to implement a generic gremlin query with Apache thinkerPop Java.

Hi Everyone, From the UI I will get one DSL query, I'm converting that into a Gremlin query. and I'm executing this gremlin query with the help of a Graph traversal source and I'm returning the query response back to UI. For now, I gave a chance to the user he can search with only three attributes (name, type, and system) so based on these three I implemented multiple gremlin queries and if else conditions. yesterday I got a new requirement for business people who want to search with multiple attributes. in these scenarios, I need to implement queries in a generic way. if I have three properties data I'm executing like this with Java code. String name ="john";...

Edge TTL not working for Janusgraph with Bigtable

I'm creating edges with TTL of 30 seconds but I can see those edges aren't getting deleted. I'm using Janusgraph 0.6.1 and I'm able to see a TTL of 30 seconds when I do gmt.getTTL(mgmt.getEdgeLabel("ttlTest3")).getSeconds(). What can be the cause of this?