/** * (15) * * ObjectPropertyAssertion := 'ObjectPropertyAssertion' '(' axiomAnnotations ObjectPropertyExpression * sourceIndividual targetIndividual ')' */ @Override public void visit(OWLObjectPropertyAssertionAxiom ax) { try { IRIConstant c1 = getIndividual(ax.getSubject()); IRIConstant c2 = getIndividual(ax.getObject()); ObjectPropertyExpression ope = getPropertyExpression(ax.getProperty(), builder.objectProperties()); builder.addObjectPropertyAssertion(ope, c1, c2); } catch (TranslationException e) { log.warn(NOT_SUPPORTED_EXT, ax, e.getMessage()); } catch (InconsistentOntologyException e) { log.warn(INCONSISTENT_ONTOLOGY, ax); throw new RuntimeException(INCONSISTENT_ONTOLOGY_EXCEPTION_MESSAGE + ax); } }