amazon-neptune

How to run multiple gremlin commands as a single transaction?

放肆的年华 提交于 2021-01-28 06:41:59
问题 In Amazon Neptune I would like to run multiple Gremlin commands in Java as a single transactions. The document says that tx.commit() and tx.rollback() is not supported. It suggests this - Multiple statements separated by a semicolon (;) or a newline character (\n) are included in a single transaction. Example from the document show that Gremlin is supported in Java but I don't understand how to "Multiple statements separated by a semicolon" GraphTraversalSource g = traversal().withRemote

how to save data in aws neptune db using node js?

旧时模样 提交于 2021-01-20 09:08:59
问题 Is there a way to save the data in amazon aws neptune db using node js? I am running this code on a lambda. I made the connection to neptune db using the below code. const gremlin = require('gremlin'); const DriverRemoteConnection = gremlin.driver.DriverRemoteConnection; const Graph = gremlin.structure.Graph; dc = new DriverRemoteConnection('endpoint',{}); const graph = new Graph(); const g = graph.traversal().withRemote(dc); 回答1: Here's a JavaScript Lambda function that writes data to

Estimating Graph Db Size on AWS Neptune

别来无恙 提交于 2021-01-07 03:56:48
问题 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 回答1: Storage capacity in Amazon Neptune is dynamically allocated as you write data into a Neptune cluster. A new cluster starts out with 10GB allocated and then grows in 10GB segments as your data grows. As such, there's no need to pre-provision or calculate storage capacity prior to use. A Neptune cluster

Estimating Graph Db Size on AWS Neptune

余生颓废 提交于 2021-01-07 03:56:46
问题 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 回答1: Storage capacity in Amazon Neptune is dynamically allocated as you write data into a Neptune cluster. A new cluster starts out with 10GB allocated and then grows in 10GB segments as your data grows. As such, there's no need to pre-provision or calculate storage capacity prior to use. A Neptune cluster

Gremlin, javascript: where is the function “valueMap()” imported from?

感情迁移 提交于 2020-12-26 07:36:30
问题 I am using es6 on nodejs, and am trying to execute the project() step in a gremlin query. As part of the projection, I want to extract the properties. Using gremlin console I would use valueMap() to get the properties. However, when I attempt this from javascript, I get the expected error "valueMap is not a function". Question 1: where do I import this function from? Question 2: where can I read about all of the various gremlin objects available for importing in javascript? ==================

Gremlin, javascript: where is the function “valueMap()” imported from?

扶醉桌前 提交于 2020-12-26 07:35:01
问题 I am using es6 on nodejs, and am trying to execute the project() step in a gremlin query. As part of the projection, I want to extract the properties. Using gremlin console I would use valueMap() to get the properties. However, when I attempt this from javascript, I get the expected error "valueMap is not a function". Question 1: where do I import this function from? Question 2: where can I read about all of the various gremlin objects available for importing in javascript? ==================

Tinkerpop Gremlin Console: java.lang.NoSuchMethodError: org.apache.tinkerpop.gremlin.driver.RequestOptions$Builder.userAgent

给你一囗甜甜゛ 提交于 2020-06-17 09:34:08
问题 As my last post at 403 Forbidden error for Gremlin to AWS Neptune, I could successfully connect to my Neptune Cluster DB via my Tinkerpop Gremlin console v 3.4.3 that installed at my EC2 instance as v 3.4.1 suggested at https://docs.aws.amazon.com/neptune/latest/userguide/iam-auth-connecting-gremlin-console.html didn't work for me. \,,,/ (o o) -----oOOo-(3)-oOOo----- plugin activated: tinkerpop.server plugin activated: tinkerpop.utilities plugin activated: tinkerpop.tinkergraph gremlin>