public class OBODoc extends Object
Constructor and Description |
---|
OBODoc() |
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() |
@Nullable public static String getIDSpace(String prefix)
prefix
- prefixpublic static boolean isTreatXrefsAsEquivalent(@Nullable String prefix)
prefix
- the prefixpublic void setHeaderFrame(Frame headerFrame)
headerFrame
- the new header framepublic Collection<Frame> getTermFrames()
public Collection<Frame> getTypedefFrames()
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(Frame f) throws FrameMergeException
f
- the frameFrameMergeException
- the frame merge exceptionpublic void addTermFrame(Frame f) throws FrameMergeException
f
- the frameFrameMergeException
- the frame merge exceptionpublic void addTypedefFrame(Frame f) throws FrameMergeException
f
- the frameFrameMergeException
- the frame merge exceptionpublic void addInstanceFrame(Frame f) throws FrameMergeException
f
- the frameFrameMergeException
- the frame merge exceptionpublic void mergeContents(OBODoc extDoc) throws FrameMergeException
extDoc
- the external docFrameMergeException
- the frame merge exceptionpublic void addDefaultOntologyHeader(String defaultOnt)
defaultOnt
- the default ontologypublic void check()
for equivalent checks in OWL
Copyright © 2020 The University of Manchester. All rights reserved.