public class OBOConsumer extends Object implements OBOParserHandler
| Constructor and Description |
|---|
OBOConsumer(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
OWLOntologyLoaderConfiguration configuration,
IRI baseIRI) |
OBOConsumer(OWLOntology ontology,
OWLOntologyLoaderConfiguration configuration,
IRI baseIRI) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIntersectionOfOperand(OWLClassExpression classExpression) |
void |
addSymbolicIdMapping(String symbolicName,
IRI fullIRI) |
void |
addUnionOfOperand(OWLClassExpression classExpression) |
void |
endFrame() |
void |
endHeader() |
OWLClass |
getCurrentClass() |
OWLEntity |
getCurrentEntity() |
String |
getCurrentId() |
String |
getDefaultNamespaceTagValue()
Gets the default-namespace tag value for the current ontology.
|
IDSpaceManager |
getIdSpaceManager()
Gets a COPY of the
IDSpaceManager held by this OBOConsumer. |
IRI |
getIRIFromOBOId(String oboId)
Gets an IRI from an OBO ID.
|
IRI |
getIRIFromTagName(String tagName)
Gets an IRI from a tag name.
|
OWLOntology |
getOntology() |
OWLOntologyManager |
getOWLOntologyManager() |
IRI |
getRelationIRIFromSymbolicIdOrOBOId(String symbolicIdOrOBOId) |
String |
getStanzaType() |
void |
handleTagValue(String tag,
String value,
String qualifierBlock,
String comment) |
boolean |
isInstanceType() |
boolean |
isTerm() |
boolean |
isTypedef() |
OWLAnnotation |
parseXRef(String xref) |
void |
registerIdSpace(String idSpacePrefix,
String iriPrefix) |
void |
setCurrentId(String currentId) |
void |
setDataVersionTagValue(String dataVersionTagValue)
Sets the value of the data-version tag for the current ontology that is being parsed.
|
void |
setDefaultNamespaceTagValue(String defaultNamespaceTagValue)
Sets the value of the default-namespace tag for the current ontology being parsed.
|
void |
setOntologyTagValue(String ontologyTagValue)
Sets the value of the ontology tag for the current ontology that is being parsed.
|
void |
startFrame(String name) |
void |
startHeader() |
String |
unescapeTagValue(String value) |
public OBOConsumer(OWLOntology ontology, OWLOntologyLoaderConfiguration configuration, IRI baseIRI)
public OBOConsumer(OWLOntologyManager owlOntologyManager, OWLOntology ontology, OWLOntologyLoaderConfiguration configuration, IRI baseIRI)
public OWLOntologyManager getOWLOntologyManager()
public OWLOntology getOntology()
public String getCurrentId()
public void setDefaultNamespaceTagValue(String defaultNamespaceTagValue)
defaultNamespaceTagValue - The value of the default-namespace tag.public String getDefaultNamespaceTagValue()
OBOVocabulary.OBO_IRI_BASE.null.public void setOntologyTagValue(String ontologyTagValue)
OWLOntologyID for the current ontology once the ontology header has
been parsed in its entirety.ontologyTagValue - The ontology tag value. Ultimately, this will be translated to an IRI.public void setDataVersionTagValue(String dataVersionTagValue)
OWLOntologyID for the current ontology once the ontology header has
been parsed in its entirety.dataVersionTagValue - The data-version tag value. Ultimately, this will be translated to an IRI.public IDSpaceManager getIdSpaceManager()
IDSpaceManager held by this OBOConsumer.public void setCurrentId(String currentId)
public void addUnionOfOperand(OWLClassExpression classExpression)
public void addIntersectionOfOperand(OWLClassExpression classExpression)
public String getStanzaType()
public boolean isTerm()
public boolean isTypedef()
public boolean isInstanceType()
public void startHeader()
startHeader in interface OBOParserHandlerpublic void endHeader()
endHeader in interface OBOParserHandlerpublic void startFrame(String name)
startFrame in interface OBOParserHandlerpublic void endFrame()
endFrame in interface OBOParserHandlerpublic void handleTagValue(String tag, String value, String qualifierBlock, String comment)
handleTagValue in interface OBOParserHandlerpublic OWLClass getCurrentClass()
public OWLEntity getCurrentEntity()
public IRI getIRIFromTagName(String tagName)
tagName - The tag name.OBOVocabulary enum.
Not null.NullPointerException - if tagName is null.public IRI getIRIFromOBOId(String oboId)
oboId - The OBO IDpublic IRI getRelationIRIFromSymbolicIdOrOBOId(String symbolicIdOrOBOId)
public OWLAnnotation parseXRef(String xref)
Copyright © 2012 The University of Manchester. All Rights Reserved.