Questions tagged [gremlinnet]
37 questions
0
votes
0 answers
Gremlin.Net: Message with op code [close] is not recognized
I am trying to run this query against AWS Neptune Db using Gremlin .Net client and I getting an exception with message.
Message with op code [close] is not recognized.
Is there something wrong in this code?
var query =…

S7H
- 1,421
- 1
- 22
- 37
0
votes
0 answers
P.Within method in Gremlin.net does not translate the array correctly
Suppose I have the following code in gremlin.net:
var graphQuery = graph.V(source.ToString());
var graphOutCondition = __.OutE().HasLabel("Transport");
foreach (var filter in filters)
{
if…

arian shahesmaeili
- 13
- 3
0
votes
1 answer
How to use CreateItemAsync to add an item with a list to an Azure gremlin DB
I am new to Azure Gremlin and I am trying to insert an item to the database that includes a list using Container.CreateItemAsync with Microsoft.Azure.Cosmo in C#.
Reading around I tried this. First, I have a class.
public class MyItem
{
…

gulu
- 115
- 8
0
votes
1 answer
gremlin.net how to create vertex/edge with id
I am using latest gremlin.net (3.6.1) and NET 6. I am trying to create vertex/edge, and assign them with existing id, instead of letting server creating id for them.
In gremlin console, this could be done by
g.addV('part').property(id, '59578').
But…

Ming Jiang
- 3
- 1
0
votes
0 answers
Is there a formula to adjust the ConnectionPoolSettings and throughput for Cosmos DB Gremlin API?
I am using the Cosmo's DB Gremlin API to insert a bunch of data into the cosmos DB database. However, it is very inconsistent as the data sometimes insert successfully and sometimes times out or have too many requests. My throughput is set manually…

zhouf
- 23
- 6
0
votes
1 answer
Group Neighbors by Outgoing Edge Type and Add Self to Result List
I want a result like this:
[
{
"vertex": [ the_vertex_itself ]
},
{
"outgoingEdgeGroup1": [ list_of_outgoing_neighbors_with_edge_type_outgoingEdgeGroup1 ]
},
{
"outgoingEdgeGroup2": […

Kal Woodside
- 5
- 2
0
votes
0 answers
Trouble translating gremlin query to gremlinq (ExRam.Gremlinq)
I'm trying to translate the following working gremlin query to C# using Gremlinq (CosmosDB provider), and I'm struggling to find the root cause why it doesn't compile.
Original query (working):
g.V('topic_1').optional(__.as…

martinoss
- 5,268
- 2
- 45
- 53
0
votes
1 answer
Is there any execution order guarantee for SideEffect in Gremlin
I have a bit of Gremlin.Net code that copies a Vertex into a new one, marks the old edge as 'ended', links the new vertex (clone) and updates some of the properties in it. Ignoring my own DSL code in the snippet, my question is, can I rely on the…

Pete Roberts
- 118
- 7
0
votes
1 answer
Projecting all values in Gremlin
I would like to concatenate all the values of two related vertices in Gremlin.
Given the following:-
g.addV('Path').as('1').
property(single, 'Source', 12345).
addV('PathState').as('2').
property(single, 'Length', 201).
property(single,…

Pete Roberts
- 118
- 7
0
votes
1 answer
Exception on Limit() with Gremlin.Net
I am looking to make a query with Gremlin.net on a JanusGraph server, who will find the best route in my Graph (between one point and another, the best route).
To replay the error
I made a repo on Github with a sample application. source Github,…

Ryck
- 87
- 1
- 12
0
votes
1 answer
How to update/add vertex properties in gremlin.net
I want to add/update vertex properties in through the following function to janusgraph with
Gremlin.Net version=3.4.6; JanusGraph.Net version=0.2.2
public class DataManager
{
private readonly IGremlinClient client;
private…

hpstory
- 25
- 6
0
votes
1 answer
Retrieve all vertices from root vertex joined by edges with Gremlin query
How can I retrieve all vertex properties starting from the root vertex in Gremlin query?
We have the following structure:
Root Vertex: Employee
Edges: EdCompany, EdDepartment, EdRole
Vertices: Company, Department, Role
We are trying to receive the…

stfno.me
- 898
- 7
- 24
0
votes
1 answer
cosmos gremline cross container mapping
Cosmos DB Gremlins two graph ( container ) - graph1 & graph 2 .
graph1- - person(node )
graph2- - city(node )
can we make edge between person and city where they are located different container ?

Jack
- 21
- 1
- 5
0
votes
0 answers
Gremlin.Net, how to do a Left Outer join?
I try to understand how to create a request similar to a left outer join in Gremlin.Net.
I have this data :
using (GremlinClient client = new GremlinClient(new GremlinServer("localhost", 8182)))
{
g =…

Parashift
- 1
- 4
0
votes
1 answer
Create Vertex only if "from" and "to" vertex exists
I want to create 1000+ Edges in a single query.
Currently, I am using the AWS Neptune database and gremlin.net for creating it.
The issue I am facing is related to the speed. It took huge time because of HTTP requests.
So I am planning to combine…

Kishan Gajjar
- 1,120
- 3
- 22
- 43