@Override public boolean canStoreOntology(OWLDocumentFormat ontologyFormat) { return ontFormat.createFormat().equals(ontologyFormat); }
@Override public boolean canStoreOntology(OWLDocumentFormat ontologyFormat) { return ontFormat.createFormat().equals(ontologyFormat); }
/** * @return A fresh instance of the matching {@link OWLDocumentFormat} for this OWLAPIRDFFormat. */ public OWLDocumentFormat getOWLFormat() { if (owlFormatFactory != null) { return owlFormatFactory.createFormat(); } try { return verifyNotNull(owlFormat).getClass().newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new OWLRuntimeException( "Format did not have a factory or a public default constructor", e); } } }
/** * @return A fresh instance of the matching {@link OWLDocumentFormat} for this OWLAPIRDFFormat. */ public OWLDocumentFormat getOWLFormat() { if (owlFormatFactory != null) { return owlFormatFactory.createFormat(); } try { return verifyNotNull(owlFormat).getClass().newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new OWLRuntimeException( "Format did not have a factory or a public default constructor", e); } } }