public abstract class AbstractTagValueHandler extends Object implements TagValueHandler
| Constructor and Description |
|---|
AbstractTagValueHandler(String tag,
OBOConsumer consumer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAnnotation(String id,
String uriID,
org.semanticweb.owlapi.model.OWLLiteral value) |
void |
applyChange(org.semanticweb.owlapi.model.OWLOntologyChange change) |
org.semanticweb.owlapi.model.OWLAnnotation |
getAnnotationForTagValuePair(String tagName,
String value)
Gets an
OWLAnnotation for a tag value pair. |
protected org.semanticweb.owlapi.model.OWLLiteral |
getBooleanConstant(boolean b) |
org.semanticweb.owlapi.model.OWLClass |
getClassFromId(String s) |
OBOConsumer |
getConsumer() |
org.semanticweb.owlapi.model.OWLClass |
getCurrentClass() |
org.semanticweb.owlapi.model.OWLDataFactory |
getDataFactory() |
org.semanticweb.owlapi.model.IRI |
getIRIFromOBOId(String id) |
org.semanticweb.owlapi.model.OWLOntology |
getOntology() |
protected org.semanticweb.owlapi.model.OWLClass |
getOWLClass(String id) |
protected org.semanticweb.owlapi.model.OWLClassExpression |
getOWLClassOrRestriction(String termList) |
protected org.semanticweb.owlapi.model.OWLObjectProperty |
getOWLObjectProperty(String id) |
org.semanticweb.owlapi.model.OWLOntologyManager |
getOWLOntologyManager() |
org.semanticweb.owlapi.model.IRI |
getTagIRI(OBOVocabulary vocabulary) |
org.semanticweb.owlapi.model.IRI |
getTagIRI(String tagName)
Gets an IRI for a tag name.
|
String |
getTagName()
Gets the name of the tag handled by this tag value handler
|
protected String |
getUnquotedString(String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlepublic AbstractTagValueHandler(String tag, OBOConsumer consumer)
tag - tagconsumer - consumerpublic String getTagName()
TagValueHandlergetTagName in interface TagValueHandlerpublic org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
public org.semanticweb.owlapi.model.OWLOntology getOntology()
public void applyChange(org.semanticweb.owlapi.model.OWLOntologyChange change)
change - changepublic OBOConsumer getConsumer()
public org.semanticweb.owlapi.model.OWLDataFactory getDataFactory()
public org.semanticweb.owlapi.model.IRI getTagIRI(OBOVocabulary vocabulary)
vocabulary - vocabularypublic org.semanticweb.owlapi.model.IRI getTagIRI(String tagName)
OBOConsumer.getIRIFromTagName(String).tagName - The tag name.public org.semanticweb.owlapi.model.IRI getIRIFromOBOId(String id)
id - idpublic org.semanticweb.owlapi.model.OWLAnnotation getAnnotationForTagValuePair(String tagName, String value)
OWLAnnotation for a tag value pair.tagName - The tag name.value - The tag value. Note that the tag value is un-escaped and stripped
of double quotes if they exist.OWLAnnotation that is formed by converting the tagName
to an IRI and then to an OWLAnnotationProperty and the
value to an OWLLiteral.public org.semanticweb.owlapi.model.OWLClass getClassFromId(String s)
s - idpublic org.semanticweb.owlapi.model.OWLClass getCurrentClass()
protected org.semanticweb.owlapi.model.OWLClass getOWLClass(String id)
protected org.semanticweb.owlapi.model.OWLObjectProperty getOWLObjectProperty(String id)
protected org.semanticweb.owlapi.model.OWLClassExpression getOWLClassOrRestriction(String termList)
protected org.semanticweb.owlapi.model.OWLLiteral getBooleanConstant(boolean b)
Copyright © 2014 The University of Manchester. All Rights Reserved.