Convert string command of Gremlin to executable

I have created a long Gremlin chained command as a string. What is the best way to execute it in NodeJS or Python? g.addV("person"). property(id, 1). property("name", "marko"). ...

How do i upload tinkergraph into python/gremlin?

I am trying to use gremlin in python. I imported the following: from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection from gremlin_python.structure.graph import...

gremlin-python - unable to add edge property

I'm having great trouble adding properties to an edge using the gremlin_python wrapper. I'm able to create the edge, as so: eid1='123' eid2='456' edge = g.V().has('eid',...

Gremlin - TypeError: Object of type GraphTraversal is not JSON serializable

This below piece of gremlin code runs perfectly well in the gremlin console (it finds the unique start and end points of an k-step ego network, along with the minimum distance to that...

How to use geoshape in gremlinpython

In JanusGraph,there is some function like g.E().has('place', geoWithin(Geoshape.circle(37.97, 23.72, 50))) to search place data. Now I want to use gremlinpython to do that,but I can't find the...

How to retrieve a property value of a vertex in python gremlin

It might be easy, but I am really struggling with this problem. I use gremlin python lib and aws neptune db. I know the vertex id, I just want to get the value(String type in python) of one of the...

GremlinServerError: 499

I am running a Neptune Server on AWS and making gremlin queries to the db ipython cell magic in an jupyter notebook. I've got a number of traversals running and I am getting an error that is...

Is there a way of using Gremlin within an asyncio Python application?

The TinkerPop documentation describes GLV for Python. However, the examples presented in there are built around synchronous code. There is the aiogremlin library that was desingned to enable use...

How do i use GraphSON v2 instead of v3?

i am trying to run a piece of code in python which uses Cosmos DB from Microsoft Azure. I am currently using gremlinpython 3.2.6 and the latest version of Cosmos (default on microsoft azure) but...

View Neptune Graph Schema using Jupyter notebook

Is there a way to view the schema of a graph in a Neptune cluster using Jupyter Notebook? Like you would do a "select * from tablename limit 10" in an RDS using SQL, similarly is there a way to...

How can I set array as property in janusgraph?

I want to set the property for vertex and edge as a list value. I'm using janusgraph. Gremlin-python

Upsert properties using Gremlin

I'm using python and AWS Neptune. I'm using the "upsert" pattern by...

Gremlin python return edges with all properties

I'm using gremlin Python to query a Neptune DB. Given a vertices, I need to return all the outward edges with their 'from' and 'to' ids, label and any other properties. The query...

Retrieve all IDs for duplicate vertices in Gremlin

Problem I am running a query which finds duplicate vertices by the name property. I would like to know the IDs for all the corresponding vertices. At this time, only the ids in the where clause...

Gremlin Client Connecting to Gremlin / JanusGraph Server via URL-based Load Balancers

Due to security policies, I have a cluster of JanusGraph servers (running in an internal Kubernetes network) that can be accessed by external Gremlin clients via the below network route: clients...

How to rollback gremlin transaction using gremlinpython?

I'm new to gremlin, I'm trying to use python library gremlinpython to connect to Janus Graph and need to know if it is possible to rollback transaction. I've found that single traversal is...

gremlin python subgraph always empty

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...

Gremlin Python - "Server disconnected - please try to reconnect" error

I have a Flask web app in which I want to keep a persistent connection to an AWS Neptune graph database. This connection is established as follows: from gremlin_python.process.anonymous_traversal...

Gremlin query to find the entire sub-graph that a specific node is connected in any way to

I am brand new to Gremlin and am using gremlin-python to traverse my graph. The graph is made up of many clusters or sub-graphs which are intra-connected, and not inter-connected with any other...

Neptune - How to get distance to all nodes with proportional weights gremlin

I'm having difficult time figuring out query in gremlin for the following scenario. Here is the the directed graph (may be cyclic). I want to get top N favorable nodes, starting from node "Jane",...

Is it possible to use fastapi with gremlin-python?

I am trying to use fastapi with gremlin-python. That library uses tornado as transport for connecting to gremlin server, especially it uses httpclient and websockets along with tornado's...

Running into uvloop issues with Database queries from Rasa-X?

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...

Need Help in fetching result of Gremlin query into Python data structures

I am trying to run a Gremlin query on AWS Neptune database from inside Python code and want to store the returned data into Python List. This is working fine for simple Gremlin queries but some...

gremlin how to set scriptevaluationtimeout 0

I want to set scriptevaluationtimeout 0. I'm using apache-tinkerpop-gremlin-console-3.4.9. and I want to use gremlin-python.

AWS neptune throwing timeout error when th e query timeout value is higher

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...

I have try to connect python jupyter notebook with amazon neptune DB Instance, but I got an error like this, what should I do?

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...

Is there a way to get the GraphML representation of a graph from gremlinpython

I am using Janusgraph in a remote server to which I connect with a python remote client via from gremlin_python import statics from gremlin_python.structure.graph import Graph from...

Is there a way to cast a gremlinpython Graph to a networkx Graph

I want to cast a gremlinpython Graph (gremlin_python.structure.graph.Graph) into a networkx graph. I found that with package ipython-gremlin (https://github.com/davebshow/ipython-gremlin) one can...

How to calculate the PageRank and shortest path algorithm with gremlin in Amazon Neptune?

Is there any way to calculate PageRank and Shortest Path algorithm with gremlin in Amazon Neptune? As it said in gremlin documentation PageRank centrality can be calculated with Gremlin with the...

GremlinPython: ConnectionResetError: Cannot write to closing transport

I am facing the below problem very often in AWS lambda - Neptune. using the latest version gremlinpython==3.5.1. How to fix? even in the previous version - same problem user_available =...