Skip to content

Commit

Permalink
fix: SparqlService drop method behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
psiotwo committed Nov 4, 2024
1 parent a91c7a9 commit de41061
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ public boolean executeAskQuery(String askQuery) {

@Override
public void dropGraph(String graphUri) {
executeUpdateQuery("drop graph <" + graphUri + ">");
executeUpdateQuery("drop silent graph <" + graphUri + ">");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ public boolean executeAskQuery(String askQuery) {

@Override
public void dropGraph(String graphUri) {
executeUpdateQuery("clear graph <" + graphUri + ">");
executeUpdateQuery("CLEAR SILENT GRAPH <" + graphUri + ">");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ default void upload(Model model, String graphUri) {

<R> R executeSelectQuery(String query, Function<ResultSet, R> resultHandler);

/**
* Deletes all triples from the named graph with the given URI.
* It might also delete the graph itself in case the store supports it.
*
* This method does not fail even if the named graph does not exist.
*
* @param graphUri named graph URI
*/
void dropGraph(String graphUri);

/**
Expand Down

0 comments on commit de41061

Please sign in to comment.