public class OBODoc extends Object
Constructor and Description |
---|
OBODoc()
default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultOntologyHeader(String defaultOnt)
Adds the default ontology header.
|
void |
addFrame(Frame f)
Adds the frame.
|
void |
addImportedOBODoc(OBODoc doc)
Adds the imported obo doc.
|
void |
addInstanceFrame(Frame f)
Adds the instance frame.
|
void |
addTermFrame(Frame f)
Adds the term frame.
|
void |
addTypedefFrame(Frame f)
Adds the typedef frame.
|
void |
check()
Check this document for violations, i.e.
|
void |
freezeFrames()
Freezing an OBODoc signals that the document has become quiescent, and that the system may
optimize data structures for performance or space.
|
Frame |
getHeaderFrame() |
static String |
getIDSpace(String prefix)
Looks up the ID prefix to IRI prefix mapping.
|
Collection<OBODoc> |
getImportedOBODocs() |
Frame |
getInstanceFrame(String id) |
Collection<Frame> |
getInstanceFrames() |
Frame |
getTermFrame(String id) |
Frame |
getTermFrame(String id,
boolean followImport) |
Collection<Frame> |
getTermFrames() |
Frame |
getTypedefFrame(String id) |
Frame |
getTypedefFrame(String id,
boolean followImports) |
Collection<Frame> |
getTypedefFrames() |
static boolean |
isTreatXrefsAsEquivalent(String prefix) |
void |
mergeContents(OBODoc extDoc)
Merge contents.
|
void |
setHeaderFrame(Frame headerFrame) |
void |
setImportedOBODocs(Collection<OBODoc> importedOBODocs) |
String |
toString() |
public Frame getHeaderFrame()
public void setHeaderFrame(Frame headerFrame)
headerFrame
- the new header frame@Nonnull public Collection<Frame> getTermFrames()
@Nonnull public Collection<Frame> getTypedefFrames()
@Nonnull public Collection<Frame> getInstanceFrames()
public void freezeFrames()
@Nullable public Frame getTermFrame(String id)
id
- the id@Nullable public Frame getTermFrame(String id, boolean followImport)
id
- the idfollowImport
- the follow import@Nullable public Frame getTypedefFrame(String id)
id
- the id@Nullable public Frame getTypedefFrame(String id, boolean followImports)
id
- the idfollowImports
- the follow importspublic Frame getInstanceFrame(String id)
id
- the idpublic Collection<OBODoc> getImportedOBODocs()
public void setImportedOBODocs(Collection<OBODoc> importedOBODocs)
importedOBODocs
- the new imported obo documentspublic void addImportedOBODoc(OBODoc doc)
doc
- the docpublic void addFrame(@Nonnull Frame f) throws FrameMergeException
f
- the frameFrameMergeException
- the frame merge exceptionpublic void addTermFrame(@Nonnull Frame f) throws FrameMergeException
f
- the frameFrameMergeException
- the frame merge exceptionpublic void addTypedefFrame(@Nonnull Frame f) throws FrameMergeException
f
- the frameFrameMergeException
- the frame merge exceptionpublic void addInstanceFrame(@Nonnull Frame f) throws FrameMergeException
f
- the frameFrameMergeException
- the frame merge exception@Nullable public static String getIDSpace(@Nonnull String prefix)
prefix
- prefixpublic static boolean isTreatXrefsAsEquivalent(@Nullable String prefix)
prefix
- the prefixpublic void mergeContents(@Nonnull OBODoc extDoc) throws FrameMergeException
extDoc
- the external docFrameMergeException
- the frame merge exceptionpublic void addDefaultOntologyHeader(String defaultOnt)
defaultOnt
- the default ontpublic void check() throws FrameStructureException
FrameStructureException
- the frame structure exceptionfor equivalent checks in OWL
Copyright © 2020 The University of Manchester. All rights reserved.