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
AWS Neptune connection pool settings
We're using a connection pool to communicate with AWS Neptune from an AWS Lambda. Due to this, we are experiencing various connection problems. Usually, it happens after a maintenance window and requires a Neptune restart to fix it.
For example,…

Alexander Pranko
- 1,859
- 17
- 20
0
votes
1 answer
Mysterious timeout when connecting to neptune db
I'm getting this error message when trying to connect to a aws neptune db from a lambda:
2022-05-05T18:36:04.114Z e0c9ee4c-0e1d-49c7-ad05-d8bab79d3ea6 WARN Determining whether retriable error: Server error: {
"requestId": "some value",
…

Uche Ozoemena
- 816
- 2
- 10
- 25
0
votes
1 answer
Sort vertices by presence of 2 properties
UPDATE 1
I've added the descLength and imageLength properties to allow for easier sorting. The idea is that constant(0) can be used to fill in the values for users who lack either property, and any length greater than 0 can be used to identify a…

Uche Ozoemena
- 816
- 2
- 10
- 25
0
votes
1 answer
AWS Neptune FTS returns IOException on every federated queries to OpenSearch
I am trying to implement full text search on AWS Neptune (engine 1.0.4.2) with AWS OpenSearch.
A GET amazon_neptune/_search on OpenSearch returns:
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 2,
"successful": 2,
…

realpac
- 537
- 6
- 13
0
votes
0 answers
Gremlin Java client throws a java.util.concurrent.TimeoutException
We have a AWS Neptune db.r4.large instance which with 2vCPUs can run 4 threads and hence 4 queries maximum at a time. We use the Gremlin Java client to connect to AWS Neptune. We are seeing regular persistent java.util.concurrent.TimeoutException…
0
votes
1 answer
AWS Neptune: Notebook Does Not Connect Though I Can Connect to the DB from my EC2 Instance
Problem
I have created an AWS Neptune DB cluster and it does not connect from the Jyupiter Notebook (SageMaker). The status check does not respond and eventually displays a timeout message after a minute or longer. It looks like it is hanging.
I…

Manabu Tokunaga
- 956
- 10
- 19
0
votes
0 answers
Neptune GraphQL Specify Deep Tree
I have this type defined:
"Convo object type"
type Convo {
"The Neptune Conversation identifier"
id: String
"A key for the Convo"
key: String
"The date the conversation was created"
createDateTime: String
"If isHead ==…

Greg Finzer
- 6,714
- 21
- 80
- 125
0
votes
1 answer
create vertex if not exists with nodejs gremlin
I'm trying to use the technique described here for preventing duplicated edges in gremlin. I'm working in javascript and the query is failing with this error: Server error: Neither the map, sideEffects, nor path has a v-key: WhereEndStep(v) (500).…

Uche Ozoemena
- 816
- 2
- 10
- 25
0
votes
1 answer
create AWS Neptune graph from raw csv
I saw a lot of tutorials about how to load csv (Gremlin) data in the format of vertices and edges into AWS Neptune. For a lot of reasons, I cannot create vertices and edges for data loading. Instead I have just the raw csv file where each row is a…

Gene Xu
- 609
- 1
- 8
- 18
0
votes
1 answer
Gremlin using select in hasId returns incorrect result
I'm trying to execute a gremlin query where a saved vertex id is re-used later in a hasId clause. What I see is that when I put in the literal Id the answer is correct, however when I substitute the literal for a select('deployable_id') the answer…

Jake
- 3
- 2
0
votes
1 answer
Gremlin set property operations
I have below mentioned dataset
g.addV('testvertex').property(id, 'user1').property(set, 'states','TX').property(set,'states','CA').property(set,'states','AL').property(set,'states','AK')
how do I find the count of states 'user1' has lived in?
if…

Akhil
- 75
- 2
- 8
0
votes
1 answer
drop specific Vertices that may not exist
I would like to drop specific vertices from my Neptune graph. I get a list of id's from outside Neptune and wish to drop all of them. Problem is, some of them may not exist.
I tried this, but it seems I can't hand over an array:
g.V(['1', '12',…

Meike
- 171
- 13
0
votes
2 answers
Connecting AWS-Neptune from EC2 with Signature version 4 signing
I'm having difficulties connecting to Amazon Neptune Cluster from EC2 instance using any of sample applications with my IAM…

ibecar
- 415
- 3
- 10
0
votes
1 answer
Gremlin query group by clause
I am using neptune graph database. Need help writing a query with a group by clause.
We have three nodes
CAMPAIGN → AD → LP
Campaign to Ad is 1 to many mapping
AD to LP is 1 to 1 mapping
Suppose we have the following vertices and associations
C1 →…

user3416408
- 11
0
votes
1 answer
Gremlin - Looking at a graph at different levels (hierarchies)
Disclaimer: I'm coming with more of a relational DB world, so I might come with some misconceptions on what the best practices are for storing and working with graph databases.
Anyway, let's say I have data with some hierarchy in it.
Let's say I…

sid802
- 315
- 2
- 18