amazon-neptune

Drop all edges on AWS Neptune using pythongremlin

▼魔方 西西 提交于 2019-12-11 06:35:18
问题 I'm using gremlinpython version 3.3.2 and AWS NEPTUNE. I try to drop all the edges (tried the vertices too) and it fails everytime. g.E().drop().iterate() Gives me: gremlin_python.driver.protocol.GremlinServerError: 597: Exception processing a script on request [RequestMessage{, requestId=ae49cbb7-e034-4e56-ac76-b62310f753c2, op='bytecode', processor='traversal', args={gremlin=[[], [V(), drop()]], aliases={g=g}}}]. Did anyone already successfuly remove all vertices/edges of a graph in AWS

Upgrading gremlin breaks connection

会有一股神秘感。 提交于 2019-12-11 04:10:07
问题 With gremlin javascript version 3.2.10 the following function connects to my Neptune cluster correctly: export const initGremlinClient = () => { try { const dc = new DriverRemoteConnection( `ws://${process.env.NEPTUNE_ENDPOINT_URI}:${ process.env.NEPTUNE_ENDPOINT_PORT }/gremlin` ); const graph = new Graph(); return { g: graph.traversal().withRemote(dc), closeGremlinConnection: () => dc.close() }; } catch (error) { console.log("[GREMLIN INIT ERROR]", error); throw new Error(error); } }; If I

How to use AWSRequestSigningApacheInterceptor with AWS SDK2

扶醉桌前 提交于 2019-12-11 03:09:20
问题 I am trying to use REST calls to Neptune SPARQL on existing Java code which already uses Apache HTTP clients. I'd like to not mix and match AWS SDK1 and SDK2 (which I use for the S3 portion of loading owl to Neptune). I see these solutions: AWSRequestSigningApacheInterceptor that works with SDK1, but can't find the equivalent in SDK2. aws-request-signing-apache-interceptor on github for building an adaptor class so it can be used in SDK 2 with mix-and-match SDK 1 & 2 javaquery/Examples where

Gremlin find highest match

强颜欢笑 提交于 2019-12-10 19:36:59
问题 I am planning to use a Graph Database (AWS Neptune) that can be queried with Gremlin as a sort of Knowledge base. The KB would be used as a classification tool on with entities with multiple features. For simplicity, I am using geometric shapes to code the properties of my entities in this example. Let's suppose I want to classify Points that can be related to Squares, Triangles and Circles. I have blueprint the different possible relationships of Points with the possibles Squares, Triangles

How to Connect/Query to AWS Neptune instance using HTTP POST/GET request

↘锁芯ラ 提交于 2019-12-07 17:54:18
I am trying to connect to Amazon Neptune instance by sending a HTTP Post request using Neptune END Point via Fiddler. But ending up in timeout error. Can Neptune instance be connected to via HTTP request using fiddler/Postman? Timeout Error most commonly comes from the fact you aren't on the same VPC as your Neptune instance. Please check this by doing an hping for example: sudo hping3 -S -p 8182 [YOUR NEPTUNE ENDPOINT] If hping can't ping it then you aren't on the same VPC. So, just create a EC2 instance (ON THE SAME VPC AS YOUR NEPTUNE INSTANCE) and use it as VPN, I personally use this one

Proper handling of date operations in Gremlin

丶灬走出姿态 提交于 2019-12-07 08:42:39
问题 I am using AWS Neptune Gremlin with gremlin_python . My date in property is stored as datetime as required in Neptune specs. I created it using Python code like this: properties_dict['my_date'] = datetime.fromtimestamp(my_date, timezone.utc) and then constructed the Vertex with properties: for prop in properties: query += """.property("%s", "%s")"""%(prop, properties[prop]) Later when interacting with the constructed graph, I am only able to find the vertices by an exact string matching query

How to collect all vertex and edge properties along path, with Gremlin

会有一股神秘感。 提交于 2019-12-02 02:10:43
问题 Here's a really simple query: g.V('customerId').out().path() The JSON output of this is { "requestId":"96b26c1d-d032-2004-d36e-c700bd6db2a2", "status":{ "message":"", "code":200, "attributes":{ "@type":"g:Map", "@value":[ ] } }, "result":{ "data":{ "@type":"g:List", "@value":[ { "@type":"g:Path", "@value":{ "labels":{ "@type":"g:List", "@value":[ { "@type":"g:Set", "@value":[ ] }, { "@type":"g:Set", "@value":[ ] } ] }, "objects":{ "@type":"g:List", "@value":[ { "@type":"g:Vertex", "@value":{

Connect to Neptune on AWS from local machine

点点圈 提交于 2019-11-30 05:58:21
问题 I am trying to connect to Neptune DB in AWS Instance from my local machine in office,like connecting RDS from office.Is it possible to connect Neptune db from local machine?. Is Neptune db publicly available.Is there any way developer can connect neptune db from office. 回答1: Neptune does not support public endpoints (endpoints that are accessible from outside the VPC). However, there are few architectural options using which you can access your Neptune instance outside your VPC. All of them

gremlin clone a node and its edges

狂风中的少年 提交于 2019-11-29 08:50:40
Does gremlin provide the ability to clone a vertex for instance v1->v2, v1->v3, v1->v4 how can I simply and efficiently create a new vertex v5 that also has edges that point to v2, v3, v4 (the same places that v1's edges point to) without have to explicitly set them and instead saying something like g.createV(v1).clone(v2) . Note that I am using the AWS Neptune version of gremlin, solution must be compatible with that. A clone step doesn't exist (yet), but it can be solved with a single query. Let's start with some sample data: gremlin> g = TinkerFactory.createModern().traversal() ==

Connect to Neptune on AWS from local machine

别说谁变了你拦得住时间么 提交于 2019-11-29 07:02:52
I am trying to connect to Neptune DB in AWS Instance from my local machine in office,like connecting RDS from office.Is it possible to connect Neptune db from local machine?. Is Neptune db publicly available.Is there any way developer can connect neptune db from office. Neptune does not support public endpoints (endpoints that are accessible from outside the VPC). However, there are few architectural options using which you can access your Neptune instance outside your VPC. All of them have the same theme: setup a proxy (EC2 machine, or ALB, or something similar, or a combination of these)