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

Gremlin: ConcurrentModificationException and multithreading

My application is not live yet, so I'm testing the performance of my Gremlin queries before it gets into production. To test I'm using a query that adds edges from one vertex to 300 other vertices. It does more things but that's the simple…
fermmm
  • 1,078
  • 1
  • 9
  • 17
3
votes
1 answer

Same query on the same graph returns different results on Neptune vs Gremlify

I have a large production graph on Neptune which I query using Gremlin Python. I have written a query that should return paths that contain all vertices and edges connected in any way to the queried vertex (root vertex). It seemed as though this…
KOB
  • 4,084
  • 9
  • 44
  • 88
3
votes
1 answer

PHP cURL: Encoding/Parsing (AWS Neptune using SPARQL)

I'm new to SPARQL so this might be a dumb question but I'm having troubles inserting data. I'm using the HTTPS REST endpoint to communicate with the DB. I have the following triple: "This is a literal" Which…
Orry
  • 659
  • 6
  • 21
3
votes
1 answer

What is the best practice for gremlin client cluster in java spring project

I am using Neptune (AWS) graph data base, and my client api is in java spring. My application read and write into my database. Actually we have 2 clusters for reading and writing as a bean. W e are generating several traversal and after submitting…
3
votes
1 answer

Subtraction of multiple date ranges in graphdb

I am trying to learn graphdb and compare its capabilities with relational databases. Consider the following problem: I have two lists of date ranges: date-in and date-out: Date-in date…
leontp587
  • 791
  • 2
  • 9
  • 21
3
votes
1 answer

AWS Neptune Gremlin C# GraphTraversalSource not working

I've seen multiple examples of this being done (various languages) which suggests this should work. Perhaps I'm missing a step? Commented out the lines that indicate other things I've tried. Here's how I'm getting my gremlin client and also a…
houghm
  • 31
  • 2
3
votes
1 answer

Gremlin Python - "Server disconnected - please try to reconnect" error

I have a Flask web app in which I want to keep a persistent connection to an AWS Neptune graph database. This connection is established as follows: from gremlin_python.process.anonymous_traversal import traversal from…
3
votes
1 answer

TinkerPop Gremlin How to serealize Predicate passed in Until step

I have a traversal where I need to repeat till no more new edges are found. In gremlin console/groovy I achieve this by passing a lambda that always returns false. g.V(7). repeat(out().not(hasLabel('region', 'business')).simplePath()). …
sas1138
  • 338
  • 5
  • 16
3
votes
1 answer

Alternative to combining where & and steps in gremlin query

I'm struggling to write a fast query that makes use of multiple predicates using an and step in amazon neptune. The basic graph structure is below and is used for modelling biological data. The setup is that there are "pathways" which connect to…
cts
  • 1,790
  • 1
  • 13
  • 27
3
votes
2 answers

Are there any restrictions on Amazon neptune when using gremlin syntax?

I am using a graph database for my project, Neptune by AWS. Neptune uses gremlin syntax for graph queries. I was trying to execute a scenario where I have to filter the outgoing edges from a vertex on the basis of property on the edge. Let's call…
3
votes
1 answer

Confusing parameter for cloudFormation script

Hello i am planning to run the cloudFormation stack that is preconfigured by aws here. It prompts me to fill out NeptuneBulkloadIAMRoleArn NeptuneClusterEndpoint NeptuneLambdaIAMRoleArn But i don't know what to fill in there, can you help me out?
3
votes
1 answer

Can't add vertex with python in neptune workbench

I'm trying to put together a demo of Neptune using Neptune workbench, but something's not working right. I've got this block set up: from __future__ import print_function # Python 2/3 compatibility from gremlin_python import statics from…
lostinplace
  • 1,538
  • 3
  • 14
  • 38
3
votes
2 answers

WebSocket is not open: readyState 2 (CLOSING)

On a cold start, my Lambda functions will return this error when trying to initialize a connection with Neptune. After that, the connection succeeds with no error. If the Lambda goes cold again the error returns. const dc = new…
Fook
  • 5,320
  • 7
  • 35
  • 57
3
votes
2 answers

Connecting to AWS Neptune with Gremlin.net from a local windows machine

I'm following Amazon's documentation at access-graph-gremlin-dotnet and trying to run it on a local windows machine that is connected to Neptune with an SSH tunnel through an EC2 instance. I've tested the SSH tunnel with gremlin console and it works…
Avner Levy
  • 6,601
  • 9
  • 53
  • 92
3
votes
1 answer

Is there a way to store more information on the Edges of Amazon Neptune Graph?

I am doing a small POC project where I want to represent the road network of a village using Amazon's Neptune Graph. I have intersections that I intend to use as Vertex in this graph, and streets as the Edges. A simple representation…