org.coode.owlapi.rdfxml.parser
Class AbstractDataCardinalityTranslator

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.AbstractDataRestrictionTranslator
              extended by org.coode.owlapi.rdfxml.parser.AbstractDataCardinalityTranslator
All Implemented Interfaces:
ClassExpressionTranslator
Direct Known Subclasses:
DataCardinalityTranslator, DataMaxCardinalityTranslator, DataMinCardinalityTranslator

public abstract class AbstractDataCardinalityTranslator
extends AbstractDataRestrictionTranslator

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


Constructor Summary
AbstractDataCardinalityTranslator(OWLRDFConsumer consumer)
           
 
Method Summary
protected abstract  OWLClassExpression createRestriction(OWLDataPropertyExpression prop, int cardi, OWLDataRange 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()
          Gets the predicate of the qualified cardinality triple.
protected  OWLClassExpression translateRestriction(IRI mainNode)
           
 
Methods inherited from class org.coode.owlapi.rdfxml.parser.AbstractDataRestrictionTranslator
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

AbstractDataCardinalityTranslator

public AbstractDataCardinalityTranslator(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()
Gets the predicate of the qualified cardinality triple.

Returns:
The predicate IRI

translateRestriction

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

createRestriction

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