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
Gremlin-server: does vertexIdManager=ANY generates id collisions?
I need to configure tinkergraph-empty.properties file in gremlin-server so the ids are generated with the "ANY" logic
gremlin.tinkergraph.vertexIdManager=ANY
gremlin.tinkergraph.edgeIdManager=ANY
gremlin.tinkergraph.vertexPropertyIdManager=ANY
I…

fermmm
- 1,078
- 1
- 9
- 17
0
votes
1 answer
Connect to Amazon Neptune db from local Gremlin server from java app
Right now we are using Janusgraph. Nodes and Vertices in our graph have entitlement tagged. We have customized the Gremlin server to check the entitlement after each step execution.
This Gremlin server is started using a Java app.
I am wondering if…

Sunil Sharma
- 21
- 2
0
votes
1 answer
using limit in Neptune's SPARQL Delete queries
I am trying to run this query in Amazon Neptune:
Delete{?s ?o.
}
WHERE {
GRAPH ?g {
?s ?o.
}
} limit 1
But I'm getting this error:
"code":…

Bahar
- 770
- 5
- 18
0
votes
0 answers
Gremlin/AWS Neptune: Adding Edge w/ Properties
I currently have a series of two vertices in a parent/child relationship, two edges between them that I have no issue with.
The issue happens when I start attempting to add properties to the edge and I get an error message that gives only some…

Joe Kennedy
- 91
- 6
0
votes
1 answer
AWS Neptune vs Raw CSV Volume Discrepancy
I am trying to understand the discrepancy between the sizes of my raw S3 file and the volume of Neptune as I load it. I am testing a small percentage of my original graph (~15%, only vertices), in which the raw CSV size is 3.1GB (no compression) but…

user3726393
- 265
- 1
- 2
- 11
0
votes
1 answer
How can I improve order().by() performance in Neptune?
I am trying to solve a performance issue with a traversal and have tracked it down to the order().by() step. It seems that order().by() greatly increases the number of statement index ops required (per the profiler) and dramatically slows down…

Fook
- 5,320
- 7
- 35
- 57
0
votes
0 answers
AWS Neptune partial gremlin execution
I'm using AWS Neptune with nodejs gremlin driver.
I'm sending gremlin queries that include a bunch of operations like addV, addE, etc in the same query.
Once in a while I see situations where only part of the query was executed.
For example, sending…

Avner Levy
- 6,601
- 9
- 53
- 92
0
votes
1 answer
Get score from AWS Neptune Search
I want to get the scores for each search result like you would be able to in elasticsearch. How do you do this through Neptune?
I'm using this gremlin query, but I'm not sure how you would get the score out of it.
limit = 100
g.withSideEffect(
…

Danny
- 244
- 3
- 14
0
votes
1 answer
Gremlin - select vertices based on value found in traversal
I want to use the id of a vertex that has prop_a=x to find other vertices which have this value in some other property.
Something like:
g.V().sideEffect(has('prop_a','x').id().as('val')).has('prop_b',__.select('val')).count()
But the above doesn't…

Avner Levy
- 6,601
- 9
- 53
- 92
0
votes
1 answer
Neptune AWS sortOrder asc and desc don't give reverses of each other
I am searching for with my_table and I get all the tables I expect, sorted by score (though I am not sure if it's in the correct order since I don't know how to get the scores from elasticsearch).
When I reverse it (i.e. from sortOrder DESC to ASC),…

Danny
- 244
- 3
- 14
0
votes
1 answer
Get or Create vertex/edge in Apache TinkerPop Gremlin in one query
How to get or create vertex/edge in Apache TinkerPop Gremlin in one query?
Currently I am doing,
id = None
if g.V().has('employee', 'name', 'thirumal').hasNext():
id = g.V().has('employee', 'name', 'thirumal').values('id')
else:
id = uuid4()
…

Thirumal
- 8,280
- 11
- 53
- 103
0
votes
1 answer
How does AWS Neptune fts.maxResults affect the search results?
When I set the maxResults to 100, I get 20 results.
When I set the maxResults to 10, I get 1 result.
From the docs:
maxResults – The maximum number of results to return. The default is the index.max_result_window OpenSearch setting, which…

Danny
- 244
- 3
- 14
0
votes
1 answer
Send string gremlin query to Amazon Neptune database using TinkerPop's gremlinpython
We can do the following to create a connection, and then attached the connection to the graph g object, and then use g to mirror gremlin query inline.
from gremlin_python import statics
from gremlin_python.structure.graph import Graph
…

user1187968
- 7,154
- 16
- 81
- 152
0
votes
1 answer
Fetch Neptune DB data using Gremlin Java client in batch
I'm trying to get data from AWS Neptune using Apache TinkerPop Gremlin client with RemoteConnection. It seems like next() of GraphTraversal fetches data from LinkedBlockingQueue of ResultQueue and another thread of network call, enqueues the data…

Sanjay Sharma
- 3,687
- 2
- 22
- 38
0
votes
1 answer
Setting fts maxresults to 1 means pagination returns no results in aws neptune
I am trying to paginate which works for the most part, but it breaks because of the fts.maxResults (If it is set too small, it won't return anything). What's the reason behind this?
limit = 1
offset = 1
# This returns nothing
g.withSideEffect(
…

Danny
- 244
- 3
- 14