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.
Questions tagged [amazon-neptune]
930 questions
0
votes
1 answer
edit sack() value depending on path
I have three paths leading to two goals. All edges have a different strength and I collect them with sack().
I want to weigh some of the paths more heavily than the others (independent of the edge strength). in this sample: the paths via an…

Meike
- 171
- 13
0
votes
2 answers
Opencypher Neptune db create ~id field with custom value using opencypher
I want to set my own id to the node I create using opencypher
I am using below query
CREATE (n:person {ID:'myid', id: 'abc',name:'abcname'})
it created below row
{'~id': '7638bbd4-900d-4b15-b451-5eb848a3db19', '~entityType': 'node', '~labels':…

Jigar Gajjar
- 183
- 2
- 12
0
votes
1 answer
"Write" Transactions don't work when using C#/Node.js with Amazon Neptune
I am able to connect to Neptune and was able to add some data to it with no issues. However, when I tried the code at https://tinkerpop.apache.org/docs/current/reference/#gremlin-dotnet-transactions it doesn't seem to work. I receive following…

user203687
- 6,875
- 12
- 53
- 85
0
votes
1 answer
GremlinPython add connection and request timeout to DriverRemoteConnection with aiohttp
I am upgrading the gremlinpython package from 3.4 to 3.5
As part of the upgrade, tornado has been removed and only aiohttp is supported.
Before, to create a DriverRemoteConnection with a connection and request timeout, I used the following code
from…

Toussah
- 245
- 1
- 3
- 14
0
votes
1 answer
Slow insertion using Neptune and Gremlin
I'm having problems with the insertion using gremlin to Neptune.
I am trying to insert many nodes and edges, potentially hundred thousands of nodes and edges, with checking for existence.
Currently, we are using inject to insert the nodes, and the…

ronenpi18
- 56
- 4
0
votes
1 answer
How to implement Gremlin query corresponding to Neo4j cypher query?
I have the following Cypher query(neo4j) and want to convert it to a Gremlin query.
MATCH d=(a:Actor {id:" + entityId +'})-[r:ACTING_IN*0..2]-(m) WITH d,
RELATIONSHIPS(d) AS rels WHERE NONE (rel in r WHERE rel.Type = "Hollywood") RETURN…

Ranjit Soni
- 594
- 6
- 19
0
votes
1 answer
AWS Neptune: More performant to drop Edges before Vertices?
Using - Neptune Engine: 1.0.5.1, Apache Tinkerpop: 3.5.2
My question is in regard to the performance of Vertex removal - it is not about the loading of the Vertices.
We have a cron job that clears out a limited number (1000) of "expired"…

Hallam
- 131
- 1
- 3
- 11
0
votes
1 answer
'set intersection' vs. 'has path to' and Sack()
The query starts at the vertex 'me'. I wish to find all A-vertices that are connected to my B-vertex and one of my C-vertices.
A person (like me) is always connected to exacty one B-Vertex, but several C-vertices.
Also, the C-vertices connected to…

Meike
- 171
- 13
0
votes
1 answer
Optimize NeptuneDB Gremlin query
vehicles --> accounts --> organizations <-- users
We have the above graph structure where vechicles , accounts, organizations and users are vertex labels and the arrows indicate the edge direction.
Consider the following number of vertices…

zXor
- 208
- 1
- 10
0
votes
1 answer
Gremlin slow joinTime on Neptune
I have an issue with a request performance in Neptune. I have a graph like this :
hasId('A_id') (count: 1) -> out('has_group') (count: 12) -> out('has_class').hasLabel('C') (count: 9751) -> out('has_type').hasLabel('D') (count: 9749)…

Pred05
- 492
- 1
- 3
- 13
0
votes
1 answer
add Sack value of different paths
I have a graph with one start-node and two goal-vetices. Two paths lead to the first goal, another path to the second.
I want to find all paths to all goals and collect their weight (sack(sum)). For this I use sack to collect edge weights along the…

Meike
- 171
- 13
0
votes
0 answers
Neptune: feature similar to Alias switching in ElasticSearch
I have a Elasticsearch and Neptune database, only graph relations are store in Neptune.
I'm doing "Alias Switching" in ES, is there a feature like this in Neptune?

user1187968
- 7,154
- 16
- 81
- 152
0
votes
0 answers
Remove or replace id with entityId in gremlin response
Using Strategy I'm able to transform g.V(id) to g.V().has("entityId", id)
But is there a way I can remove id from gremlin output or replace it with entityId?
Without making changes at the serializer level?

Harshit Sharma
- 83
- 5
0
votes
1 answer
How to set current datetime in gremlin console?
How to set current DateTime in the gremlin console?
I need to add an audit field created_on with current_timestamp as default value
Eg:
g.addV('student').property('name', 'Thirumal').property('created_on', datetime())
In, the above query, I am…

Thirumal
- 8,280
- 11
- 53
- 103
0
votes
1 answer
Gremlin - extracting T.id and T.label from valueMap
This question is related to this post that Kelvin Lawrence answered very helpfully, wanted to post it as a separate question bec the first question was answered well already.
From this…

Programjon
- 23
- 6