Questions tagged [amazon-neptune]

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.

Overview, Features, Pricing, Getting Started, Resources, FAQs

930 questions
0
votes
1 answer

How to define schema & database for a Neptune database using Python / Gremlin?

I've recently started out building a graph database using AWS Neptune. Is there a way to define schema and create database using gremlin_python? Any tutorial recommendation would be helpful too.
0
votes
1 answer

AWS Neptune reader endpoint fails to work

I have a Kubernetes pod communicating to a neptune cluster over a transit gateway. Querying and storing data over the primary cluster endpoint works without any issues at all, however, swapping to a reader endpoint just times out. This has been…
Ryan
  • 1,102
  • 1
  • 15
  • 30
0
votes
1 answer

How to write a Gremlin query when the number of input vertices is unknown?

How to write a Gremlin query when the number of input vertices is unknown? Scenario: 1. Poll -> Already existing vertex. 2. Poll Question -> User might send multiple questions that are unknown and multiple options to the question (unknown list). I…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
0 answers

Unable to retrieve data from AWS Neptune

I have created an AWS Appsync graphql api which on being called will run an aws lambda function and that function will query data from AWS Neptune using query language Gremlin but i am unable to retrieve data from aws neptune. This is my lambda…
0
votes
1 answer

Does AWS Neptune need internet access?

I was starting a neptune database from this base stack https://s3.amazonaws.com/aws-neptune-customer-samples/v2/cloudformation-templates/neptune-base-stack.json However now i am wondering why a NAT Gateway and also an Internet Gateway are started in…
0
votes
1 answer

How to filter by property in Gremlin (if exist)?

I am new Gremlin and having trouble with filtering by property. A -> B Assume A and B are vertices and has edge between them with properties Created_on and deleted_on. deleted_on property will be added only at the time of deletion. How list by the…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

Can't access Amazon Neptune via SSH tunnel Sigv4

I'm trying to access Neptune cluster status endpoint from an SSH tunnel. I can hit it without issue on my bastion host, but when doing via ssh tunnel, I get: https://localhost:8182/status {"detailedMessage":"Bad…
Ryan
  • 1,102
  • 1
  • 15
  • 30
0
votes
1 answer

AWS connection to Neptune from VPC to VPC over a transit gateway?

I'm looking for recommendations on connecting to a Neptune cluster in AWS from a VPC that the Neptune cluster does not exist in. I'm thinking if I have a transit gateway as an intermediary bridge between the 2 VPCs I'll be able to proxy the…
Ryan
  • 1,102
  • 1
  • 15
  • 30
0
votes
1 answer

Is it possible to get which or condition resulted true in traversals?

We have one photo sharing service in which one can allow or deny other set of users to view or not. We exposed this service as an API /view?caller=userId&photoId=photoId. We're using AWS Neptune Graph database service to maintain this authorization…
ashoksl
  • 383
  • 6
  • 17
0
votes
1 answer

How can I sort my results by property length?

I have these user vertices: g.addV("user").property(single,"name", "bob") g.addV("user").property(single,"name", "thomas") g.addV("user").property(single,"name", "mike") I'd like to return these sorted by the length of the name…
Fook
  • 5,320
  • 7
  • 35
  • 57
0
votes
1 answer

What is the best way to perform soft delete in Graph database?

What is the best way of implementing soft delete with timestamps( start date and end date) in Graph database?
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
1 answer

gremlin query using select() in coalesce() step

I'm trying to access the previously saved traversal using .as() in the second traversal inside coalesce() as below: query to upsert edge (update edge if present / create) Java code: g.V('x').as('start') …
CdVr
  • 323
  • 3
  • 15
0
votes
1 answer

Use gremlin module for Python to add vertex to Amazon Neptune graph database

Synopsis I am trying to use Python on an Amazon EC2 instance, in the same VPC as an Amazon Neptune instance, to add a vertex (node) to Neptune. Using the example code for Amazon Neptune, I constructed the following code sample to add a vertex (node)…
user189198
0
votes
1 answer

Saving SPARQL query results from AWS neptune to CSV files

Can anyone please let me know how to save the results of SPARQL queries in AWS Neptune to CSV file. I am using sagemaker notebook to connect to database cluster. Please find the below query. Any help would be greatly appreciated. %%sparql PREFIX…
Meghana Kb
  • 43
  • 5
0
votes
1 answer

gremlin - how to update vertex property with another vertex's property

testing data: vertex A has property 'a' value '1' vertex B has outEdge 'e' to A vertex B had property 'b' value '2' how do I update 'a' to be value from 'b' in this case '2'? I have tried this but not working g.V().hasLabel('A').property('a',…
Zhongmin
  • 1,684
  • 1
  • 16
  • 33