public interface BioPAXIOHandler
Modifier and Type | Method and Description |
---|---|
Model |
convertFromMultipleOwlFiles(String... files)
This method will read multiple OWL document
and will merge them into an in memory BioPAX model.
|
Model |
convertFromOWL(InputStream in)
This method will read the OWL document given by the input stream
and will convert it into an in memory BioPAX model.
|
void |
convertToOWL(Model model,
OutputStream outputStream)
This method will write the model to the output stream.
|
void |
convertToOWL(Model model,
OutputStream outputStream,
String... ids)
This method will "excise" a new model from the given model that contains
the objects with given ids and their dependents.
|
void |
fixReusedPEPs(boolean fixReusedPEPs)
This option is only applicable two level 2 models.
|
EditorMap |
getEditorMap() |
BioPAXFactory |
getFactory() |
BioPAXLevel |
getLevel() |
boolean |
isConvertingFromLevel1ToLevel2()
This flag will allow reader to automatically convert level1 classes to
corresponding level 2 classes.
|
boolean |
isFixReusedPEPs()
This option is only applicable two level 2 models.
|
boolean |
isTreatNilAsNull()
This flag will fix a common legacy bug from BioCyc where the "NIL" string
was used for representing unknown values.
|
void |
setConvertingFromLevel1ToLevel2(boolean convertingFromLevel1ToLevel2)
Deprecated.
BioPAX Level 1 exports are obsolete (anyway, L1 input is always converted to L2 automatically).
|
void |
setEditorMap(EditorMap editorMap) |
void |
setFactory(BioPAXFactory factory) |
void |
treatNilAsNull(boolean treatNILasNull)
This flag will fix a common legacy bug from BioCyc where the "NIL" string
was used for representing unknown values.
|
void fixReusedPEPs(boolean fixReusedPEPs)
fixReusedPEPs
- true or falsevoid treatNilAsNull(boolean treatNILasNull)
treatNILasNull
- true or falseModel convertFromOWL(InputStream in)
in
- a BioPAX data input stream (RDF/XML format)Model convertFromMultipleOwlFiles(String... files) throws FileNotFoundException
files
- input BioPAX files (RDF/XML)FileNotFoundException
- when a file does not exist.void convertToOWL(Model model, OutputStream outputStream)
model
- a BioPAX modeloutputStream
- output streamvoid setConvertingFromLevel1ToLevel2(boolean convertingFromLevel1ToLevel2)
convertingFromLevel1ToLevel2
- true/false, whether actual BioPAX data is of Level1boolean isTreatNilAsNull()
boolean isConvertingFromLevel1ToLevel2()
boolean isFixReusedPEPs()
BioPAXFactory getFactory()
void setFactory(BioPAXFactory factory)
factory
- used for creating objectsEditorMap getEditorMap()
void setEditorMap(EditorMap editorMap)
editorMap
- used for this handler.BioPAXLevel getLevel()
void convertToOWL(Model model, OutputStream outputStream, String... ids)
model
- BioPAX object model to be exported to the output stream as RDF/XMLoutputStream
- the streamids
- optional list of absolute URIs of BioPAX objects - roots/seeds for extracting a sub-model to be exportedCopyright © 2015 BioPAX. All rights reserved.