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
How best to model data in AWS Neptune
I'm currently evaluating AWS Neptune as a potential graph database (specifically comparing it to Azure Cosmos Graph DB). The scenario is that I have a bunch of test data which I'm adding with the bulk loader and will then run some benchmarking tests…

infl3x
- 1,492
- 19
- 26
0
votes
0 answers
Can we do type cast in gremlin?
I have two vertices with Label='Node'. Both vertices has name and value properties. One vertex value is numeric and other vertex value is string.
I want to search all vertices with value as "something". Since one of the vertices is numeric, it is…

Deepak KS
- 3
- 2
0
votes
1 answer
How to find parent vertex of two child vertices with condition in GREMLIN?
I have the following graph:
V1
/ | \
p1 p2 p3
I want to find parent vertex (V1), if I have p1 and p3 vertices matching the condition in GREMLIN.
I have around 25 child nodes for a single parent. And I need to find the…

Deepak KS
- 3
- 2
0
votes
1 answer
How to add multiple edges from one vertex in a single traversal
I have three user vertices. Tom and Mike follow Bob.
g.addV("user").property(single,"name", "bob")
g.addV("user").property(single,"name", "tom")
g.addV("user").property(single,"name", "mike")
g.V().hasLabel("user").has("name",…

Fook
- 5,320
- 7
- 35
- 57
0
votes
1 answer
gremlin - how to multiply "carried" properties
Given the following graph:
vertices of type "Companies" holding a "name" property
edges of type "Shareholder" holding a "holding" property .
Definition:
Beneficiary : Company with direct or indirect holding in the company
Graph example…

yoty66
- 390
- 2
- 12
0
votes
1 answer
Meta Properties in AWS Neptune
In AWS Neptune I was exploring to add meta properties (properties for properties) to vertices as described here.
Upon trying I found that Neptune throws an error:
Req -…

samairtimer
- 826
- 2
- 12
- 28
0
votes
1 answer
gremlin convert string propery to numeric property
Currently I have a graph having timestamp as string property
g.V().order().by('timestamp', '10')
This causes issues while sorting as string sorting is different from numeric sorting.
String sorting : 1, 10, 2
Numeric sorting : 1, 2, 10
Is there…

mmr25
- 91
- 12
0
votes
1 answer
Gremlin groupcount by edges and then also select other properties besides the count itself
I'm modeling a social network where users follow others. I'm trying to generate a list of potential users to follow and order it by those who are also followed by the people I'm following (let's call these 'mutualFollowers' for lack of a better…

Will
- 23
- 3
0
votes
1 answer
Query Named Graph with SPARQL over REST HTTP
I was able to successfully populate Named Graph over HTTP REST as shown here
https://docs.aws.amazon.com/neptune/latest/userguide/load-api-reference-load.html
curl -d "@data.json" -H "Content-Type: application/json" -X POST…

Michael Z
- 3,883
- 10
- 43
- 57
0
votes
1 answer
Gremlin: Which one is faster? within() or out().in()
I have a user search feature in my app where the searcher don't want to see some results, he does this by "blocking" a tag, when blocking a tag all users that are "subscribed" to that tag will be ignored in his search results.
I'm writing the query…

fermmm
- 1,078
- 1
- 9
- 17
0
votes
1 answer
One to One Relationship in AWS Neptune DB
While mapping a relational OO model, I came across a scenario wherein it is required to maintain a One-to-One relation between vertices.
Is it possible to restrict the cardinality of edges using labels in AWS Neptune the way it is done from Vertex…

samairtimer
- 826
- 2
- 12
- 28
0
votes
1 answer
Running into uvloop issues with Database queries from Rasa-X?
I'm trying to make a simple query to my amazon neptune database, from Rasa-x.
Here is the code from my actions.py:
class ActionQueryDietary(Action):
def name(self) -> Text:
return "action_query_dietary"
def run(self, dispatcher:…

Stephan
- 155
- 13
0
votes
0 answers
unable to connect to neptune database instance from tinkerpop
I am following this guide https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-console.html to connect to my Neptune database but as mentioned in step 7 to configure Neptune endpoint hosts: [your-neptune-endpoint], I was unable…

Sundeep Pidugu
- 2,377
- 2
- 21
- 43
0
votes
1 answer
AWS Neptune workbench visualisation
I am using Jupter notebook on AWS Neptune to query data from the graph. Is it possible to set the colour of nodes with specific label to different colour?
For eg, can I set the node colour to red if the node label is person and set the node colour…

Arun Vasu
- 297
- 8
- 22
0
votes
1 answer
Gremlin (Neptune) somewhat complex query doesn't show edges properties
I have a set of data in my DB (AWS Neptune), and I query it using Gremlin (NodeJS).
The data looks like this and I have a query that looks like this:
g.V().hasLabel('group').inE('belongs_to')
.outV().has('user_id',…

E.T
- 1,095
- 1
- 10
- 19