@Override public String toString() { return "<GRAPH_CONTENT>" + getOrigin(); }
bindPhysicalOrigin(Origin.create(name)); bindPhysicalOrigin(null); bindRootOntology(graph); log.debug("Root ontology is a {}.", getRootOntology().getClass().getCanonicalName()); } else {
new GraphContentInputSource(content, mt.toString(), ontologyProvider.getStore())); if (key == null || key.isAnonymous()) { log.error("FAILED parse with media type {}.", mt);
bindPhysicalOrigin(Origin.create(name)); bindPhysicalOrigin(null); bindRootOntology(graph); log.debug("Root ontology is a {}.", getRootOntology().getClass().getCanonicalName()); } else {
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);
content = new ByteArrayInputStream(file.getContent()); log.debug("Recreated input stream for format {}", f); src = new GraphContentInputSource(content, f, ontologyProvider.getStore());
@Override public String toString() { return "<GRAPH_CONTENT>" + getOrigin(); }
src = new GraphContentInputSource(content, f, ontologyProvider.getStore());