@Test public void smoke_silenceOboParser() throws Exception { OwlApiUtils.silenceOboParser(); }
public static synchronized void silenceOboParser() { if (silencedParser) { return; } OWLManager.createOWLOntologyManager(); OWLParserFactoryRegistry registry = OWLParserFactoryRegistry.getInstance(); List<OWLParserFactory> factories = registry.getParserFactories(); for (OWLParserFactory factory : factories) { if (factory instanceof OBOFormatParserFactory || factory instanceof OBO12ParserFactory) { registry.unregisterParserFactory(factory); } } silencedParser = true; }
OwlApiUtils { public static synchronized void silenceOboParser() { if (silencedParser) { return; } OWLManager.createOWLOntologyManager(); OWLParserFactoryRegistry registry = OWLParserFactoryRegistry.getInstance(); List<OWLParserFactory> factories = registry.getParserFactories(); for (OWLParserFactory factory : factories) { if (factory instanceof OBOFormatParserFactory || factory instanceof OBO12ParserFactory) { registry.unregisterParserFactory(factory); } } silencedParser = true; } }
OwlApiUtils { public static synchronized void silenceOboParser() { if (silencedParser) { return; } OWLManager.createOWLOntologyManager(); OWLParserFactoryRegistry registry = OWLParserFactoryRegistry.getInstance(); List<OWLParserFactory> factories = registry.getParserFactories(); for (OWLParserFactory factory : factories) { if (factory instanceof OBOFormatParserFactory || factory instanceof OBO12ParserFactory) { registry.unregisterParserFactory(factory); } } silencedParser = true; }  }
OwlApiUtils { public static synchronized void silenceOboParser() { if (silencedParser) { return; } OWLManager.createOWLOntologyManager(); OWLParserFactoryRegistry registry = OWLParserFactoryRegistry.getInstance(); List<OWLParserFactory> factories = registry.getParserFactories(); for (OWLParserFactory factory : factories) { if (factory instanceof OBOFormatParserFactory || factory instanceof OBO12ParserFactory) { registry.unregisterParserFactory(factory); } } silencedParser = true; }  static Optional<Object> getTypedLiteralValue(OWLLiteral literal); static String getIri(OWLDeclarationAxiom expression); static String getIri(OWLClassExpression expression); static String getIri(OWLObjectPropertyExpression property); static String getIri(OWLIndividual individual); static String getIri(OWLAnnotationProperty property); static String getIri(OWLOntology ontology); static OWLOntology loadOntology(OWLOntologyManager manager, String ontology); static synchronized void silenceOboParser(); }
OwlApiUtils { public static synchronized void silenceOboParser() { if (silencedParser) { return; } OWLManager.createOWLOntologyManager(); OWLParserFactoryRegistry registry = OWLParserFactoryRegistry.getInstance(); List<OWLParserFactory> factories = registry.getParserFactories(); for (OWLParserFactory factory : factories) { if (factory instanceof OBOFormatParserFactory || factory instanceof OBO12ParserFactory) { registry.unregisterParserFactory(factory); } } silencedParser = true; }  static Optional<Object> getTypedLiteralValue(OWLLiteral literal); static String getIri(OWLDeclarationAxiom expression); static String getIri(OWLClassExpression expression); static String getIri(OWLObjectPropertyExpression property); static String getIri(OWLIndividual individual); static String getIri(OWLAnnotationProperty property); static String getIri(OWLOntology ontology); static OWLOntology loadOntology(OWLOntologyManager manager, String ontology); static synchronized void silenceOboParser();  }