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
g.addV().property(T.label, "SomeLabel") vs g.addV("SomeLabel")
I'm a bit new to gremlin and graph db's in general. I'm a bit confused by these two methods which appear to be doing the same thing but the syntax is different.
Plus one of these works when I'm using Gremlin Server while the other gives me an…

Ujjwal Pathak
- 646
- 12
- 21
0
votes
0 answers
Error while storing vertex and edge using gremlin with spring-boot
I am using spring-boot to create a rest api. So I am sending data over api which will run 24/7.
I configured cluster, client and GraphTraversalSource with remote connection once. using @Inject annotation.
When the method is called from the…

sms_1190
- 1,267
- 2
- 12
- 24
0
votes
1 answer
IRI included an unencoded space Error when posted to SparQL Client on Neptune Server
I am getting this following error when making a POST request to my SPARQL Client endpoint:
Malformed query: org.openrdf.rio.RDFParseException: IRI included an unencoded space: '32' [line 1]
I am using Postman to make the request and have set a…

Haych
- 932
- 13
- 36
0
votes
2 answers
Amazon Neptune: Node Properties
I have ran the gremlin query and get the result but not able to get each vertex properties.
Here is the query I have ran:
g.V('a6b575a5-e2d3-334d-aa0b-5aa372d71fc0').outE('member').inV().unfold().toList()
Here is the result properties are…

Muhammad Mughees
- 21
- 6
0
votes
1 answer
Gremlin: division after groupCount
I am using Gremlin to query Neptune.
I have 2 counts
g.V().hasLabel(*).outE.inV().groupCount().by('name')
result is like : 'a':2, 'b':4
g.V().hasLabel(*).count()
4
How can I write a single query to get the numbers that result 1 divided by result…

Yonbantai
- 107
- 9
0
votes
1 answer
Fetch nodes recursively with Gremlin query
I'd like to define a Gremlin query which returns all the nodes recursively till there are no more nodes available:
Node: ProductionEvent
Node: Product
What I've tried so far is the following...however, I'm not sure if the output is correct. Also,…

haminoum
- 71
- 6
0
votes
1 answer
Amazon Neptune SPARQL query through Java: Can I get the raw JSON response?
Docs for using the Java API for Amazon Neptune SPARQL SELECT queries only show how to iterate through the results of a TupleQuery.
amazon docs
Is there a way to get the raw JSON response, so it's compatible with code that used to use the REST…

Paul Cuddihy
- 477
- 6
- 12
0
votes
1 answer
Why does Gremlin function fold() affect the result in JSON response?
How does folding affect the output of JSON from gremlin server? I get different data structure when I unfold and fold path content, it adds the edge and vertex properties. While this is my goal to get the properties in the path as well, but this…

Vasar
- 395
- 2
- 5
- 15
0
votes
1 answer
Gremlin on Neptune: how to get "outV" from an edge that is returned from "select"
I have a graph with two vertices: 'a' & 'b'
There is an edge between 'a' and 'b' labeled 'Y'
gremlin> g.V('a').outE()
==>e[dcb543f5-2189-9ffe-e617-b928dc565c1a][a-Y->b]
The edge has a property 'foo'
gremlin>…

Joel Stevick
- 1,638
- 2
- 16
- 22
0
votes
1 answer
To delete the vertex by looping the dataframe in glue timeout
I want to delete the vertex to loop on one dataframe.
Suppose I will delete the vertex based on some cols of dataframe
my function is written in this way: and it is timeout
def delete_vertices_for_label(rows):
conn =…

Emma Y
- 555
- 1
- 9
- 16
0
votes
1 answer
GroupBy query with list of vertices
Suppose I want to query the Neptune graph with "group-by" on one property (or more), and I want to get back the list of vertices too.
Let's say, I want to group-by on ("city", "age") and want to get the list of vertices too:
[
{"city": "SFO",…

mux
- 455
- 5
- 10
0
votes
1 answer
Gremlin traversal.Output all Edge details and also in/out Vertex id's
I'm having trouble constructing the gremlin query to give me all of the Edge details(label, properties) and also the ID's of the Inv and OutV adjoining Vertex's (I don't need any more info from the linked Vertex's, just the ID's).
All I have is the…

Hallam
- 131
- 1
- 3
- 11
0
votes
1 answer
What is the difference between gremlin in neptune to azure selecting a single vertex?
we switched our database from azure to neptune. In azure you could select one vertex and the gremlinquery returned the id, the label and all properties of this vertex. If you do the same on neptune, just the id and the label is returned. How can I…

Christopher H.
- 73
- 1
- 8
0
votes
2 answers
Undesired behavior when reloading modified nodes into aws-neptune
I'm using the bulk loader to load data from csv files on S3 into a Neptune DB cluster.
The data is loaded successfully. However, when I reload the data with some of the nodes' property values modified, the new value is not replacing the old one,…

Muli
- 3
- 3
0
votes
1 answer
How to save json as vertex properties values
I am trying to save a json as a vertex's property value. Below is my query.
String createVrtx = "g.addV('Person').property('id','123').property('Address','{"City":"bang","pin": "123456"}')";
if i convert the json as string it works but when i try…

mmr25
- 91
- 12