* The session needs to be destroyed anyhow.
*
* Clear contents before destroying (FIXME only do this until this is implemented in the
* destroySession() method).
*/
for (IRI iri : session.listManagedOntologies()) {
try {
String key = ontologyProvider.getKey(iri);
ontologyProvider.getStore().deleteTripleCollection(new UriRef(key));
} catch (Exception ex) {
log.error("Failed to delete triple collection " + iri, ex);