MobiOntologyFactory implements OWLOntologyFactory { @Override public boolean canAttemptLoading(OWLOntologyDocumentSource source) { return !source.hasAlredyFailedOnIRIResolution() && source.getDocumentIRI().getIRIString().startsWith(MobiOntologyIRIMapper.protocol); } MobiOntologyFactory(OntologyManager ontologyManager, OWLOntologyFactory factory,
                               SesameTransformer sesameTransformer); @Override boolean canCreateFromDocumentIRI(IRI documentIRI); @Override boolean canAttemptLoading(OWLOntologyDocumentSource source); @Override OWLOntology createOWLOntology(OWLOntologyManager manager, OWLOntologyID ontologyID, IRI documentIRI,
                                         OWLOntologyCreationHandler handler); @Override OWLOntology loadOWLOntology(OWLOntologyManager manager, OWLOntologyDocumentSource source,
                                       OWLOntologyCreationHandler handler, OWLOntologyLoaderConfiguration config);  }
@Test public void canAttemptLoadingTest() throws Exception { assertFalse(factory.canAttemptLoading(source)); assertTrue(factory.canAttemptLoading(protocolSource)); }