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

Analysing the edges between two vertices gremlin

Here is my graph g.addV('user').property('id',1).as('1'). addV('user').property('id',2).as('2'). addV('user').property('id',3).as('3'). addE('follow').from('1').to('2'). addE('follow').from('1').to('3').iterate() The below is my approach…
mmr25
  • 91
  • 12
0
votes
1 answer

Why is my Gremlin query resulting in so many requests? Is this correct behavior?

I'm attempting to debug a performance issue I'm having with AWS Neptune. I am running some Gremlin queries and they seem to always result in 30 requests on the database. I'm wondering if I've done something wrong in my query. The strange thing about…
0
votes
1 answer

How to access Neptune DB (Gremlin) in AWS Lambda?

Is there anyway to access neptune DB(Gremlin) using lambda functions? I want to access neptune DB(gremlin) and I don't know how to access.
Aye Nyein
  • 117
  • 2
  • 9
0
votes
1 answer

Gremlin search for vertexes related to 2 or more specific nodes

I'm trying to produce a Gremlin query whereby I need to find vertexes which have edges from specific other vertexes. The less abstract version of this query is I have user vertexes, and those are related to group vertexes (i.e subjects in a school,…
Joe Simpson
  • 2,546
  • 4
  • 30
  • 46
0
votes
1 answer

How to send json data using powershell from S3 to Neptune instance?

I have a turtle file that I wish to send from S3 server to the Neptune instance on powershell. Below is the command I am using Invoke-RestMethod -Uri http://edwardspoc.civwhymjvz19.us-east-1.neptune.amazonaws.com:8182 -ContentType application/json …
0
votes
1 answer

Gremlin property math on a single vertex

I'm trying to perform some math on the properties of a Vertex. My solution works in the Gremlin console, but throws an error when run in JavaScript. gremlin> g.addV("trip").property(single, "trackLength", 100).property(single, "travelDistance",…
Fook
  • 5,320
  • 7
  • 35
  • 57
0
votes
1 answer

Updating a vertex property based on another

I'd like to update a highScore based on a users score when it is incremented. If the newly incremented score is greater than highScore, set highScore = score. // initial data g.addV("player") .property(id, 1) .property(single, "score", 0) …
Fook
  • 5,320
  • 7
  • 35
  • 57
0
votes
1 answer

gremlin-python drop multiple vertices and edges in one transaction

My context: gremlin-python AWS Neptune My question is: 1) Can I drop vertices and edges recursively in one transaction given that I have all the specific ids of the vertices and edges I want to drop? The aim is to write python function that…
0
votes
1 answer

gremlin javascript can't collect the properties of a vertex

After inserting a vertex in amazon neptune , I get the an unique id . If I want to print out the properties of a vertex , I can do it easily in gremlin console But in my node js app , if I try to do the same I can't get the properties of the…
0
votes
1 answer

Can resources in different cidr blocks of the same VPC reach one another aws

Resources like databases (RDS) must be in same VPC as the EC2 instances to be reachable. Can EC2 instance reach RDS instance in the same VPC if they are in different CIDR blocks? i.e. VPC has 2 CIDR blocks, a and b. Instance in block a, database…
cryanbhu
  • 4,780
  • 6
  • 29
  • 47
0
votes
1 answer

Preserve detailed Gremlin error message when running Gremlin query with eval()

in my script I do the following: eval("query") and get: unexpected EOF while parsing (, line 1) in Jupyter i do: query and get: GremlinServerError: 499:…
cryanbhu
  • 4,780
  • 6
  • 29
  • 47
0
votes
1 answer

Graph/Gremlin query for social media use case

Mine is a social network kind scenario. I want to get all the posts 'posted' by the people I follow. For each of these posts I want to know whether I have liked it or not and also the no of likes and comments that post have(only count) and latest 3…
mmr25
  • 91
  • 12
0
votes
1 answer

print gremlin query being run without repeating code

I would like to print the query being run for debugging. I can't figure out the best way to do so without repeating the query twice, once as string to be printed, once to actually execute it. i tried: add_vertex_query =…
cryanbhu
  • 4,780
  • 6
  • 29
  • 47
0
votes
1 answer

Print Edges associated with the path

I was able to get the path of a graph with the command below, g.V('v6').repeat(out().simplePath()).until(hasId('v8')).path().limit(1) gives, ==>[v[v6], v[v3], v[v1], v[v4], v[v8]] I would like to print with the edges associated with the path.…
Kannaiyan
  • 12,554
  • 3
  • 44
  • 83
0
votes
1 answer

Sharing a graph database between Microservices

Is there any way to share a neo4j / aws Neptune graph database between microservices while restricting the access to the specific parts of the graph database to only a specific microservice ? By doing so, will there be any performance impact ?