/** * (4) * * ClassAssertion := 'ClassAssertion' '(' axiomAnnotations Class Individual ')' */ @Override public void visit(OWLClassAssertionAxiom ax) { try { OWLClassExpression classExpression = ax.getClassExpression(); if (!(classExpression instanceof OWLClass)) throw new OWLAPITranslatorOWL2QL.TranslationException("complex class expressions are not supported"); OClass concept = getOClass((OWLClass) classExpression, builder.classes()); IRIConstant c = getIndividual(ax.getIndividual()); builder.addClassAssertion(concept, c); } 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); } }