FileCachingIRIMapper implements OWLOntologyIRIMapper { protected InputStream getInputStream(IRI iri) throws IOException { final URL url = iri.toURI().toURL(); return getInputStream(url, 3); } @Inject  FileCachingIRIMapper(@Named("FileCachingIRIMapperLocalCache") String localCache,
			@Named("FileCachingIRIMapperPeriod") long period,
			@Named("FileCachingIRIMapperTimeUnit") TimeUnit unit); @Override IRI getDocumentIRI(IRI ontologyIRI);  }
@Test public void testGetInputStream() throws Exception { String localCache = folder.newFolder().getAbsolutePath(); FileCachingIRIMapper m = new FileCachingIRIMapper(localCache , 1L, TimeUnit.HOURS); IRI iri = IRI.create("https: InputStream inputStream = m.getInputStream(iri); String content = IOUtils.toString(inputStream); assertTrue(content.startsWith("<project ")); }