All Questions
Tagged with tinkerpop azure-cosmosdb
29
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":...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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,...
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 ...
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 ...
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 ...
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()....
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.... ...
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....