org.coode.owlapi.obo.parser
Class AbstractTagValueHandler
java.lang.Object
org.coode.owlapi.obo.parser.AbstractTagValueHandler
- All Implemented Interfaces:
- TagValueHandler
- Direct Known Subclasses:
- AltIdTagValueHandler, AsymmetricHandler, DataVersionTagValueHandler, DefaultNamespaceTagValueHandler, DefTagValueHandler, DisjointFromHandler, DomainHandler, IDSpaceTagValueHandler, IDTagValueHandler, IntersectionOfHandler, InverseHandler, IsATagValueHandler, IsObsoleteTagValueHandler, NameTagValueHandler, OntologyTagValueHandler, PartOfTagValueHandler, ReflexiveHandler, RelationshipTagValueHandler, SymmetricTagValueHandler, SynonymTagValueHandler, SynonymTypeDefTagHandler, TransitiveOverHandler, TransitiveTagValueHandler, UnionOfHandler, XRefTagHandler
public abstract class AbstractTagValueHandler
- extends Object
- implements TagValueHandler
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 10-Jan-2007
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTagValueHandler
public AbstractTagValueHandler(String tag,
OBOConsumer consumer)
getTagName
public String getTagName()
- Description copied from interface:
TagValueHandler
- Gets the name of the tag handled by this tag value handler
- Specified by:
getTagName in interface TagValueHandler
- Returns:
- The name of the tag
getOWLOntologyManager
public org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
getOntology
public org.semanticweb.owlapi.model.OWLOntology getOntology()
applyChange
public void applyChange(org.semanticweb.owlapi.model.OWLOntologyChange change)
getConsumer
public OBOConsumer getConsumer()
getDataFactory
public org.semanticweb.owlapi.model.OWLDataFactory getDataFactory()
getTagIRI
public org.semanticweb.owlapi.model.IRI getTagIRI(OBOVocabulary vocabulary)
getTagIRI
public org.semanticweb.owlapi.model.IRI getTagIRI(String tagName)
- Gets an IRI for a tag name. This is a helper method, which ultimately calls
OBOConsumer.getIRIFromTagName(String).
- Parameters:
tagName - The tag name.
- Returns:
- The IRI corresponding to the tag name.
getIRIFromOBOId
public org.semanticweb.owlapi.model.IRI getIRIFromOBOId(String id)
getAnnotationForTagValuePair
public org.semanticweb.owlapi.model.OWLAnnotation getAnnotationForTagValuePair(String tagName,
String value)
- Gets an
OWLAnnotation for a tag value pair.
- Parameters:
tagName - The tag name.value - The tag value. Note that the tag value is un-escaped and stripped of double quotes if they exist.
- Returns:
- An
OWLAnnotation that is formed by converting the tagName to an IRI and then to an
OWLAnnotationProperty and the value to an OWLLiteral.
getClassFromId
public org.semanticweb.owlapi.model.OWLClass getClassFromId(String s)
getCurrentClass
public org.semanticweb.owlapi.model.OWLClass getCurrentClass()
getOWLClass
protected org.semanticweb.owlapi.model.OWLClass getOWLClass(String id)
getOWLObjectProperty
protected org.semanticweb.owlapi.model.OWLObjectProperty getOWLObjectProperty(String id)
getUnquotedString
protected String getUnquotedString(String value)
getOWLClassOrRestriction
protected org.semanticweb.owlapi.model.OWLClassExpression getOWLClassOrRestriction(String termList)
getBooleanConstant
protected org.semanticweb.owlapi.model.OWLLiteral getBooleanConstant(boolean b)
addAnnotation
protected void addAnnotation(String id,
String uriID,
org.semanticweb.owlapi.model.OWLLiteral value)
Copyright © 2012 The University of Manchester. All Rights Reserved.