All Questions
Tagged with janusgraph amazon-neptune
16
questions
1
vote
1
answer
125
views
gremlin_python.driver.protocol.GremlinServerError: 500: None
I'm trying to batch populate my JanusGraph database with vertices, and I'm noticing some very strange behavior. I've created a simple test script which reproduces this behavior:
import os
from dotenv ...
1
vote
1
answer
44
views
How to access the vertex which is created using coalesce in gremlin?
How to access the vertex which is created using coalesce along with an edge in gremlin?
In the below query,
when the country already exists, it return vertex to next step (adding state)
returns new ...
-1
votes
1
answer
31
views
Why `.as()`.step used before `.fold()` is not able to use/refer after `.fold()` in apache Gremlin?
Why .as().step used before .fold() is not able to use/refer after .fold() in apache Gremlin?
Eg:
g.V().hasLabel('country').has('name', 'Japan').fold()
.coalesce(__.unfold(), __.addV('country')....
2
votes
1
answer
99
views
Which is faster g.V(T.id) or g.V().hasLabel('emaployee').has(T.id, 1) in gremlin
Which is faster g.V(T.id) or g.V().hasLabel('emaployee').has(T.id, 1) in apache tinkerpop gremlin.
I have both id as well label which one is better, from a programming perspective g.V(T.id) is simpler ...
1
vote
1
answer
849
views
Gremlin/Python: run query as string
I have the following code, and run as expected. But I need to use the "g" traversal object to manipulate the graph.
from gremlin_python.process.anonymous_traversal import traversal
from ...
1
vote
1
answer
128
views
Gremlin: Return new edges created in a query without saving them (equivalent to APOC vRelationship)
I have a graph with two types of nodes: Persons and Houses. In this graph, persons can sell houses (SELLS relationship), and houses are bought by persons (IS_BOUGHT_BY relationship). This could be ...
0
votes
0
answers
116
views
Remove or replace id with entityId in gremlin response
Using Strategy I'm able to transform g.V(id) to g.V().has("entityId", id)
But is there a way I can remove id from gremlin output or replace it with entityId?
Without making changes at the ...
1
vote
2
answers
438
views
Gremlin - sorting group by results
I am grouping vertices by any number of group parameters and I expect the resut to be sorted by those parameters.
Simple test data
g.addV("machine").property("type","PC")....
1
vote
1
answer
328
views
Optimize traversal and look up in gremlin query of connected components
I'm trying to find all the nodes in a connected component in a graph, which contains around ~130M vertices and ~350M edges.
Following is the query I'm using to find the count of nodes in connected ...
5
votes
1
answer
3k
views
Anonymous traversal vs normal traversal gremlin
I have read the documentation about anonymous traversals. I understand they can be started with __ and they can be used inside step modulators. Although I dont understand it conceptually. Why cannot ...
1
vote
1
answer
419
views
Gremlin convert properties to date and calculate diff in days
In a graph database, imagine I have a vertex with 2 properties: createDate and modifiedDate, both of them of type string with values like: 2015-12-22 04:35:36.0
Is there a way to calculate the ...
2
votes
1
answer
741
views
Gremlin order on Map results
I have the below query:
g.V('1')
.union(
out('R1')
.project('timestamp', 'data')
.by('completionDate')
.by(valueMap().by(unfold()))
out(...
1
vote
1
answer
1k
views
Are multiple vertex labels in Gremlin/Janusgraph possible, or is an alternative solution better?
I am working on an import runner for a new graph database.
It needs to work with:
Amazon Neptune - Gremlin implementation, has great infrastructure support in production, but a pain to work with ...
0
votes
1
answer
720
views
Gremlin. In a parent-child relation, filter by the higher version of the child
I have a parent-child structure. The child has a version and a group. I need to create a filter for the newest version grouping by group,parent.
This query returns the values properly, but I need the ...
0
votes
1
answer
376
views
Fetch nodes recursively with Gremlin query
I'd like to define a Gremlin query which returns all the nodes recursively till there are no more nodes available:
Node: ProductionEvent
Node: Product
What I've tried so far is the following......