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
Neptune bulk loader to reload the graph and vertex edges
I have a Neptune DB with a graph representation of my test network. I’m using bulk loader to generate the files and updating the graph. Now let’s say a device moved from one switch to another. And when I reload the graph, the edge is retained…

ak97
- 15
- 1
- 6
0
votes
1 answer
Gremlin `elementMap() step` returns less elements than actually present
I have an application with more than 3000 vertices having the same label , let's say ABC. It is required for my application to get the list of all the vertices and their properties for the user to choose the entity and interact with it. For that I…

Shubham Uttarwar
- 41
- 1
- 2
0
votes
1 answer
Neptune Gremlin query to recommend users based on common AND positive rated content
The Gremlin query pasted below returns an ordered list of friends of a given user - the ordering is descending, based on "how many of the same movies have we rated". I would like to only compare those movies where rated.score > 5 (on a 10 point…

Programjon
- 23
- 6
0
votes
1 answer
How to generate recommendations for a User using Gremlin?
I am using gremlin QL on AWS Neptune Database to generate Recommendations for a user to try new food items. The problem that I am facing is that the recommendations need to be in the same cuisine as the user likes.
We are given with three different…

sharpshine99
- 23
- 5
0
votes
1 answer
Multiple add if doesn't exist steps Gremlin
I have an injected array of values. I'm I want to add vertices if they don't exist. I use the fold and coalesce step, but it doesn't work in this instance since I'm trying to do it for multiple vertices. Since 1 vertex exists I can no longer get a…

Kyano
- 174
- 1
- 8
0
votes
1 answer
How to select value to be the value in the property step in gremlin
I'm trying to select a value from an injected array and set it as a value in the property step. This is failing because I can't use the select step inside the property step.
This is my current failing query:
await g
?.inject([
{…

Kyano
- 174
- 1
- 8
0
votes
1 answer
How to bulk load vertices and edges to an existing AWS Neptune Graph
I have a running AWS Neptune graphDB which is being used in a production environment. I have since identified new vertices that I would like to add that will connect to specific existing vertices in the DB.
I have added the original set by splitting…

d95l
- 13
- 2
0
votes
1 answer
Get child vertex that match search
I'm implementing a graph database on ASWS Neptune and I'm using as well AWS OpenSearch to allow me perform a full text search.
I want to get all the child vertex that match a property. (In this case get all documents)
I did the following:
g.V(…

kylie.zoltan
- 377
- 3
- 15
0
votes
1 answer
Paginating SPARQL query results from AWS Neptune with boto3 or aws-cli
I would like to paginate results of a SPARQL query to AWS Neptune.
So far I've been using the HTTP API to query AWS Neptune, like
curl -X POST --data-binary 'query=select ?s ?p ?o where {?s ?p ?o} limit 10'…

npobedina
- 331
- 3
- 14
0
votes
1 answer
How would I know which one to use Gremlin and Tinkerpop
I would like to implement a graph database in our company and wanted your expert help on this. I have a data model. and want to put it into AWS Neptune, but I don't know if I want Tinkerpop or a property graph. I am a newbie. How do I go about…

Xi12
- 939
- 2
- 14
- 27
0
votes
1 answer
Prevent overlapping edges on AWS Neptune
I have a Tinkerpop graph database on AWS Neptune.
In some cases, I have more than one edge connecting two nodes.
In the screenshot below, there is a node for 'Gary Barlow' and there is a node for 'All That I've Given Away'. Two edges connect these…

Data
- 689
- 7
- 23
0
votes
1 answer
Why is the coalesce step not behaving correctly?
I have a traversal that performs a coalesce. Here is some simplified code:
g.V()
.coalesce(
__.has("color", "green"),
__.has("color", "blue"),
__.has("color", "yellow")
)
My data contains vertices with green, yellow, and blue color. My…

Fook
- 5,320
- 7
- 35
- 57
0
votes
1 answer
Gremlin - How to use the folded List Result of one traversal as the operand of a within statement
I am currently working on a query that pulls a list of viewed products for a user and then pulls a list of products purchased within orders. I would like to filter the list of viewed products against the list of products purchased with orders, with…
0
votes
2 answers
NullPointerException error while executing Athena query using Neptune connector
I am trying to execute query from Athena to show data from Neptune database. I am using Athena Neptune connector to connect to Neptune DB and show the data in Athena query editor.
However I get error when I run the following query
SELECT * FROM …

user2026504
- 69
- 1
- 9
0
votes
0 answers
python library for visualizing AWS Neptune with SPARQL
I am looking for a python tool that can help me build a visualization dashboard for my AWS Neptune RDF graph database using the SPARQL query language, something that looks similar to Reactome: https://reactome.org/PathwayBrowser/
My goal is to allow…

dk09
- 87
- 1
- 1
- 7