/** * @see #getCurrentlyBestEvaluatedDescription() * @return The best class OWLClassExpression found by the learning algorithm so far. */ public OWLClassExpression getCurrentlyBestDescription() { return getCurrentlyBestEvaluatedDescription().getDescription(); }
public static void setRenderer(Rendering r) { setRenderer(r.getRenderer()); }
public static Set<OWLClass> computeConcepts(AbstractReasonerComponent rs) { // if there is no ignore or allowed list, we just ignore the concepts // of uninteresting namespaces Set<OWLClass> concepts = rs.getClasses(); // Helper.removeUninterestingConcepts(concepts); return concepts; }
@Override public final ClassHierarchy getClassHierarchy() { // class hierarchy is created on first invocation if (subsumptionHierarchy == null) { try { subsumptionHierarchy = prepareSubsumptionHierarchy(); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); } } return subsumptionHierarchy; }
protected Set<OWLClass> getTypesImpl(OWLIndividual individual) throws ReasoningMethodUnsupportedException { throw new ReasoningMethodUnsupportedException( "Reasoner does not support to determine type of individual."); }
@Override public final Set<OWLClass> getInconsistentClasses() { try { return getInconsistentClassesImpl(); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final Set<OWLLiteral> getLabel(OWLEntity entity) { try { return getLabelImpl(entity); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final Map<OWLIndividual, SortedSet<Boolean>> getBooleanDatatypeMembers( OWLDataProperty datatypeProperty) { try { return getBooleanDatatypeMembersImpl(datatypeProperty); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final Set<OWLDataProperty> getDatatypeProperties() { try { return getDatatypePropertiesImpl(); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final Set<OWLDataProperty> getDoubleDatatypeProperties() { try { return getDoubleDatatypePropertiesImpl(); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final Set<OWLLiteral> getRelatedValues(OWLIndividual individual, OWLDataProperty datatypeProperty) { try { return getRelatedValuesImpl(individual, datatypeProperty); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final SortedSet<OWLIndividual> getFalseDatatypeMembers(OWLDataProperty datatypeProperty) { try { return getFalseDatatypeMembersImpl(datatypeProperty); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final Set<OWLObjectProperty> getObjectProperties() { try { return getObjectPropertiesImpl(); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final Set<OWLDataProperty> getBooleanDatatypeProperties() { try { return getBooleanDatatypePropertiesImpl(); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final Set<OWLDataProperty> getNumericDataProperties() { try { return getNumericDataPropertiesImpl(); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public final OWLClassExpression getRange(OWLObjectProperty objectProperty) { try { return getRangeImpl(objectProperty); } catch (ReasoningMethodUnsupportedException e) { handleExceptions(e); return null; } }
@Override public void setReasoner(AbstractReasonerComponent reasoner){ super.setReasoner(reasoner); // loadModel(); }
/** * Sets the max. execution time of the whole algorithm. Note, this values should always be higher * than the max. execution time to compute a partial solution. * * @param maxExecutionTimeInSeconds the overall the max. execution time */ @Override public void setMaxExecutionTimeInSeconds(long maxExecutionTimeInSeconds) { super.setMaxExecutionTimeInSeconds(maxExecutionTimeInSeconds); }
/** * Evaluates the hypothesis by computing the score and returning an * evaluated hypothesis of the correct type (ClassLearningProblem * returns EvaluatedDescriptionClass instead of generic EvaluatedDescription). * @param hypothesis Hypothesis to evaluate. * @return an evaluated hypothesis */ public W evaluate(V hypothesis){ return evaluate(hypothesis, 1.0); }
@Override public void setReasoner(AbstractReasonerComponent reasoner){ super.setReasoner(reasoner); // loadModel(); }