从 EC2 访问 Amazon Neptune windows

access Amazon Neptune from EC2 windows

我有一个 Amazon EC2 (windows) 和一个 Amazon Neptune,它们都在同一个 VPC 中。我想使用 sparql 或 Gremlin 从 EC2 连接到 Neptune,但不知道如何操作。我找到了

https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-sparql.html

https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin.html

None 两个解释了如何使用 sparql 或 Gremlin 调用 Neptune(是从终端还是他们有自己的工作室?)感谢您的任何提示。

我想您会使用 Gremlin 控制台之类的东西来连接到您的 Neptune 实例。我认为文档非常好:http://tinkerpop.apache.org/docs/3.3.3/tutorials/getting-started/#_the_first_five_minutes

从下载的文件中解压缩控制台,然后 运行 bin/gremlin.bat(在 Windows 上)。

有关如何使用 Gremlin 控制台从 EC2 连接到 Neptune 的文档位于此处 [1]。您还可以使用以 Java 等语言编写的程序从 EC2 进行连接。您还可以在下面链接的文档中找到有关如何执行此操作的示例的其他链接。

[1] https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-console.html

您可以 运行 从您的 EC2 实例以基本 terminal/command window.

的 Gremlin 控制台

如果您更喜欢 IDE/GUI 方法,您还可以从 Cloud9 连接到 Neptune

希望这对您有所帮助, 开尔文