owltools.io
Class ParserWrapper
java.lang.Object
owltools.io.ParserWrapper
public class ParserWrapper
- extends Object
Convenience class wrapping org.oboformat that abstracts away underlying details of ontology format or location
- Author:
- cjm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserWrapper
public ParserWrapper()
getManager
public org.semanticweb.owlapi.model.OWLOntologyManager getManager()
setManager
public void setManager(org.semanticweb.owlapi.model.OWLOntologyManager manager)
addIRIMapper
public void addIRIMapper(org.semanticweb.owlapi.model.OWLOntologyIRIMapper mapper)
removeIRIMapper
public void removeIRIMapper(org.semanticweb.owlapi.model.OWLOntologyIRIMapper mapper)
parseToOWLGraph
public OWLGraphWrapper parseToOWLGraph(String iriString)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException,
IOException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
IOException
parseToOWLGraph
public OWLGraphWrapper parseToOWLGraph(String iriString,
boolean isMergeImportClosure)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException,
IOException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
IOException
parse
public org.semanticweb.owlapi.model.OWLOntology parse(String iriString)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException,
IOException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
IOException
parseOBO
public org.semanticweb.owlapi.model.OWLOntology parseOBO(String source)
throws IOException,
org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
parseOBOFiles
public org.semanticweb.owlapi.model.OWLOntology parseOBOFiles(List<String> files)
throws IOException,
org.semanticweb.owlapi.model.OWLOntologyCreationException,
org.obolibrary.oboformat.model.FrameMergeException
- Throws:
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.obolibrary.oboformat.model.FrameMergeException
parseOWL
public org.semanticweb.owlapi.model.OWLOntology parseOWL(String iriString)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
parseOWL
public org.semanticweb.owlapi.model.OWLOntology parseOWL(org.semanticweb.owlapi.model.IRI iri)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
saveOWL
public void saveOWL(org.semanticweb.owlapi.model.OWLOntology ont,
String file,
OWLGraphWrapper graph)
throws org.semanticweb.owlapi.model.OWLOntologyStorageException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyStorageException
saveOWL
public void saveOWL(org.semanticweb.owlapi.model.OWLOntology ont,
org.semanticweb.owlapi.model.OWLOntologyFormat owlFormat,
String file,
OWLGraphWrapper graph)
throws org.semanticweb.owlapi.model.OWLOntologyStorageException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyStorageException
saveOWL
public void saveOWL(org.semanticweb.owlapi.model.OWLOntology ont,
org.semanticweb.owlapi.model.OWLOntologyFormat owlFormat,
OutputStream outputStream,
OWLGraphWrapper graph)
throws org.semanticweb.owlapi.model.OWLOntologyStorageException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyStorageException
getOBOdoc
public org.obolibrary.oboformat.model.OBODoc getOBOdoc()
Copyright © 2010-2012. All Rights Reserved.