}
throw createException(TYPE);
}
public OWLAxiom parseAxiomWithDataPropertyStart() throws ParserException {
OWLDataPropertyExpression prop = parseDataProperty();
String kw = consumeToken();
if (kw.equalsIgnoreCase(SOME)) {
OWLDataRange dataRange = parseDataIntersectionOf();
return parseClassAxiomRemainder(getDataFactory()
.getOWLDataSomeValuesFrom(prop, dataRange));
} else if (kw.equalsIgnoreCase(ONLY)) {
OWLDataRange dataRange = parseDataIntersectionOf();
return parseClassAxiomRemainder(getDataFactory()
.getOWLDataAllValuesFrom(prop, dataRange));
} else if (kw.equalsIgnoreCase(MIN)) {
int cardi = parseInteger();
OWLDataRange dataRange = parseDataIntersectionOf();
return parseClassAxiomRemainder(getDataFactory()
.getOWLDataMinCardinality(cardi, prop, dataRange));
} else if (kw.equalsIgnoreCase(MAX)) {
int cardi = parseInteger();
OWLDataRange dataRange = parseDataIntersectionOf();
return parseClassAxiomRemainder(getDataFactory()
.getOWLDataMaxCardinality(cardi, prop, dataRange));
} else if (kw.equalsIgnoreCase(EXACTLY)) {
int cardi = parseInteger();
OWLDataRange dataRange = parseDataIntersectionOf();
return parseClassAxiomRemainder(getDataFactory()
.getOWLDataExactCardinality(cardi, prop, dataRange));
} else if (kw.equalsIgnoreCase(SUB_PROPERTY_OF)) {
OWLDataPropertyExpression superProperty = parseDataPropertyExpression();
return getDataFactory().getOWLSubDataPropertyOfAxiom(prop,
superProperty);
} else if (kw.equalsIgnoreCase(EQUIVALENT_TO)) {
OWLDataPropertyExpression equivProp = parseDataPropertyExpression();
return getDataFactory().getOWLEquivalentDataPropertiesAxiom(prop,
equivProp);
} else if (kw.equalsIgnoreCase(DISJOINT_WITH)) {
OWLDataPropertyExpression disjProp = parseDataPropertyExpression();
return getDataFactory().getOWLDisjointDataPropertiesAxiom(prop,
disjProp);
} else if (kw.equals(DOMAIN)) {
OWLClassExpression domain = parseClassExpression();
return getDataFactory().getOWLDataPropertyDomainAxiom(prop, domain);