Reputation: 57
Can Apache Jena support soft deletion?
Upvotes: 1
Views: 155
Reputation: 13305
Under the assumption that what you mean by soft deletion is that triples remain in the model but are not returned by API calls or SPARQL queries, then, no, there's no support for that in Jena. What I would do, in this circumstance, is keep a separate model for "deleted" triples to be stored in, so that you can add them back during an 'undelete' operation. The only thing to be careful of in this context is b-nodes. Also, note that the only thing you can delete from a Jena model is a triple: if you are thinking in terms of the resources in your model, to delete them you need to remove all of the triples that mention that model.
If that's not what you mean by soft deletion, you'll need to say more.
Upvotes: 1