public class QTL2Disjunctive extends AbstractCELA implements Cloneable
MAX_NR_OF_RESULTS
Constructor and Description |
---|
QTL2Disjunctive() |
QTL2Disjunctive(PosNegLP learningProblem,
AbstractReasonerComponent reasoner) |
QTL2Disjunctive(PosNegLP lp,
org.aksw.jena_sparql_api.core.QueryExecutionFactory qef) |
QTL2Disjunctive(PosNegLP lp,
SparqlEndpointKS ks) |
QTL2Disjunctive(QTL2Disjunctive qtl)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
EvaluatedRDFResourceTree |
getBestSolution() |
org.semanticweb.owlapi.model.OWLClassExpression |
getCurrentlyBestDescription() |
EvaluatedDescription |
getCurrentlyBestEvaluatedDescription()
Returns the best descriptions obtained so far.
|
QueryTreeHeuristic |
getHeuristic() |
SortedSet<EvaluatedRDFResourceTree> |
getSolutions() |
List<EvaluatedRDFResourceTree> |
getSolutionsAsList() |
long |
getTimeBestSolutionFound() |
void |
init()
Method to be called after the component has been configured.
|
boolean |
isRunning()
Returns whether the learning algorithm is running.
|
void |
setBeta(double beta)
Default value is 1.
|
void |
setEntailment(Entailment entailment) |
void |
setHeuristic(QueryTreeHeuristic heuristic) |
void |
setKs(SparqlEndpointKS ks) |
void |
setMaxTreeComputationTimeInSeconds(double maxTreeComputationTimeInSeconds)
Set the max.
|
void |
setMaxTreeDepth(int maxTreeDepth) |
void |
setNegativeExampleTrees(Map<org.semanticweb.owlapi.model.OWLIndividual,RDFResourceTree> negativeExampleTrees) |
void |
setNoise(double noise) |
void |
setNoisePercentage(double noisePercentage) |
void |
setPositiveExampleTrees(Map<org.semanticweb.owlapi.model.OWLIndividual,RDFResourceTree> positiveExampleTrees) |
void |
setReasoner(AbstractReasonerComponent reasoner) |
void |
setTreeFactory(QueryTreeFactory treeFactory) |
void |
start()
Starts the algorithm.
|
void |
stop()
Stops the algorithm gracefully.
|
changeLearningProblem, changeReasonerComponent, getAllowedConcepts, getAllowedDataProperties, getAllowedObjectProperties, getCurrentlyBestDescriptions, getCurrentlyBestDescriptions, getCurrentlyBestDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestMostGeneralEvaluatedDescriptions, getIgnoredConcepts, getIgnoredDataProperties, getIgnoredObjectProperties, getLearningProblem, getMaxExecutionTimeInSeconds, getReasoner, isUseMinimizer, setAllowedConcepts, setAllowedDataProperties, setAllowedObjectProperties, setIgnoredConcepts, setIgnoredDataProperties, setIgnoredObjectProperties, setLearningProblem, setMaxExecutionTime, setMaxExecutionTimeInSeconds, setRenderer, setUseMinimizer, supportedLearningProblems
isInitialized
public QTL2Disjunctive()
public QTL2Disjunctive(PosNegLP learningProblem, AbstractReasonerComponent reasoner)
public QTL2Disjunctive(PosNegLP lp, org.aksw.jena_sparql_api.core.QueryExecutionFactory qef)
public QTL2Disjunctive(PosNegLP lp, SparqlEndpointKS ks)
public QTL2Disjunctive(QTL2Disjunctive qtl)
qtl
- the QTL2Disjunctive instancepublic void init() throws ComponentInitException
Component
init
in interface Component
ComponentInitException
- 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 void setEntailment(Entailment entailment)
entailment
- the entailment to setpublic void start()
LearningAlgorithm
start
in interface LearningAlgorithm
public void stop()
StoppableLearningAlgorithm
stop
in interface StoppableLearningAlgorithm
stop
in class AbstractCELA
public org.semanticweb.owlapi.model.OWLClassExpression getCurrentlyBestDescription()
getCurrentlyBestDescription
in class AbstractCELA
AbstractCELA.getCurrentlyBestEvaluatedDescription()
public EvaluatedDescription getCurrentlyBestEvaluatedDescription()
AbstractCELA
getCurrentlyBestEvaluatedDescription
in class AbstractCELA
public boolean isRunning()
StoppableLearningAlgorithm
isRunning
in interface StoppableLearningAlgorithm
isRunning
in class AbstractCELA
public void setReasoner(AbstractReasonerComponent reasoner)
setReasoner
in class AbstractCELA
public void setNoisePercentage(double noisePercentage)
noisePercentage
- the noisePercentage to setpublic void setNoise(double noise)
noise
- the noise to setpublic void setBeta(double beta)
beta
- the beta to setpublic void setMaxTreeComputationTimeInSeconds(double maxTreeComputationTimeInSeconds)
maxTreeComputationTimeInSeconds
- the max. computation for a partial solution treepublic QueryTreeHeuristic getHeuristic()
public void setHeuristic(QueryTreeHeuristic heuristic)
heuristic
- the heuristic to setpublic void setTreeFactory(QueryTreeFactory treeFactory)
treeFactory
- the treeFactory to setpublic EvaluatedRDFResourceTree getBestSolution()
public SortedSet<EvaluatedRDFResourceTree> getSolutions()
public List<EvaluatedRDFResourceTree> getSolutionsAsList()
public void setPositiveExampleTrees(Map<org.semanticweb.owlapi.model.OWLIndividual,RDFResourceTree> positiveExampleTrees)
positiveExampleTrees
- the positive example trees to setpublic void setNegativeExampleTrees(Map<org.semanticweb.owlapi.model.OWLIndividual,RDFResourceTree> negativeExampleTrees)
negativeExampleTrees
- the negative example trees to set@Autowired public void setKs(SparqlEndpointKS ks)
ks
- the ks to setpublic void setMaxTreeDepth(int maxTreeDepth)
maxTreeDepth
- the maximum depth of the trees, if those have to be generated
first. The default depth is 2.public long getTimeBestSolutionFound()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann