All Questions
Tagged with janusgraph python
30
questions
1
vote
1
answer
38
views
How to resolve "Unclosed client session" from aiohttp
I'm pulling data from an API and populating Janusgraph DB running in the docker container per the installation site:
docker run --name janusgraph-default janusgraph/janusgraph:latest
The python ...
0
votes
0
answers
21
views
Export JanusGraph graph image into Excel
I'm using JanusGraph in Jupyter Notebook. I'm currently looking to export my results into Excel. I'm able to export out the data, but not the graph image itself.
At the moment, I'm just manually cut/...
0
votes
0
answers
40
views
janusgraph python unpack requires a buffer of 4 bytes
I am trying to add vertex graph in Janusgraph.
Connection has been established but when it starts adding the vertex I am getting error:
unpack requires a buffer of 4 bytes.
My janusgraph is running ...
0
votes
1
answer
27
views
gremlinpython writing a helper function to create vertexes if they don't exist, and create an edge between them if it doesn't exist
I'm working with gremlin and gremlinpython for the first time, and I'm hitting a wall when I try to create new vertexes and an edge between them. I've looked at some of the other resources online, but ...
1
vote
1
answer
290
views
Why "_ipython_canary_method_should_not_exist_" occurs in Jupyter?
I was trying to reach the janusgraph deployed inside the GKE cluster, using the below code.
from gremlin_python import statics
from gremlin_python.structure.graph import Graph
from gremlin_python....
0
votes
1
answer
153
views
Default handling of simultaneous Gremlin queries
Goal
I want to understand the way JanusGraph is handling simultaneous gremlin queries. Is it sequential or parallel? How is it decided?
The underlying interest is that I need to do a lot of ...
1
vote
0
answers
213
views
Multiprocessing gremlinpython queries
Goal:
Accelerate the random walk generation by using multiple processes.
Get the list of vertices ids from which I want random walks to be generated in an input queue
Start as much processes as ...
0
votes
1
answer
115
views
How do I pull specific property values from an injected object when adding a batch of edges in a Gremlin/TinkerPop traversal?
I want to add batches of edges to a JanusGraph db that already contains nodes. I want my edges to support setting dynamic/optional properties.
I've cobbled together the following traversal (based on ...
2
votes
1
answer
827
views
Spawning child traversals anonymously using Gremlin-python and graphexp
I'm trying to create a graph from scratch that i'm visualising in graphexp, but i'm struggling to undertand the anonymized traversals concept and how to create them
I'm using python 3.9 and ...
3
votes
1
answer
1k
views
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 ...
1
vote
1
answer
3k
views
Multiprocessing Gremlin "OSError: [Errno 9] Bad file descriptor"
I'm trying to compute a feature for every vertex in my graph using gremlinpython. It's too slow to sequentially iterate over every single vertex. While batching could help to provide a speedup, I ...
0
votes
1
answer
610
views
gremlin io step from url
https://www.compose.com/articles/importing-graphs-into-janusgraph/
shows how you can import data into janus graph.
Since i couldn't get janusgraph docker working on my Mac computer using localhost i ...
0
votes
0
answers
173
views
Multithreaded python program to ingest data in Janusgraph
I create a program for adding data to janusgraph using multithreaded python.
Since the rows of my data files are independent, i could split my file to the number of threads i want to run on.
Will ...
1
vote
1
answer
46
views
construct janusgraph a get query in python
Is it possible to construct a query in parts and run in gremlin python.
some thing like this -
q="hasLabel('foo')"
m="has('type','goo')"
g.V().q.m.values('ABC').toList()
instead of directly ...
1
vote
1
answer
929
views
Unable to list all vertices present in Janusgraph with ".toList()" using Gremlinpython
I have tried testing what is in a graph that I created to see whether nodes were indeed created.
The code to create a small graph for testing:
from gremlin_python import statics
from gremlin_python....