For questions related to Amazon Neptune, a graph database service which supports both Property Graph and RDF graph models, as well as their respective query languages Apache TinkerPop Gremlin, openCypher and SPARQL.
Questions tagged [amazon-neptune]
930 questions
0
votes
1 answer
Getting more data on Gremlin traversal than just node id?
I'm looking to get more data back in my jupyter visualization on Neptune than just Node ID
g.V("specific-id").emit().repeat(both().simplePath()).dedup().out().path().by(T.id)
In particular, it would be nice to know the label as well and maybe any…

Ryan
- 1,102
- 1
- 15
- 30
0
votes
1 answer
Finding outliers in Gremlin to find nodes with more than N edges?
I'm trying to figure out how to find outliers in our graph. In particular nodes with more than N edges where N could be some high number. Our graph has over 2 billion nodes. Is there an efficient way to do this?

Ryan
- 1,102
- 1
- 15
- 30
0
votes
1 answer
How do I properly project a list of valueMap()?
I am currently trying to project several different "properties" resulting from one vertex that I have located. Figured out 1-1, where it is missing, however multiples I run into a bit of an issue.
I was able to force a representation of individual…

Joe Kennedy
- 91
- 6
0
votes
1 answer
Gremlin: Find all the paths between two nodes and transform the query result into JSON format
I'm writing Gremlin python queries on a Neptune database
I want to find all the paths between a node A and a node B.
Then I would like to write the data into a JSON format that looks like this:
{ "nodes": [
{ "id": 1, "name": "A",…

question1234
- 25
- 5
0
votes
1 answer
Amazon Neptune queries using Gremlin: How to solve error "Task timed out after 10.01 seconds"?
I'm trying to query my Amazon Neptune Database from a Lambda function that uses Python as the programming language.
My query is
g.V('1').out().toList()
After 10 seconds I get the error: "Task timed out after 10.01 seconds"
I tried to change the…

lalala
- 3
- 3
0
votes
1 answer
How to frame this query in gremlin
I am using the Amazon Neptune graph database. I have a SQL query in Java.
select start_dt from maint_actv where rec_id = "+ Id + " and start_dt is not null limit 1
Q) How to express the "start_dt is not null" in Gremlin ?

Harish
- 11
- 3
0
votes
1 answer
How can I write a conditional UPDATE STATEMENT in Gremlin
How can I write a gremlin query to update the status value to "shared" whenever the product is shared by the user. When the product isn't shared, I want the status to have a different value. Will I need to set a default and update value in the same…

Didi
- 431
- 1
- 4
- 13
0
votes
1 answer
How to use neptune-export
Can someone please list out a detailed stepwise process to export data from Neptune to S3(or local storage) in form of CSV.
I followed the doc(which seems to be the only resource available online), but it is not very clear.
TIA
0
votes
1 answer
How can I access the Neptune Database from my local environment using SSH tunnel?
I have both application and network load balancer. EC2 instance and the Neptune are in the same VPC group. I am able to access the EC2 instance by using ssh username@ and can access the Gremlin server there and execute queries but how can I make a…
0
votes
1 answer
GraphDB complex query help in gremlin
I am new to graphdb's and gremlin and struggling with a query I need to come up with
I have users(vertex) who can be members of(edge: memberOf) a group a group(vertex), uses in that group can also like (edge: 'likes') certain foods(vertex) that…

xeroshogun
- 1,062
- 1
- 18
- 31
0
votes
1 answer
Neptune with gremlin error when creating edge
I'm new neptune and graph dbs and trying to create a simple edge between two vertexs and getting a weird error that I don't fully understand.
const user = await g.V().has('name', 'john').next()
const group = await g.addV("group").property("name",…

xeroshogun
- 1,062
- 1
- 18
- 31
0
votes
1 answer
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 = g().V(cognito_username).hasNext()
File…

Thirumal
- 8,280
- 11
- 53
- 103
0
votes
1 answer
Python/Neptune: getting a traversal object
I'm using the client.Client class from gremlin_python.driver to connect to AWS Neptune. See the following
def _prepare_request(method, url, *, data=None, params=None, headers=None, service='neptune-db'):
_ = requests.Session()
…

user1187968
- 7,154
- 16
- 81
- 152
0
votes
1 answer
Gremlin/Neptune pagination using range() gives MemoryLimitExceededException
I have the following pagination query:
g.V().hasLabel('my-label').flatMap(out().order().by(id)).range(15000, 15299)
and I getting the following error:
[ERROR] GremlinServerError: 500:…

user1187968
- 7,154
- 16
- 81
- 152
0
votes
1 answer
Migrate from OrientDB to AWS Neptune
I need to migrate a database from OrientDB to Neptune. I have an exported JSON file from Orient that contains the schema (classes) and the records - I now need to import this into Neptune. However, it seems that to import data into Neptune there…

Mark
- 27
- 7