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
2 answers

Using a back step to get two connected vertexes

If I have 3 vertex's A, B, C, where B has an edge to A and C. Starting with B how can I get values for A and C g.V("b").out("toC").as("c").out("toA").as("a").select("c", "a").next() This is what I have but it causes an error because I don't think…
xeroshogun
  • 1,062
  • 1
  • 18
  • 31
0
votes
1 answer

Gremlin pagination via RangeLocalStep(0,1) fails on an empty traversal

I've followed the Gremlin pagination receipe and find it works fine in all scenarios, except when you ask for 1 item against an empty traversal, then it fails with an error: The provided start does not map to a value: []->[NeptuneMemoryTrackerStep,…
cuzzlor
  • 320
  • 2
  • 10
0
votes
2 answers

aws neptune bulk load parallelization

I am trying to insert 624,118,983 records divided into 1000 files, it takes 35 hours to get loaded all into neptune which is very slow. I have configured db.r5.large instance with 2 instatnce. I have 1000 files stored in S3 bucket. I have one…
Jigar Gajjar
  • 183
  • 2
  • 12
0
votes
1 answer

Can SHACL be implemented using SPARQL?

I'm trying to find a way to implement SHACL validations using SPARQL in my AWS Neptune Graph database. Is there a way to do so?
Aman Singh
  • 27
  • 3
0
votes
1 answer

Alternative for gremlin sideEffect since Neptune doesn't support it?

In AWS Neptune I am trying to create a similarity edge between user vertices by calculating cosine similarity as described by Daniel Kuppitz here -- https://gist.github.com/dkuppitz/79e0b009f0c9ae87db5a#file-cosim-groovy-L368 -- gremlin's sideEffect…
Programjon
  • 23
  • 6
0
votes
1 answer

Why AWS Neptune produce so many results for graph?

Graph %%gremlin -p v,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV -l 40 -le 40 -g Datagroup…
48bits
  • 15
  • 3
0
votes
0 answers

AWS Full-Text Search with Elastic: Invalid endpoint provided for external service query

Currently I'm playing with AWS ElasticSearch (OpenSearch) on top of AWS Neptune. They are classically integrated through Neptune streams. When I'm trying to execute Gremlin query: t.withSideEffect("Neptune#fts.endpoint",…
0
votes
1 answer

AWS Neptune Schema Optimization - Billions of nodes and edges

I am creating an AWS Neptune graph that will eventually have billions of nodes and edges. With this kind of data volume, I was wondering if there are some best practices when creating the schema to optimize for queries. One thing in particular that…
0
votes
2 answers

Gremlin - sorting group by results

I am grouping vertices by any number of group parameters and I expect the resut to be sorted by those parameters. Simple test…
0
votes
1 answer

Gremlin query to group by multiple columns (from vertex, and edge)

I have a developer vertex and a project vertex and an edge with start date and end date properties. A developer can work only on one project at a given point of time. Sometimes they are assigned to multiple projects with the same start date by user…
user2026504
  • 69
  • 1
  • 9
0
votes
1 answer

Is there a way in SPARQL/ Neptune Notebooks to get Graph #2 as the visualization instead of Graph #1?

Querying this graph results in graph #1. Can we plot Graph #2? I don't think getting Graph #2 is a possibility but if anyone knows, do help. Mark :Friends_Name "John" Mark :Stays_In "USA" John :Stays_In "USA
Aman Singh
  • 27
  • 3
0
votes
2 answers

Unexpected Count & Filter Behaviour in AWS Neptune

I'm getting an unexpected StopIteration error with some gremlin queries that contain a count step within nested filter steps. This error can be recreated with the following code (using Gremlin-Python, 3.5.0 in my case): filter_header =…
0
votes
1 answer

Vertex properties order in valuemap

addV('src'). property(id,'sales__src'). property("index1","brand"). property("index2","time"). property("index3","city1"). property("index4","city2"). property("index5","city3"). …
48bits
  • 15
  • 3
0
votes
1 answer

Return fictive edges from Gremlin query

I have a graph with the following vertices and edges for example: A->B->C and I want to write a gremlin query that will return a path like A->C so it will be visualized in the Jupyter notebook I'm using (aws-notebooks-visualization. This means…
Avner Levy
  • 6,601
  • 9
  • 53
  • 92
0
votes
1 answer

How to connect to AWS Neptune graph-notebook from JupyterLab?

I followed the steps in - https://github.com/aws/graph-notebook , and I was able to run the magic commands from my Mac. But I need to get this configured in JupyterLab. Here is what I did: Created a new conda env in JupyterLab Installed all…
aaaaa
  • 11
  • 1