content); else // content = new BufferedInputStream(content); src = new GraphContentInputSource(content, mt, ontologyProvider.getStore()); log.debug("SUCCESS parse with media type {}.", mt); OWLOntologyID key = session.addOntology(src);
new GraphContentInputSource(content, mt.toString(), ontologyProvider.getStore())); if (key == null || key.isAnonymous()) { log.error("FAILED parse with media type {}.", mt);
src = new GraphContentInputSource(content, f, ontologyProvider.getStore());
content = new ByteArrayInputStream(file.getContent()); log.debug("Recreated input stream for format {}", f); src = new GraphContentInputSource(content, f, ontologyProvider.getStore());