public class OBOConsumer extends Object implements OBOParserHandler
| Constructor and Description |
|---|
OBOConsumer(org.semanticweb.owlapi.model.OWLOntologyManager owlOntologyManager,
org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration,
org.semanticweb.owlapi.model.IRI baseIRI)
Deprecated.
|
OBOConsumer(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration,
org.semanticweb.owlapi.model.IRI baseIRI)
Instantiates a new oBO consumer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIntersectionOfOperand(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Adds the intersection of operand.
|
void |
addSymbolicIdMapping(String symbolicName,
org.semanticweb.owlapi.model.IRI fullIRI)
Adds the symbolic id mapping.
|
void |
addUnionOfOperand(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Adds the union of operand.
|
void |
endFrame()
end frame
|
void |
endHeader()
end header
|
org.semanticweb.owlapi.model.OWLClass |
getCurrentClass()
Gets the current class.
|
org.semanticweb.owlapi.model.OWLEntity |
getCurrentEntity()
Gets the current entity.
|
String |
getCurrentId()
Gets the current id.
|
String |
getDefaultNamespaceTagValue()
Gets the default-namespace tag value for the current ontology.
|
IDSpaceManager |
getIdSpaceManager()
Gets a COPY of the
IDSpaceManager held by this OBOConsumer. |
org.semanticweb.owlapi.model.IRI |
getIRIFromOBOId(String oboId)
Gets an IRI from an OBO ID.
|
org.semanticweb.owlapi.model.IRI |
getIRIFromTagName(String tagName)
Gets an IRI from a tag name.
|
org.semanticweb.owlapi.model.OWLOntology |
getOntology()
Gets the ontology.
|
org.semanticweb.owlapi.model.OWLOntologyManager |
getOWLOntologyManager()
Gets the oWL ontology manager.
|
org.semanticweb.owlapi.model.IRI |
getRelationIRIFromSymbolicIdOrOBOId(String symbolicIdOrOBOId)
Gets the relation iri from symbolic id or obo id.
|
String |
getStanzaType()
Gets the stanza type.
|
void |
handleTagValue(String tag,
String value,
String qualifierBlock,
String comment) |
boolean |
isInstanceType()
Checks if is instance type.
|
boolean |
isTerm()
Checks if is term.
|
boolean |
isTypedef()
Checks if is typedef.
|
org.semanticweb.owlapi.model.OWLAnnotation |
parseXRef(String xref)
Parses the x ref.
|
void |
registerIdSpace(String idSpacePrefix,
String iriPrefix)
Register id space.
|
void |
setCurrentId(String currentId)
Sets the current id.
|
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()
start header
|
String |
unescapeTagValue(String value)
Unescape tag value.
|
public OBOConsumer(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration,
org.semanticweb.owlapi.model.IRI baseIRI)
ontology - the ontologyconfiguration - the configurationbaseIRI - the base iri@Deprecated public OBOConsumer(org.semanticweb.owlapi.model.OWLOntologyManager owlOntologyManager, org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration, org.semanticweb.owlapi.model.IRI baseIRI)
owlOntologyManager - the owl ontology managerontology - the ontologyconfiguration - the configurationbaseIRI - the base iripublic org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
public org.semanticweb.owlapi.model.OWLOntology getOntology()
public String getCurrentId()
public void addSymbolicIdMapping(String symbolicName, org.semanticweb.owlapi.model.IRI fullIRI)
symbolicName - the symbolic namefullIRI - the full iripublic void setDefaultNamespaceTagValue(String defaultNamespaceTagValue)
defaultNamespaceTagValue - The value of the default-namespace tag.public String getDefaultNamespaceTagValue()
null.
OBOVocabulary.OBO_IRI_BASE.public void setOntologyTagValue(String ontologyTagValue)
ontologyTagValue - The ontology tag value. Ultimately, this will be translated to an
IRI. OWLOntologyID for the
current ontology once the ontology header has been parsed in its
entirety.public void setDataVersionTagValue(String dataVersionTagValue)
dataVersionTagValue - The data-version tag value. Ultimately, this will be translated to
an IRI. OWLOntologyID for the
current ontology once the ontology header has been parsed in its
entirety.public void registerIdSpace(String idSpacePrefix, String iriPrefix)
idSpacePrefix - the id space prefixiriPrefix - the iri prefixpublic IDSpaceManager getIdSpaceManager()
IDSpaceManager held by this OBOConsumer.public void setCurrentId(String currentId)
currentId - the new current idpublic void addUnionOfOperand(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
classExpression - the class expressionpublic void addIntersectionOfOperand(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
classExpression - the class expressionpublic String getStanzaType()
public boolean isTerm()
public boolean isTypedef()
public boolean isInstanceType()
public void startHeader()
OBOParserHandlerstartHeader in interface OBOParserHandlerpublic void endHeader()
OBOParserHandlerendHeader in interface OBOParserHandlerpublic void startFrame(String name)
startFrame in interface OBOParserHandlername - namepublic void endFrame()
OBOParserHandlerendFrame in interface OBOParserHandlerpublic void handleTagValue(String tag, String value, String qualifierBlock, String comment)
handleTagValue in interface OBOParserHandlertag - tagvalue - valuequalifierBlock - qualifierBlockcomment - commentpublic String unescapeTagValue(String value)
value - the valuepublic org.semanticweb.owlapi.model.OWLClass getCurrentClass()
public org.semanticweb.owlapi.model.OWLEntity getCurrentEntity()
public org.semanticweb.owlapi.model.IRI getIRIFromTagName(String tagName)
tagName - The tag name.OBOVocabulary enum. Not null.public org.semanticweb.owlapi.model.IRI getIRIFromOBOId(String oboId)
oboId - The OBO IDpublic org.semanticweb.owlapi.model.IRI getRelationIRIFromSymbolicIdOrOBOId(String symbolicIdOrOBOId)
symbolicIdOrOBOId - the symbolic id or obo idpublic org.semanticweb.owlapi.model.OWLAnnotation parseXRef(String xref)
xref - the xrefCopyright © 2014 The University of Manchester. All Rights Reserved.