org.coode.owl.rdfxml.parser
Class AbstractNaryBooleanDescriptionTranslator

java.lang.Object
  extended by org.coode.owl.rdfxml.parser.AbstractDescriptionTranslator
      extended by org.coode.owl.rdfxml.parser.AbstractNaryBooleanDescriptionTranslator
All Implemented Interfaces:
DescriptionTranslator
Direct Known Subclasses:
IntersectionOfTranslator, UnionOfTranslator

public abstract class AbstractNaryBooleanDescriptionTranslator
extends AbstractDescriptionTranslator

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 08-Dec-2006

A base class for translators that translate a set of triples to an Nary boolean description - i.e. an OWLIntersectionOf or OWLUnionOf description.


Constructor Summary
AbstractNaryBooleanDescriptionTranslator(OWLRDFConsumer consumer)
           
 
Method Summary
 OWLDescription translate(java.net.URI mainNode)
          Translates the specified main node into an OWLDescription.
 
Methods inherited from class org.coode.owl.rdfxml.parser.AbstractDescriptionTranslator
getConsumer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNaryBooleanDescriptionTranslator

public AbstractNaryBooleanDescriptionTranslator(OWLRDFConsumer consumer)
Method Detail

translate

public OWLDescription translate(java.net.URI mainNode)
                         throws OWLException
Description copied from interface: DescriptionTranslator
Translates the specified main node into an OWLDescription. All triples used in the translation are consumed.

Parameters:
mainNode - The main node of the set of triples that represent the description.
Returns:
The description that represents the translation.
Throws:
OWLException - If the translation could not take place, possibly because the description (set of triples) was malformed.