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<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<OWLObjectPropertyExpression> getObjectPropertyNode( final ElkObjectProperty elkClass) throws FreshEntitiesException, InconsistentOntologyException, ElkException { try { return elkConverter_.convertObjectPropertyNode( reasoner_.getObjectPropertyNode(elkClass)); } catch (ElkException e) { throw elkConverter_.convert(e); } }
/** * Return the (direct or indirect) super-properties of the given * {@link ElkObjectProperty} as specified by the parameter. The method * returns a set of {@link Node}s, each of which representing an equivalence * class of super-properties. Calling of this method may trigger the * computation of the taxonomy, if it has not been done yet. * * @param property * the {@link ElkObjectProperty} for which to return the * super-property {@link Node}s * @param direct * if {@code true}, only direct super-properties are returned * @return the set of {@link Node}s for direct or indirect super-properties * of the given {@link ElkObjectProperty} according to the specified * parameter * @throws ElkException * if the result cannot be computed */ public synchronized Set<? extends Node<ElkObjectProperty>> getSuperObjectProperties( final ElkObjectProperty property, final boolean direct) throws ElkException { TaxonomyNode<ElkObjectProperty> queryNode = getObjectPropertyNode( property); return (direct) ? queryNode.getDirectSuperNodes() : queryNode.getAllSuperNodes(); }
/** * Return the (direct or indirect) sub-properties of the given * {@link ElkObjectProperty} as specified by the parameter. The method * returns a set of {@link Node}s, each of which representing an equivalence * class of sub-properties. Calling of this method may trigger the * computation of the taxonomy, if it has not been done yet. * * @param property * the {@link ElkObjectProperty} for which to return the * sub-property {@link Node}s * @param direct * if {@code true}, only direct sub-properties should be returned * @return the set of {@link Node}s for direct or indirect sub-properties of * the given {@link ElkObjectProperty} according to the specified * parameter * @throws ElkException * if the result cannot be computed */ public synchronized Set<? extends Node<ElkObjectProperty>> getSubObjectProperties( final ElkObjectProperty property, final boolean direct) throws ElkException { final TaxonomyNode<ElkObjectProperty> queryNode = getObjectPropertyNode( property); return (direct) ? queryNode.getDirectSubNodes() : queryNode.getAllSubNodes(); }
/** * Return the (direct or indirect) sub-properties of the given * {@link ElkObjectProperty} as specified by the parameter. The method * returns a set of {@link Node}s, each of which representing an equivalence * class of sub-properties. Calling of this method may trigger the * computation of the taxonomy, if it has not been done yet. * * @param property * the {@link ElkObjectProperty} for which to return the * sub-property {@link Node}s * @param direct * if {@code true}, only direct sub-properties should be returned * @return the set of {@link Node}s for direct or indirect sub-properties of * the given {@link ElkObjectProperty} according to the specified * parameter * @throws ElkException * if the result cannot be computed */ public synchronized Set<? extends Node<ElkObjectProperty>> getSubObjectProperties( final ElkObjectProperty property, final boolean direct) throws ElkException { final TaxonomyNode<ElkObjectProperty> queryNode = getObjectPropertyNode( property); return (direct) ? queryNode.getDirectSubNodes() : queryNode.getAllSubNodes(); }
/** * Return the (direct or indirect) super-properties of the given * {@link ElkObjectProperty} as specified by the parameter. The method * returns a set of {@link Node}s, each of which representing an equivalence * class of super-properties. Calling of this method may trigger the * computation of the taxonomy, if it has not been done yet. * * @param property * the {@link ElkObjectProperty} for which to return the * super-property {@link Node}s * @param direct * if {@code true}, only direct super-properties are returned * @return the set of {@link Node}s for direct or indirect super-properties * of the given {@link ElkObjectProperty} according to the specified * parameter * @throws ElkException * if the result cannot be computed */ public synchronized Set<? extends Node<ElkObjectProperty>> getSuperObjectProperties( final ElkObjectProperty property, final boolean direct) throws ElkException { TaxonomyNode<ElkObjectProperty> queryNode = getObjectPropertyNode( property); return (direct) ? queryNode.getDirectSuperNodes() : queryNode.getAllSuperNodes(); }
/** * Return the (direct or indirect) sub-properties of the given * {@link ElkObjectProperty} as specified by the parameter. The method * returns a set of {@link Node}s, each of which representing an equivalence * class of sub-properties. Calling of this method may trigger the * computation of the taxonomy, if it has not been done yet. * * @param property * the {@link ElkObjectProperty} for which to return the * sub-property {@link Node}s * @param direct * if {@code true}, only direct sub-properties should be returned * @return the set of {@link Node}s for direct or indirect sub-properties of * the given {@link ElkObjectProperty} according to the specified * parameter * @throws ElkException * if the result cannot be computed */ public synchronized Set<? extends Node<ElkObjectProperty>> getSubObjectProperties( final ElkObjectProperty property, final boolean direct) throws ElkException { final TaxonomyNode<ElkObjectProperty> queryNode = getObjectPropertyNode( property); return (direct) ? queryNode.getDirectSubNodes() : queryNode.getAllSubNodes(); }
/** * Return the (direct or indirect) super-properties of the given * {@link ElkObjectProperty} as specified by the parameter. The method * returns a set of {@link Node}s, each of which representing an equivalence * class of super-properties. Calling of this method may trigger the * computation of the taxonomy, if it has not been done yet. * * @param property * the {@link ElkObjectProperty} for which to return the * super-property {@link Node}s * @param direct * if {@code true}, only direct super-properties are returned * @return the set of {@link Node}s for direct or indirect super-properties * of the given {@link ElkObjectProperty} according to the specified * parameter * @throws ElkException * if the result cannot be computed */ public synchronized Set<? extends Node<ElkObjectProperty>> getSuperObjectProperties( final ElkObjectProperty property, final boolean direct) throws ElkException { TaxonomyNode<ElkObjectProperty> queryNode = getObjectPropertyNode( property); return (direct) ? queryNode.getDirectSuperNodes() : queryNode.getAllSuperNodes(); }
@Override public Node<OWLObjectPropertyExpression> getEquivalentObjectProperties( final OWLObjectPropertyExpression pe) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { LOGGER_.trace( "getEquivalentObjectProperties(OWLObjectPropertyExpression)"); checkInterrupted(); if (pe instanceof OWLObjectProperty) { try { return elkConverter_.convertObjectPropertyNode( reasoner_.getObjectPropertyNode( owlConverter_.convert((OWLObjectProperty) pe))); } catch (final ElkUnsupportedReasoningTaskException e) { throw unsupportedOwlApiMethod( "getEquivalentObjectProperties(OWLObjectPropertyExpression)", e.getMessage()); } catch (final ElkException e) { throw elkConverter_.convert(e); } catch (final ElkRuntimeException e) { throw elkConverter_.convert(e); } } throw unsupportedOwlApiMethod( "getEquivalentObjectProperties(OWLObjectPropertyExpression)"); }
@Override public Node<OWLObjectPropertyExpression> getEquivalentObjectProperties( final OWLObjectPropertyExpression pe) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { LOGGER_.trace( "getEquivalentObjectProperties(OWLObjectPropertyExpression)"); checkInterrupted(); if (pe instanceof OWLObjectProperty) { try { return elkConverter_.convertObjectPropertyNode( reasoner_.getObjectPropertyNode( owlConverter_.convert((OWLObjectProperty) pe))); } catch (final ElkUnsupportedReasoningTaskException e) { throw unsupportedOwlApiMethod( "getEquivalentObjectProperties(OWLObjectPropertyExpression)", e.getMessage()); } catch (final ElkException e) { throw elkConverter_.convert(e); } catch (final ElkRuntimeException e) { throw elkConverter_.convert(e); } } throw unsupportedOwlApiMethod( "getEquivalentObjectProperties(OWLObjectPropertyExpression)"); }
@Override public Node<OWLObjectPropertyExpression> getEquivalentObjectProperties( final OWLObjectPropertyExpression pe) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { LOGGER_.trace( "getEquivalentObjectProperties(OWLObjectPropertyExpression)"); checkInterrupted(); if (pe instanceof OWLObjectProperty) { try { return elkConverter_.convertObjectPropertyNode( reasoner_.getObjectPropertyNode( owlConverter_.convert((OWLObjectProperty) pe))); } catch (final ElkUnsupportedReasoningTaskException e) { throw unsupportedOwlApiMethod( "getEquivalentObjectProperties(OWLObjectPropertyExpression)", e.getMessage()); } catch (final ElkException e) { throw elkConverter_.convert(e); } catch (final ElkRuntimeException e) { throw elkConverter_.convert(e); } } throw unsupportedOwlApiMethod( "getEquivalentObjectProperties(OWLObjectPropertyExpression)"); }