org.coode.owlapi.rdfxml.parser
Class AbstractObjectCardinalityTranslator

java.lang.Object
  extended by org.coode.owlapi.rdfxml.parser.AbstractClassExpressionTranslator
      extended by org.coode.owlapi.rdfxml.parser.AbstractRestrictionTranslator
          extended by org.coode.owlapi.rdfxml.parser.AbstractObjectRestrictionTranslator
              extended by org.coode.owlapi.rdfxml.parser.AbstractObjectCardinalityTranslator
All Implemented Interfaces:
ClassExpressionTranslator
Direct Known Subclasses:
ObjectCardinalityTranslator, ObjectMaxCardinalityTranslator, ObjectMinCardinalityTranslator

public abstract class AbstractObjectCardinalityTranslator
extends AbstractObjectRestrictionTranslator

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


Constructor Summary
AbstractObjectCardinalityTranslator(OWLRDFConsumer consumer)
           
 
Method Summary
protected abstract  OWLClassExpression createRestriction(OWLObjectPropertyExpression prop, int cardi, OWLClassExpression filler)
          Given a property expression, cardinality and filler, this method creates the appropriate OWLAPI object
protected abstract  IRI getCardinalityTriplePredicate()
          Gets the predicate of the cardinality triple (e.g.
protected abstract  IRI getQualifiedCardinalityTriplePredicate()
           
protected  OWLClassExpression translateRestriction(IRI mainNode)
           
 
Methods inherited from class org.coode.owlapi.rdfxml.parser.AbstractObjectRestrictionTranslator
translateOnProperty
 
Methods inherited from class org.coode.owlapi.rdfxml.parser.AbstractRestrictionTranslator
translate
 
Methods inherited from class org.coode.owlapi.rdfxml.parser.AbstractClassExpressionTranslator
getConsumer, getDataFactory, getLiteralObject, getResourceObject, isTriplePresent, translateToClassExpression, translateToClassExpressionSet, translateToIndividualSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractObjectCardinalityTranslator

public AbstractObjectCardinalityTranslator(OWLRDFConsumer consumer)
Method Detail

getCardinalityTriplePredicate

protected abstract IRI getCardinalityTriplePredicate()
Gets the predicate of the cardinality triple (e.g. minCardinality, cardinality, maxCardinality)

Returns:
The IRI corresponding to the predicate of the triple that identifies the cardinality of the restriction.

getQualifiedCardinalityTriplePredicate

protected abstract IRI getQualifiedCardinalityTriplePredicate()

translateRestriction

protected OWLClassExpression translateRestriction(IRI mainNode)
Specified by:
translateRestriction in class AbstractRestrictionTranslator

createRestriction

protected abstract OWLClassExpression createRestriction(OWLObjectPropertyExpression prop,
                                                        int cardi,
                                                        OWLClassExpression filler)
Given a property expression, cardinality and filler, this method creates the appropriate OWLAPI object