see https://pypi.org/project/gremlinpython/
Gremlin-Python implements Gremlin within the Python language and can be used on any Python virtual machine including the popular CPython machine.
This code, I got from the Amazon Neptune Tutorial https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-python.html
But, I got an error like this when I try to run the code in Jupyter Notebook (internal in my laptop).
This is my…
I'm trying to write a function to generate a Gremlin query. The input of the function is an array of array of strings, with the names of relationships we want to return from the graph. The graph contains information on TV and movies. So an example…
I have the following query:
g
.V("user-11")
.repeat(bothE().subgraph("subGraph").outV())
.times(2)
.cap("subGraph")
.next()
When I run it using gremlin-python, I receive the following response:
{'@type': 'tinker:graph',
…
I am running a gremlin query on the AWS neptune which use to take 2.5 minutes for the results,
I have kept my neptune_query_timeout = 500000 , the neptune engine version is 1.0.4.1
Recently I am seeing this error on my same query which just use to…
I have a graph structure like this-
Node1(Console) <----Uses--- Node2(Name, Age) -----plays----> Node3(Game)
So, i have three nodes -
Node1 is console like a PS3/ Nintendo.
Node2 is a person with properties name and Age.
Node3 is game node…
I have a scenario like below, need to get the 'Application' label vertex properties and also, the id or property of the 'work' vertex that is connected to it
I have written the gremlin glv query to get the path and the Application properties, but…
Could you please help me to understand whether there is any option where we can skip the optional in the gremlin,
the scenario is, we are traversing through a graph and has an optional statement
depending on a query parameter in the request, I will…
I am trying to simplify the following traversal:
operation_dict['output_schema'] = g.V(operation_id).outE('uses').inV()\
.project('id','label','attribute_id', 'attribute_name',…
my schema is as follows:
A "buy" from B, C, D, E;
A "know" F;
F "buy" from B, G, H.
how to get B(the common seller shared by anyone the buyer knows) only from A(a buyer) in Gremlin?
I'm trying to make a simple query to my amazon neptune database, from Rasa-x.
Here is the code from my actions.py:
class ActionQueryDietary(Action):
def name(self) -> Text:
return "action_query_dietary"
def run(self, dispatcher:…
I am new to Gremlin and am trying to convert a SQL query to Gremlin. I have two vertex types, labeled host and repo, and here is the Gremlin script to create the vertices and the edges:
g.addV('asset').property(id, 'a1').property('ip',…
I am stuck on a graph traversal problem I seem to be having. I use gremlinpython and my DB is stored in AWS Neptune.
The graph looks similar to this example:
g = TinkerGraph.open().traversal()
o1 = g.addV('o').property('order','order1').next()
r1 =…
I want to find nodes who should be linked to a given node, where the link is defined by some logic, which uses the nodes' and existing edges' attribute with the following logic:
A) (The pair has the same zip (node attribute) and name_similarity…
I use gremlin python to connect the gremlin server like this:
g = traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin', 'g'))
But when I work with subgraph(referenced here…