public class OBOFormatWriter extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
OBOFormatWriter.NameProvider
Provide names for given OBO identifiers.
|
static class |
OBOFormatWriter.OBODocNameProvider
Default implementation of a
OBOFormatWriter.NameProvider using an underlying. |
static class |
OBOFormatWriter.OWLOntologyNameProvider
Alternative implementation to lookup labels in an
OWLOntology.This implementation might be a bit slower as it involves additional id conversion back into OWL. |
| Constructor and Description |
|---|
OBOFormatWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCheckStructure()
Checks if is check structure.
|
void |
setCheckStructure(boolean isCheckStructure)
Sets the check structure.
|
static void |
sortTermClauses(List<Clause> clauses)
Sort a list of term frame clauses according to in the OBO format
specified tag and value order.
|
void |
write(BufferedReader reader,
BufferedWriter writer) |
void |
write(Clause clause,
BufferedWriter writer,
OBOFormatWriter.NameProvider nameProvider)
Write.
|
void |
write(Frame frame,
BufferedWriter writer,
OBOFormatWriter.NameProvider nameProvider) |
void |
write(OBODoc doc,
BufferedWriter writer) |
void |
write(OBODoc doc,
BufferedWriter writer,
OBOFormatWriter.NameProvider nameProvider) |
void |
write(OBODoc doc,
String outFile) |
void |
write(String fn,
BufferedWriter writer)
Write.
|
void |
write(URL url,
BufferedWriter writer)
Write.
|
void |
writeDef(Clause clause,
BufferedWriter writer)
Write def.
|
void |
writeHeader(Frame frame,
BufferedWriter writer,
OBOFormatWriter.NameProvider nameProvider)
Write header.
|
void |
writePropertyValue(Clause clause,
BufferedWriter writer)
Write property value.
|
void |
writeSynonym(Clause clause,
BufferedWriter writer)
Write synonym.
|
public boolean isCheckStructure()
public void setCheckStructure(boolean isCheckStructure)
isCheckStructure - the new check structurepublic void write(String fn, BufferedWriter writer) throws IOException, OBOFormatParserException
fn - the fnwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the oBO format parser exceptionpublic void write(URL url, BufferedWriter writer) throws IOException, OBOFormatParserException
url - the urlwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the oBO format parser exceptionpublic void write(BufferedReader reader, BufferedWriter writer) throws IOException, OBOFormatParserException
reader - the readerwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the oBO format parser exceptionpublic void write(OBODoc doc, String outFile) throws IOException
doc - the docoutFile - the out fileIOException - Signals that an I/O exception has occurred.public void write(OBODoc doc, BufferedWriter writer) throws IOException
doc - the docwriter - the writerIOException - Signals that an I/O exception has occurred.public void write(OBODoc doc, BufferedWriter writer, OBOFormatWriter.NameProvider nameProvider) throws IOException
doc - the docwriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.public void writeHeader(Frame frame, BufferedWriter writer, OBOFormatWriter.NameProvider nameProvider) throws IOException
frame - the framewriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.public void write(Frame frame, BufferedWriter writer, OBOFormatWriter.NameProvider nameProvider) throws IOException
frame - the framewriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.public void writeDef(Clause clause, BufferedWriter writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public void writePropertyValue(Clause clause, BufferedWriter writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public void writeSynonym(Clause clause, BufferedWriter writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public void write(Clause clause, BufferedWriter writer, OBOFormatWriter.NameProvider nameProvider) throws IOException
clause - the clausewriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.Copyright © 2010-2016 The University of Manchester. All Rights Reserved.