OntologyInputSource<?> src = null; if (o instanceof OWLOntology) src = new RootOntologySource((OWLOntology) o); else if (o instanceof Graph) src = new GraphSource( (Graph) o); if (src != null) expanded.add(src);
key = addOntology(new GraphSource((IRI) ref)); } else if (ref instanceof OWLOntologyID) { OWLOntologyID idref = (OWLOntologyID) ref;
key = addOntology(new GraphSource((IRI) ref)); } else if (ref instanceof OWLOntologyID) { OWLOntologyID idref = (OWLOntologyID) ref;
session.addOntology(new GraphSource(signaturesGraph)); session.addOntology(new GraphSource(metadataGraph)); } catch (UnmodifiableOntologyCollectorException e1) { throw new EngineException("Cannot add enhancement graph to OntoNet session for refactoring", e1);