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
-1
votes
1 answer
Is there a way to group a vertex with another vertex property using gremlin in Neptune DB?
I have many vertices on Neptune DB connected with different edges. I want to fetch an entity, for instance Ticket which is edged to an entity Customer which has an attribute firstName. How can i group Ticket by one of the Customer attribute for…

Avinash
- 5
- 2
-1
votes
1 answer
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').property('name', 'Japan')).as('country')
…

Thirumal
- 8,280
- 11
- 53
- 103
-1
votes
2 answers
Graph Database Design to Avoid Loops
I am designing a system that computes best shipping route for commercial containers.
as such the path a container typically takes is:
pickup -> port of load -> port of destination -> delivery
I have composed a list of known locations from which a…

Superzarzar
- 509
- 2
- 8
- 16
-1
votes
1 answer
Is a graph database the right way to represent hierarchical electric power distribution?
I have a time series database that takes in power meter data for a campus. Using this data has been a challenge, in part because the power distribution is a hierarchy. There are some cases where if you want to know how much power building X is…

wz2b
- 1,017
- 7
- 24
-1
votes
1 answer
Sample code to convert Wikidata dumps to Gremlin format
Could you share a sample code to convert Wikidata dumps to Gremlin format, please?
I would like to load the converted Gremlin CSV data into AWS Neptune.

MAK
- 1,915
- 4
- 20
- 44
-1
votes
1 answer
How to get a properly formatted Tree hierarchy Json using Gremlin query
I am trying to retrieve the Tree hierarchy structure from AWS Neptune DB. i am using the below query to retrieve the data in JSON format
g.V().hasLabel(labelid.toLowerCase()).has("name", "Val oswalt").repeat(__.inE().outV()).emit()
…

Soumyakanta
- 3
- 1
-1
votes
1 answer
Support for adding custom Gremlin DSL in AWS Neptune and Azure Cosmos DB?
I am wondering if AWS Neptune and Azure Cosmos DB support adding custom Gremlin DSLs?
Also, do they support inline lambdas?
Thank you.

geeko
- 2,649
- 4
- 32
- 59
-1
votes
1 answer
How to delete all existing edge and re-insert them from a CSV file
Currently I am using Neptune's bulk loader to load data from CSV to Neptune database using Python. I was getting only modified records. So I was only inserting the data.
Now the file contains full/historical records and the requirement is to delete…

user2026504
- 69
- 1
- 9
-1
votes
1 answer
Select multiple edges and vertexes in a gremlin query
I am creating a vertex with multiple edges but need a bit of help writing a query to retrieve the data.
Creation query
g.addV("referral")
.as("r")
.property("createdAt", Date.now())
…

xeroshogun
- 1,062
- 1
- 18
- 31
-1
votes
1 answer
Gremlin query to get all interconnected vertex value in javascript
Can any one help me to figure out how to fetch content of all vertex which are connected each other in javascript , I need all the values of all vertex which are connected
For example in below diagram I have a business vertex and there are two…

Alok Hegde
- 1
- 1
-1
votes
1 answer
Data model for Graph database AWS neptune
We are planning to migrate Data from AuroraDB to AWS neptune (property Graph). we have table in AuroraDB with 3.5 million records, and which has relationship with other five tables. if I have to create all the records as Vertices result in 3.5…

Harish
- 11
- 3
-1
votes
1 answer
How to Connect AWS neptune database in Java Project IDE IntelliJ
we are planning to migrate data from AuroraDB to AWS neptune ( Property Graph) . I have all the data in AWS neptune.
I have to write API to interact with the AWS neptune. I need Connection details and Jars.
please provide details, we are using…

Harish
- 11
- 3
-1
votes
1 answer
Amazon Neptune compatible with Tinkerpop? Why and how?
I'm trying to learn a bit about graph languages and the query language Gremlin. This is from the docs:
Amazon Neptune is compatible with Apache TinkerPop3 and Gremlin 3.4.1. This means that you can connect to a Neptune DB instance and use the…

Jwan622
- 11,015
- 21
- 88
- 181
-1
votes
2 answers
Update a property value without adding an additional value, in gremlin_node
I have written this gremlin query to update a property:
g.V("7cb57dad-d261-29cb-b886-affcd7442b73").property('tname', "updated tribename")
Is this the correct way to update a property in gremlin-node? Or do I have to pass in single property to…

Muhammad Mughees
- 21
- 6
-2
votes
3 answers
Unable to Load Data in Amazon Neptune from S3 Bucket
I am using Amazon Neptune as GraphDB.
While trying to load data from the S3 bucket facing an exception mentioning
"{"code":"InvalidParameterException","detailedMessage":"The source s3-URL does not exist/not reachable"}".
Have checked the S3…

Ranjan
- 71
- 3
- 9