final URI sourceIndividualURI = getConsumer().getResourceObject(subject,
OWLRDFVocabulary.OWL_SOURCE_INDIVIDUAL.getURI(), true);
if( sourceIndividualURI == null ) {
throw new OWLRDFXMLParserMalformedNodeException("missing owl:sourceIndividual triple");
}
final OWLIndividual sourceIndividual = translateIndividual(sourceIndividualURI);
final URI assertionPropertyURI = getConsumer().getResourceObject(subject,
OWLRDFVocabulary.OWL_ASSERTION_PROPERTY.getURI(), true);
if( assertionPropertyURI == null ) {
throw new OWLRDFXMLParserMalformedNodeException("missing owl:assertionProperty triple");
}
URI targetIndividualURI = getConsumer().getResourceObject(subject,
OWLRDFVocabulary.OWL_TARGET_INDIVIDUAL.getURI(), true);
OWLConstant targetValue = getConsumer().getLiteralObject(subject,
OWLRDFVocabulary.OWL_TARGET_VALUE.getURI(), true);
OWLAxiom ax;
if( targetIndividualURI != null ) {
if( targetValue != null ) {
throw new OWLRDFXMLParserMalformedNodeException(
"owl:targetIndividual and owl:targetValue triples with the same subject");
}
final OWLObjectPropertyExpression assertionProperty = translateObjectProperty(assertionPropertyURI);
final OWLIndividual targetIndividual = translateIndividual(targetIndividualURI);
ax = getDataFactory().getOWLNegativeObjectPropertyAssertionAxiom(sourceIndividual,
assertionProperty, targetIndividual);
}
else {
if( targetValue == null ) {