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.
I am using python+gremlin to implement my graph queries, but still far from understanding a lot of the concepts, and have encountered an interesting query I don't know to do.
Let's say we have a number of chef vertices with label Chef, ingredient…
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 get a sense of the graph data through Jupyter…
I am using python to run my gremlin queries, for which I am still getting used to / learning. Let's say I have vertex labels A and B, and there can be an edge from A to B called abEdge. I can find B vertices that have such edges from a particular A…
I'm new to gremlin and have been working on creating an ego network using Gremlin.
Ego-alter connections are pretty easy to find, but the problem lies in finding alter-alter connections.
Is there a way to write a query which extracts all the…
When attempting to translate a query I wrote and tested in the Gremlin CLI to gremlin-python, I'm encountering unexpected token 'as' errors on my .as('foo') expressions. How can one use the Gremlin as keyword when using gremlin-python?
I am trying to upload data in to the AWS neptune, but getting error because of date format
sample format of csv:
~id, ~from, ~to, ~label, date:Date
e1, v1, v2, created, 2019-11-04
can some one help me on this?
I have two properties on my Edges that I want to filter on: a and b. I want to filter these properties using the following list:
lst = [['0102', '2017-01-01'], ['4920', '2018-07-01'], ..., ['2198', '2018-04-01']]
... and using the following…
I am fetching all the values from my graph into a list called nodes:
nodes = g.V().valueMap(True).toList()
For each node, I would like to get the id but I don't know how. E.g. I have a field called 'name'. To get name of the first vertex I would do…
I am trying to execute lambda function on AWS neptune using gremlin python. Its hitting me gremlin-python is not an available GremlinScriptEngine. Can someone help on how to fix this.
g.V().out().map(lambda: "lambda x:…
Trying to create edges between vertices using gremlin-python, but it is not working
jupyter notebook
"g.V('ProdDev').addE('belongs').to(g.V('Dept'))"
edges should create....currently empty edges are creating...
I'm getting started with graph databases. I want to migrate a social networking application from sql to Janus Graph database. I plan to build the application using Python Django framework.
I also plan to scale the application using using IBM's…
I have a list of vertex ids. I want to get all possible edges among them.
I understand methods like filter/where would be of help here, but since I'm using gremlin-python, their implementation must be different.
I have tried :
a =…
Have a graph running on Datastax Enterprise Graph (5.1 Version), running on Cassandra storage.
Trying to run a query to get both the ID and the property.
In Gremlin Console I can do this:
gremlin> g.V(1).project("v",…
I have created the following schema using a custom partition and clustering key:
schema.propertyKey('_partition').Text().create()
schema.propertyKey('topic_id').Uuid().create()
schema.vertexLabel('custom_topic')
…
I have a graph on Azure CosmosDB which involves company hierarchies where a Top Parent exists and there are child companies like
CompanyX(Top Parent) -> CompanyY(Child of X + Parent of A) -> CompanyA(Child of Y + Parent of B,C,D)
…