public boolean canStoreOntology(OWLOntologyFormat ontologyFormat) { return ontologyFormat.equals(new OBOOntologyFormat()); }
OBOOntologyFormat format = new OBOOntologyFormat(); format.setIDSpaceManager(oboConsumer.getIdSpaceManager()); return format;
public boolean canStoreOntology(OWLOntologyFormat ontologyFormat) { return ontologyFormat.equals(new OBOOntologyFormat()); }
public OntologyFormatPanel() { List<Object> formats = new ArrayList<Object>(); formats.add(new RDFXMLOntologyFormat()); formats.add(new OWLXMLOntologyFormat()); formats.add(new OWLFunctionalSyntaxOntologyFormat()); formats.add(new ManchesterOWLSyntaxOntologyFormat()); formats.add(new OBOOntologyFormat()); formats.add(new KRSS2OntologyFormat()); formats.add(new LatexOntologyFormat()); formats.add(new TurtleOntologyFormat()); formatComboBox = new JComboBox(formats.toArray()); setLayout(new BorderLayout(12, 12)); add(formatComboBox, BorderLayout.SOUTH); formatComboBox.setSelectedItem(formats.get(0)); }
public OntologyFormatPanel() { List<Object> formats = new ArrayList<Object>(); formats.add(new RDFXMLOntologyFormat()); formats.add(new OWLXMLOntologyFormat()); formats.add(new OWLFunctionalSyntaxOntologyFormat()); formats.add(new ManchesterOWLSyntaxOntologyFormat()); formats.add(new OBOOntologyFormat()); formats.add(new KRSS2OntologyFormat()); formats.add(new LatexOntologyFormat()); formats.add(new TurtleOntologyFormat()); formatComboBox = new JComboBox(formats.toArray()); setLayout(new BorderLayout(12, 12)); add(formatComboBox, BorderLayout.SOUTH); formatComboBox.setSelectedItem(formats.get(0)); }
@Override public OWLOntologyFormat parse(IRI documentIRI, OWLOntology ontology) throws OWLParserException, IOException, OWLOntologyChangeException, UnloadableImportException { try { OWLOntology o = parse(documentIRI, null, ontology); } catch (OBOFormatParserException e) { throw new OWLParserException(e); } catch (OWLOntologyCreationException e) { throw new OWLParserException(e); } OBOOntologyFormat format = new OBOOntologyFormat(); return format; }
@Override public OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource, OWLOntology ontology) throws OWLParserException, IOException, OWLOntologyChangeException, UnloadableImportException { try { OWLOntology o = parse(null, documentSource, ontology); } catch (OBOFormatParserException e) { throw new OWLParserException(e); } catch (OWLOntologyCreationException e) { throw new OWLParserException(e); } OBOOntologyFormat format = new OBOOntologyFormat(); return format; }
@Override public OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource, OWLOntology ontology, OWLOntologyLoaderConfiguration configuration) throws OWLParserException, IOException, OWLOntologyChangeException, UnloadableImportException { try { OWLOntology o = parse(null, documentSource, ontology); } catch (OBOFormatParserException e) { throw new OWLParserException(e); } catch (OWLOntologyCreationException e) { throw new OWLParserException(e); } OBOOntologyFormat format = new OBOOntologyFormat(); return format; }
public OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource, OWLOntology ontology) throws OWLParserException, IOException { OBOParser parser; if (documentSource.isReaderAvailable()) { parser = new OBOParser(documentSource.getReader()); } else if (documentSource.isInputStreamAvailable()) { parser = new OBOParser(documentSource.getInputStream()); } else { parser = new OBOParser(getInputStream(documentSource.getDocumentIRI())); } parser.setHandler(new OBOConsumer(getOWLOntologyManager(), ontology)); try { parser.parse(); } catch (ParseException e) { throw new OWLParserException(e, e.currentToken.beginLine, e.currentToken.beginColumn); } catch(TokenMgrError e) { throw new OWLParserException(e); } return new OBOOntologyFormat(); } }
return new OBOOntologyFormat(oboConsumer.getIdSpaceManager());