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

All Questions

-1 votes
1 answer
28 views

Gremlin Query to get longest common subsequence for a given source from the Azure Cosmos graph

lets assume I have got list of all longest common paths for given source say A using below query g.V().hasLabel('A').repeat(out()).until(__.not(out())).path().by('id') Result: [ { "objects":...
place holder's user avatar
0 votes
0 answers
334 views

Tinkerpop Gremlin with Azure Cosmos DB Emulator: Invalid handshake response getStatus: 200 OK

I'm following the tutorials in https://learn.microsoft.com/en-us/azure/cosmos-db/local-emulator?tabs=ssl-netstd21#api-for-gremlin to use azure cosmos db emulator for gremlin. But got always following ...
Peng Liu's user avatar
1 vote
2 answers
116 views

Project by, with optional properties

I believe this question is for Tinkerpop, not specific to the CosmosDB implementation; just some semantics might be baked into my query examples. I've developed a data layer that creates queries based ...
Curt's user avatar
  • 60
0 votes
1 answer
276 views

Cannot add vertices or edges to CosmosDB Gremlin graph with Python SDK

I have a Cosmos DB instance running the Gremlin API, and I am using the Python SDK on 3.7. Currently I am trying to build a graph that models papers with topics and authors, by having each object ...
AgentNo's user avatar
  • 251
1 vote
1 answer
238 views

Gremlin Query to check for pairs of edges on vertices

For some context: I am currently using azure cosmos db with gremlin api, because of the storage-scaling architecture, it's much less expensive to perform a '.out()' operation than a '.in()' operation, ...
Nines's user avatar
  • 21
0 votes
0 answers
116 views

Remove or replace id with entityId in gremlin response

Using Strategy I'm able to transform g.V(id) to g.V().has("entityId", id) But is there a way I can remove id from gremlin output or replace it with entityId? Without making changes at the ...
Harshit Sharma's user avatar
0 votes
1 answer
614 views

Gremlin .repeat() max depth

I have a dataset that contains a few hundred paths that represent a series of recorded events. I want to find out how long the average event path is. It's stored in a quite simple graph with about 50k ...
picklepick's user avatar
  • 1,539
2 votes
1 answer
112 views

Gremlin query combine vertices with unrelated vertices CosmosDB

I would like to get several vertices e.G. with the label "user" combined with vertices, they are not related to, yet e.G. with the label "movie". I know, that the strength of ...
Manuel Hummler's user avatar
0 votes
1 answer
78 views

Querying details from GraphDB

We are trying to implement Customer oriented details in Graphdb, were with a single query we can fetch the details of a customer such as his address,phone,email etc. We have build it using had address,...
Sneha Nair's user avatar
4 votes
1 answer
750 views

CosmosDB: Gremlin Query to create a new property using existing property

Each vertex has a structure: { Id: 123, field1: 10 } I want to add field2 to all the vertices such that field2 has its value equal to field1. The challenge is that almost all the queries I ...
dragos's user avatar
  • 303
1 vote
1 answer
544 views

How to return all steps of traversal even if Gremlin query can not complete?

My problem is the following: I have a graph containing vertices labeled as 'user' and edges between them that corresponds to their family relationship. The two types of vertices are parent users and ...
szeb's user avatar
  • 376
1 vote
0 answers
272 views

Defining variables in Azure Cosmos DB Graph query

I am struggling with running the pagination script on Azure Cosmos DB Graph, using Gremlin.NET: t = g.V().hasLabel('person');[] t.next(2) t.next(2) It comes from Tinkerpop page where it is described ...
Radosław Maziarka's user avatar
2 votes
1 answer
351 views

Union step does not work with multiple elements

The following query returns a user map with an "injected" property called "questions", it works as expected when g.V().has() returns a single user, but not when returns multiple users: return g.V()....
fermmm's user avatar
  • 1,206
2 votes
1 answer
1k views

Rename property with Gremlin in Azure Cosmos DB

Some of our codebase has changed, so it now expects the vertices that used to have a property with the name "Sdg" to now have a property with the name "causeType" and with the same value instead.... ...
oPolo's user avatar
  • 566
0 votes
2 answers
183 views

Gremlin Distance matrix with multiple edge properties of a path

I'm new to gremlin, please help me with a query for below graph data. Gremlin sample graph graph = TinkerGraph.open() g = graph.traversal() v1 = g.addV('4630').property('loc','B_1_1').next() v2 = g....
Pavan Kumar R R's user avatar

15 30 50 per page