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

Update a vertex and a all its child vertexes and edges

I have JSON entities like this one that I insert in the graph as edges and vertexes, as you can see, each entities are already in an highly relational format. person = { "summary": "Unix System Administrator at National Bank of Canada", …
Jasmin Parent
  • 115
  • 1
  • 2
  • 7
0
votes
2 answers

Add Additional Property to Neptune DB

I am trying to add additional property called "insert_date" to the existing vertices and edges. I tried g.V().setProperty('insert_date',datetime('2020-10-06')) Error: { "requestId": "33cf8df5-3cbe-41ac-b650-5752debec04d", "code":…
Raju
  • 65
  • 6
0
votes
1 answer

How to do a combined boolean operation in neptune using gremlin and python?

I am trying to do a query where I have multiple boolean operations to be done but can't figure out how to do it. The query is something like (A and B) or (C and D) I first tried g.V()\ .has("attra", P.lte(20))\ .has("attrb",…
Prasanna
  • 4,125
  • 18
  • 41
0
votes
1 answer

SPARQL SubQuery in Filter

SELECT ?Name FROM WHERE { ?Aut name ?Name . ?Pub author ?Aut . ?Pub conf ?Conf FILTER (?Conf IN ( SELECT ?ConfX FROM WHERE { ?ConfX series "ISWC" }))} I have taken the query from…
harish chava
  • 252
  • 2
  • 19
0
votes
1 answer

Build AWS authorization header of http REST API requests for Neptune

I need to call Neptune REST endpoint for a query with http. How can I build http request authorization with aws access key, secret id, region WITHOUT SDK?
0
votes
1 answer

Traversing a subset of Graph for complex queries

I'm fairly new to Gremlin and I'm trying to make a query more efficient. With a graph that looks something like this: [vertex: label=a] -> [vertex: label=b] -> [vertex: label=c] -> [vertex: label=d] I need to traverse the graph, and get the results…
TKems
  • 15
  • 4
0
votes
1 answer

How do I multiply a vertex property with an edge weight from an edge pointing to it?

I am stuck on a graph traversal problem I seem to be having. I use gremlinpython and my DB is stored in AWS Neptune. The graph looks similar to this example: g = TinkerGraph.open().traversal() o1 = g.addV('o').property('order','order1').next() r1 =…
Morinaga
  • 35
  • 1
  • 8
0
votes
1 answer

Create Vertex only if "from" and "to" vertex exists

I want to create 1000+ Edges in a single query. Currently, I am using the AWS Neptune database and gremlin.net for creating it. The issue I am facing is related to the speed. It took huge time because of HTTP requests. So I am planning to combine…
Kishan Gajjar
  • 1,120
  • 3
  • 22
  • 43
0
votes
2 answers

Load data in to Amazon Neptune DB

I have used the below code to load the data in to neptune db access. curl -X POST \ -H 'Content-Type: application/json' \ https://your-neptune-endpoint:port/loader -d ' { "source" : "s3://bucket-name/object-key-name", …
0
votes
1 answer

Query to retrieve all paths traversable from a given vertex

I am trying to write a query that retrieves all paths that are reachable from a specified vertex. In other words I am trying to retrieve the entire cluster/sub-graph that the vertex is connected to. A couple more constraints on the query…
KOB
  • 4,084
  • 9
  • 44
  • 88
0
votes
1 answer

How to select multiple ids with Gremlin?

In the console, this returns two vertices: g.V('615e6de7-3172-458b-bc68-876fd4f5ecb0','059b6de4-a463-4789-a987-7c2833950b5c') ==>v[615e6de7-3172-458b-bc68-876fd4f5ecb0] ==>v[059b6de4-a463-4789-a987-7c2833950b5c] But when I run it in Gremlin, I get…
Fook
  • 5,320
  • 7
  • 35
  • 57
0
votes
1 answer

Can you store any object in a Vertex's property?

Could I store a Tuple or a Map as the value of a vertex's property in Neptune/gremlin? I'm unsure where the relevant docs are. I can't find it in the AWS docs or in the Vertex Javadocs
simpleCoder
  • 152
  • 2
  • 13
0
votes
1 answer

AWS Neptune path() truncates if used after a repeat() loop

g.addV('person').property('firstName','Bob').as('bob'). addV('decision').property('decision','REFER').as('brefer').select('bob').addE('hasDecision').to('brefer'). addV('phone').property('number','123').as('phone').select('bob').addE('hasPhone').to('p…
Phil Exell
  • 11
  • 1
0
votes
1 answer

Estimating Graph Db Size on AWS Neptune

If I am building a graph on AWS Neptune with 20 million Nodes and 100 million edges, How much RAM and Disk space would I require? Can someone give me an rough order of magnitude estimate
Kay
  • 567
  • 3
  • 6
  • 15
0
votes
1 answer

Using Gremlin (AWS Neptune), how can I get all paths of length n from a starting node traversing edges with specific criteria?

Starting with node 1, I want to return all the paths (edges and vertices, with id/label/properties) within n hops following any outbound edges, or following inbound edges with a property predicate (p > 50). Ideally the paths shouldn't contain any…
Anthony
  • 906
  • 1
  • 8
  • 19