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
4
votes
1 answer
Gremlin: Returning valueMap/projected properties from group by query
Let's say I have two types of vertices, parents and children. I want to be able to query for all parent vertices and have all the children grouped by their associated parent along with properties for each child. Assume parents have multiple children…

dl8
- 1,270
- 1
- 14
- 34
4
votes
3 answers
How to run multiple gremlin commands as a single transaction?
In Amazon Neptune I would like to run multiple Gremlin commands in Java as a single transactions. The document says that tx.commit() and tx.rollback() is not supported. It suggests this - Multiple statements separated by a semicolon (;) or a newline…

Gilad
- 77
- 1
- 6
4
votes
3 answers
How to use AWSRequestSigningApacheInterceptor with AWS SDK2
I am trying to use REST calls to Neptune SPARQL on existing Java code which already uses Apache HTTP clients. I'd like to not mix and match AWS SDK1 and SDK2 (which I use for the S3 portion of loading owl to Neptune).
I see these…

Paul Cuddihy
- 477
- 6
- 12
4
votes
2 answers
How to integrate the visualisation tool Graphexp with Neptune from EC2 instance in the same VPC as Neptune
I have setup an AWS Neptune database cluster with one primary and two replica nodes in three private subnets, each in three availability zones within the same region. I have also created corresponding public subnets where EC2 instances will have a…

sage
- 587
- 1
- 8
- 28
4
votes
2 answers
getting match on multiple labels in Amazon Neptune with Gremlin
Amazon Neptune's implementation of Gremlin allows for multiple labels on vertices (see https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-differences.html)
But how to query for vertices by multiple…

Graphileon
- 5,275
- 3
- 17
- 31
4
votes
1 answer
AWS Neptune datetime()
I'm using gremlin-javascript to talk to AWS Neptune from Node. According to the docs and quickstart, dates should be set using datetime().
I did not find an implementation of this datetime() function in gremlin. Where should this be imported…

Fook
- 5,320
- 7
- 35
- 57
4
votes
1 answer
Proper handling of date operations in Gremlin
I am using AWS Neptune Gremlin with gremlin_python.
My date in property is stored as datetime as required in Neptune specs.
I created it using Python code like this:
properties_dict['my_date'] = datetime.fromtimestamp(my_date, timezone.utc)
and…

cryanbhu
- 4,780
- 6
- 29
- 47
4
votes
1 answer
AWS Neptune transaction support
Neptune currently supports only OLTP type of graph traversal queries?
But from documentation:
Transactions
Neptune opens a new transaction at the beginning of each Gremlin traversal and closes the transaction upon the successful completion of the…

ThanosG
- 119
- 12
4
votes
1 answer
AWS Neptune: Query Timeout Value
I run a long query (a two min long maybe) and the code crashes with a timeout error.
I don't use the Gremlin-Server, I directly connect to the Neptune End-point from my Python code.
For NEO4J I change the scriptEvaluationTimeout located at…

Srinath Ganesh
- 2,496
- 2
- 30
- 60
3
votes
2 answers
Handling query results in Golang
Consider the following method which executes a gremlin query in Go and then interprets or parses the results.
func (n NeptuneGremlinGraph) Query(assetID string, version string, entityID string) ([]hz.Component, error) {
defer…

Michael Burbidge
- 109
- 5
3
votes
1 answer
AWS Neptune simple opencypher count query takes too long
I have a graph database in AWS neptune which has 60M nodes. A simple count query to count all nodes takes ~6-7 minutes.
query is:
MATCH (n)
RETURN count(n) as count
Is 6 minutes to count 60 million nodes normal? what can I do to make it…

Mustahsan
- 3,852
- 1
- 18
- 34
3
votes
1 answer
Unable to create edges
I have created an AWS AppSync graphql api which on being called will run an AWS Lambda function and that function will create a vertex and edge using query language Gremlin but I am unable create edge after vertex is successfully created and AWS…

Hamza Ahmed Sheikh
- 31
- 1
- 2
3
votes
1 answer
AWS Neptune Node counts timing out
We're running a large bulk load into AWS neptune and can no longer query the graph to get node counts without the query timing out. What options do we have to ensure we can audit the total counts in the graph?
Fails on curl and sagemaker notebook.

Ryan
- 1,102
- 1
- 15
- 30
3
votes
1 answer
Neptune DB doesn't change property value to the previous value
I have very weird issue with AWS Neptune DB. I can only change property to new value and can't use any of previous names.
I'm using gremlin and node.js.
That sounds so weird so let me to add some code:
const DriverRemoteConnection =…

Dima Kurilo
- 2,206
- 1
- 21
- 27
3
votes
1 answer
unable to connect to AWS Neptune DB after enabling IAM DB authorisation
I am trying to connect to AWS neptune DB after enabling IAM DB authorisation and it is not able to connect and failing with below error.
{"code":"AccessDeniedException","requestId":"68bbc87a-cbf6-31d3-5829-91f32062239f","detailedMessage":"Missing…

santosh nahak
- 55
- 5