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.
From what I've read Neo4j implements apache tinkerpop which leads me to think I can use gremlin python and rather than connect to a gremlin server I can point the python code at a neo4j server and treat it like a gremlin server.
However I can't find…
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 of Gremlin in Python's asyncio code. Unfortunately,…
I have a python flask web app, which is querying a Janus graph DB using gremlin_python. One basic question is the correct way to initialize the graph traversal object.
Can I initialize my traversal g =…
Is it possible to generate gremlin script from the bytecode?
I am working on a POC in which I need to query graph Azure CosmosDB database via Gremlin API.
Currently, Azure CosmosDB does not support bytecode. Azure development team has started…
Abstract
I'm trying to set up a Titan/Cassandra/Gremlin-Server stack in Docker (v1.13.0). The problem I'm facing is that applications trying to connect to Gremlin-Server on the default port 8182 are reporting errors (details below).
First, here is…
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", where favor is defined as:
favor(Jane->Lisa) =…
We are ingesting data in Janusgraph on Kubernetes(GCP) using python. We are doing multithreading, node chaining, indexing but still we are able to ingest only 100k (Nodes) records in 60 minutes from bigquery.
Kubernetes spec - 1 Pod with 25 vCPUs…
I am trying to get the count of all vertices with a particular label and all its children in one query like so:
g.V().hasLabel('folder').has('folder_name', 'root').as_('a', 'b').select('a',…
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 properties of the vertex, and update it.
I have…
I have written the following query which returns all paths possible from the specified node.
g.V().repeat(bothE().bothV().simplePath()).emit().dedup().path()
If we had a simple graph of 3 nodes in this structure:
A -- edge_1 -> B -- edge_2…
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 cluster in the graph.
A simple example of this is a…
I'm trying to put together a demo of Neptune using Neptune workbench, but something's not working right. I've got this block set up:
from __future__ import print_function # Python 2/3 compatibility
from gremlin_python import statics
from…
I'm trying to add a vertex with a custom ID, and while I've browsed many threads on this (e.g. here), I still can't get it to work for strings/UUIDs, only integer IDs. In fact, it appears only to accept numbers, but I'm not sure why.
gremlin>…
I have a generic question around the best practises on usage of Neptune DB as a network database and its ability to scale up for complex computing. I want to develop a user recommendation system where incoming users on the platform are prompted…