public abstract class AbstractAxiomLearningAlgorithm<T extends org.semanticweb.owlapi.model.OWLAxiom,S extends org.semanticweb.owlapi.model.OWLObject,E extends org.semanticweb.owlapi.model.OWLEntity> extends AbstractComponent implements AxiomLearningAlgorithm<T>
| Constructor and Description |
|---|
AbstractAxiomLearningAlgorithm() |
isInitializedpublic AbstractAxiomLearningAlgorithm()
public void setQueryExecutionFactory(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef)
public LearningProblem getLearningProblem()
LearningAlgorithmgetLearningProblem in interface LearningAlgorithm@Autowired public void setLearningProblem(LearningProblem learningProblem)
LearningAlgorithmsetLearningProblem in interface LearningAlgorithmlearningProblem - The learning problem to solve.public void setEntityToDescribe(E entityToDescribe)
entityToDescribe - the entity for which axioms will be computedpublic E getEntityToDescribe()
public void setUseSampling(boolean useSampling)
public boolean isUseSampling()
public org.semanticweb.owlapi.model.AxiomType<T> getAxiomType()
public int getMaxExecutionTimeInSeconds()
public void setMaxExecutionTimeInSeconds(int maxExecutionTimeInSeconds)
public SPARQLReasoner getReasoner()
public void setReasoner(SPARQLReasoner reasoner)
public boolean isReturnOnlyNewAxioms()
public void setReturnOnlyNewAxioms(boolean returnOnlyNewAxioms)
public int getMaxFetchedRows()
public void setMaxFetchedRows(int maxFetchedRows)
public void setForceSPARQL_1_0_Mode(boolean forceSPARQL_1_0_Mode)
public void start()
LearningAlgorithmstart in interface LearningAlgorithmpublic void setProgressMonitor(AxiomLearningProgressMonitor progressMonitor)
progressMonitor - the progressMonitor to setpublic void init() throws ComponentInitException
Componentinit in interface ComponentComponentInitException - This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable).public List<T> getCurrentlyBestAxioms()
getCurrentlyBestAxioms in interface AxiomLearningAlgorithm<T extends org.semanticweb.owlapi.model.OWLAxiom>public List<T> getCurrentlyBestAxioms(int nrOfAxioms)
getCurrentlyBestAxioms in interface AxiomLearningAlgorithm<T extends org.semanticweb.owlapi.model.OWLAxiom>nrOfAxioms - Limit for the number or returned axioms.public boolean wasTimeout()
public boolean isTimeout()
public List<T> getCurrentlyBestAxioms(int nrOfAxioms, double accuracyThreshold)
public List<T> getCurrentlyBestAxioms(double accuracyThreshold)
public EvaluatedAxiom<T> getCurrentlyBestEvaluatedAxiom()
public List<EvaluatedAxiom<T>> getCurrentlyBestEvaluatedAxioms()
getCurrentlyBestEvaluatedAxioms in interface AxiomLearningAlgorithm<T extends org.semanticweb.owlapi.model.OWLAxiom>public List<EvaluatedAxiom<T>> getCurrentlyBestEvaluatedAxioms(int nrOfAxioms)
getCurrentlyBestEvaluatedAxioms in interface AxiomLearningAlgorithm<T extends org.semanticweb.owlapi.model.OWLAxiom>nrOfAxioms - Limit for the number or returned evaluated axioms.public List<EvaluatedAxiom<T>> getCurrentlyBestEvaluatedAxioms(double accuracyThreshold)
public List<EvaluatedAxiom<T>> getCurrentlyBestEvaluatedAxioms(int nrOfAxioms, double accuracyThreshold)
getCurrentlyBestEvaluatedAxioms in interface AxiomLearningAlgorithm<T extends org.semanticweb.owlapi.model.OWLAxiom>public EvaluatedAxiom<T> getBestEvaluatedAxiom()
public void addFilterNamespace(String namespace)
public Set<S> getPositiveExamples(EvaluatedAxiom<T> evAxiom)
public Set<S> getNegativeExamples(EvaluatedAxiom<T> evAxiom)
public void explainScore(EvaluatedAxiom<T> evAxiom)
public long getEvaluatedFramentSize()
public static <E> void printSubset(Collection<E> collection, int maxSize)
@Autowired public void setKs(SparqlEndpointKS ks)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann