public OWLRuntimeException convert(ElkException e) { if (e instanceof ElkFreshEntitiesException) return convert((ElkFreshEntitiesException) e); else if (e instanceof ElkInconsistentOntologyException) return convert((ElkInconsistentOntologyException) e); else if (e instanceof ElkInterruptedException) return convert((ElkInterruptedException) e); else return new OWLRuntimeException(e); }
private Node<OWLObjectPropertyExpression> getObjectPropertyNode( final ElkObjectProperty elkClass) throws FreshEntitiesException, InconsistentOntologyException, ElkException { try { return elkConverter_.convertObjectPropertyNode( reasoner_.getObjectPropertyNode(elkClass)); } catch (ElkException e) { throw elkConverter_.convert(e); } }
private Node<OWLClass> getClassNode(ElkClass elkClass) throws FreshEntitiesException, InconsistentOntologyException, ElkException { try { return elkConverter_ .convertClassNode(reasoner_.getEquivalentClasses(elkClass)); } catch (ElkException e) { throw elkConverter_.convert(e); } }
public OWLObjectPropertyNode convertObjectPropertyNode( final Node<ElkObjectProperty> node) { final Set<OWLObjectPropertyExpression> owlObjectProps = new HashSet<OWLObjectPropertyExpression>(); for (final ElkObjectProperty cls : node) { owlObjectProps.add(convert(cls)); } return new OWLObjectPropertyNode(owlObjectProps); }
private Node<OWLObjectPropertyExpression> getObjectPropertyNode( final ElkObjectProperty elkClass) throws FreshEntitiesException, InconsistentOntologyException, ElkException { try { return elkConverter_.convertObjectPropertyNode( reasoner_.getObjectPropertyNode(elkClass)); } catch (ElkException e) { throw elkConverter_.convert(e); } }
private Node<OWLClass> getClassNode(ElkClass elkClass) throws FreshEntitiesException, InconsistentOntologyException, ElkException { try { return elkConverter_ .convertClassNode(reasoner_.getEquivalentClasses(elkClass)); } catch (ElkException e) { throw elkConverter_.convert(e); } }
public OWLObjectPropertyNode convertObjectPropertyNode( final Node<ElkObjectProperty> node) { final Set<OWLObjectPropertyExpression> owlObjectProps = new HashSet<OWLObjectPropertyExpression>(); for (final ElkObjectProperty cls : node) { owlObjectProps.add(convert(cls)); } return new OWLObjectPropertyNode(owlObjectProps); }
private Node<OWLObjectPropertyExpression> getObjectPropertyNode( final ElkObjectProperty elkClass) throws FreshEntitiesException, InconsistentOntologyException, ElkException { try { return elkConverter_.convertObjectPropertyNode( reasoner_.getObjectPropertyNode(elkClass)); } catch (ElkException e) { throw elkConverter_.convert(e); } }
@Override public void begin(int size) { if (isBufferingMode_ && loadBeforeChanges_) { try { LOGGER_.trace("force initial loading"); reasoner_.ensureLoading(); loadBeforeChanges_ = false; } catch (ElkException e) { throw elkConverter_.convert(e); } } }
public OWLClassNode convertClassNode(Node<ElkClass> node) { Set<OWLClass> owlClasses = new HashSet<OWLClass>(); for (ElkClass cls : node) { owlClasses.add(convert(cls)); } return new OWLClassNode(owlClasses); }
public OWLNamedIndividualNode convertIndividualNode( Node<ElkNamedIndividual> node) { Set<OWLNamedIndividual> owlIndividuals = new HashSet<OWLNamedIndividual>(); for (ElkNamedIndividual ind : node) { owlIndividuals.add(convert(ind)); } return new OWLNamedIndividualNode(owlIndividuals); }
public OWLClassNode convertClassNode(Node<ElkClass> node) { Set<OWLClass> owlClasses = new HashSet<OWLClass>(); for (ElkClass cls : node) { owlClasses.add(convert(cls)); } return new OWLClassNode(owlClasses); }
public OWLNamedIndividualNode convertIndividualNode( Node<ElkNamedIndividual> node) { Set<OWLNamedIndividual> owlIndividuals = new HashSet<OWLNamedIndividual>(); for (ElkNamedIndividual ind : node) { owlIndividuals.add(convert(ind)); } return new OWLNamedIndividualNode(owlIndividuals); }
public OWLObjectPropertyNode convertObjectPropertyNode( final Node<ElkObjectProperty> node) { final Set<OWLObjectPropertyExpression> owlObjectProps = new HashSet<OWLObjectPropertyExpression>(); for (final ElkObjectProperty cls : node) { owlObjectProps.add(convert(cls)); } return new OWLObjectPropertyNode(owlObjectProps); }
public OWLNamedIndividualNode convertIndividualNode( Node<ElkNamedIndividual> node) { Set<OWLNamedIndividual> owlIndividuals = new HashSet<OWLNamedIndividual>(); for (ElkNamedIndividual ind : node) { owlIndividuals.add(convert(ind)); } return new OWLNamedIndividualNode(owlIndividuals); }
@Override public void begin(int size) { if (isBufferingMode_ && loadBeforeChanges_) { try { LOGGER_.trace("force initial loading"); reasoner_.ensureLoading(); loadBeforeChanges_ = false; } catch (ElkException e) { throw elkConverter_.convert(e); } } }
public FreshEntitiesException convert(ElkFreshEntitiesException e) { HashSet<OWLEntity> owlEntities = new HashSet<OWLEntity>(); for (ElkEntity elkEntity : e.getEntities()) { owlEntities.add(convert(elkEntity)); } return new FreshEntitiesException(owlEntities); }
public FreshEntitiesException convert(ElkFreshEntitiesException e) { HashSet<OWLEntity> owlEntities = new HashSet<OWLEntity>(); for (ElkEntity elkEntity : e.getEntities()) { owlEntities.add(convert(elkEntity)); } return new FreshEntitiesException(owlEntities); }
@Override public Void visit( final UnsupportedQueryTypeEntailmentQueryResult unsupportedQueryType) throws ElkException { throw new UnsupportedEntailmentTypeException( elkConverter_.convert(unsupportedQueryType.getQuery())); }
@Override public Void visit( final UnsupportedQueryTypeEntailmentQueryResult unsupportedQueryType) throws ElkException { throw new UnsupportedEntailmentTypeException( elkConverter_.convert(unsupportedQueryType.getQuery())); }