arne-bdt commented on issue #2765:
URL: https://github.com/apache/jena/issues/2765#issuecomment-2410612190

   @Ostrzyciel:
   In Jena the core point, where operations are executed usually is either on 
the `Graph` or the `DatasetGraph` interface.
   Unfortunately, none of the relevant methods (`Graph#add`, `Graph#delete`, 
`Graph#remove`, `DatasetGraph#add`, `DatasetGraph#delete`, 
`DatasetGraph#deletAny`) have a return values to indicate success or the number 
of affected triples.
   
   Counting the number of triples before and after execution could be a way. 
   That could be cheap for most in-memory implementations. But I am not sure 
about graph stores, where this could be expensive.
   
   There is also `Graph.getCapabilities().sizeAccurate()` which could undermine 
this approach when `false`,


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to