class OntologyRepositoryCache extends AbstractDatasetRepositoryCache<String, Ontology> {

    @Override
    public boolean containsKey(String key) {
        requireNotClosed();
        IRI datasetIRI = OntologyDatasets.createDatasetIRIFromKey(key, vf);
        try (DatasetConnection dsConn = getDatasetConnection(datasetIRI, false)) {
            return true;
        } catch (IllegalArgumentException e) {
            return false;
        }
    }

    public  OntologyRepositoryCache(String name, Repository repository, CacheManager cacheManager,
                                   Configuration configuration);

}