neptune drop graph sparql

Solutions on MaxInterview for neptune drop graph sparql by the best coders in the world

showing results for - "neptune drop graph sparql"
Robby
26 Sep 2020
1I learned this when trying to clear our records in AWS Neptune.
2I was hitting the query timeout when trying to drop an entire graph.
3If you don't want to/can't raise the timeout, you can drop
4smaller parts of the graph in each transaction.
5
6curl -sX POST http://<cluster-prefix>.rds.amazonaws.com:8182/sparql --data-urlencode 'update=
7DELETE {
8  GRAPH <http://aws.amazon.com/neptune/vocab/v01/DefaultNamedGraph> { ?s ?p ?o }
9}
10WHERE {
11  GRAPH <http://aws.amazon.com/neptune/vocab/v01/DefaultNamedGraph> {
12    {
13      SELECT ?s ?p ?o
14      WHERE {
15        ?s ?p ?o .
16      }
17      LIMIT 10
18    }
19  }
20}
21'
22This will delete 10 records, specifically the first 10
23that are returned for a SELECT * WHERE { ?s ?p ?o } query.
24You can adjust the limit value to find a batch size that keeps you under the timeout.
similar questions
queries leading to this page
neptune drop graph sparql