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. |
| Constructor and Description |
|---|
OBOFormatWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCheckStructure() |
void |
setCheckStructure(boolean isCheckStructure) |
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) |
static 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,
File outFile) |
void |
write(OBODoc doc,
String outFilename) |
void |
write(String fn,
BufferedWriter writer) |
void |
write(URL url,
BufferedWriter writer)
Write.
|
static void |
writeDef(Clause clause,
BufferedWriter writer)
Write def.
|
void |
writeHeader(Frame frame,
BufferedWriter writer,
OBOFormatWriter.NameProvider nameProvider)
Write header.
|
static void |
writePropertyValue(Clause clause,
BufferedWriter writer)
Write property value.
|
static void |
writeSynonym(Clause clause,
BufferedWriter writer)
Write synonym.
|
public boolean isCheckStructure()
public void setCheckStructure(boolean isCheckStructure)
isCheckStructure - the new check structurepublic void write(@Nonnull String fn, @Nonnull BufferedWriter writer) throws IOException
fn - the file name to read inwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the OBO format parser exceptionpublic void write(@Nonnull URL url, @Nonnull BufferedWriter writer) throws IOException
url - the urlwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the OBO format parser exceptionpublic void write(BufferedReader reader, @Nonnull BufferedWriter writer) throws IOException
reader - the readerwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the OBO format parser exceptionpublic void write(@Nonnull OBODoc doc, @Nonnull String outFilename) throws IOException
doc - the docoutFilename - the out file nameIOException - Signals that an I/O exception has occurred.public void write(@Nonnull OBODoc doc, @Nonnull File outFile) throws IOException
doc - the docoutFile - the out fileIOException - Signals that an I/O exception has occurred.public void write(@Nonnull OBODoc doc, @Nonnull BufferedWriter writer) throws IOException
doc - the docwriter - the writerIOException - Signals that an I/O exception has occurred.public void write(@Nonnull OBODoc doc, @Nonnull 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(@Nonnull Frame frame, @Nonnull 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(@Nonnull Frame frame, @Nonnull BufferedWriter writer, @Nullable OBOFormatWriter.NameProvider nameProvider) throws IOException
frame - the framewriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.public static void writeDef(@Nonnull Clause clause, @Nonnull BufferedWriter writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public static void writePropertyValue(@Nonnull Clause clause, @Nonnull BufferedWriter writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public static void writeSynonym(@Nonnull Clause clause, @Nonnull BufferedWriter writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public static void write(@Nonnull Clause clause, @Nonnull BufferedWriter writer, @Nullable OBOFormatWriter.NameProvider nameProvider) throws IOException
clause - the clausewriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.Copyright © 2020 The University of Manchester. All rights reserved.