org.dllearner.utilities.components
Class ComponentCombo

java.lang.Object
  extended by org.dllearner.utilities.components.ComponentCombo

public class ComponentCombo
extends Object

A mix of components, which are typically combined to create a full learning task. Add more constructors if you like (they should be useful in general, not just for a very specific scenario).

Author:
Jens Lehmann

Constructor Summary
ComponentCombo(AbstractKnowledgeSource source, AbstractReasonerComponent reasoner, AbstractLearningProblem problem, AbstractCELA algorithm)
          Builds a component combination object from the specified components.
ComponentCombo(Set<AbstractKnowledgeSource> sources, AbstractReasonerComponent reasoner, AbstractLearningProblem problem, AbstractCELA algorithm)
          Builds a component combination object from the specified components.
ComponentCombo(URL owlFile, Set<String> posExamples, Set<String> negExamples)
          Builds a standard combination of components.
 
Method Summary
 AbstractCELA getAlgorithm()
           
 AbstractLearningProblem getProblem()
           
 AbstractReasonerComponent getReasoner()
           
 Set<AbstractKnowledgeSource> getSources()
           
 void initAll()
          Initialise all components.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentCombo

public ComponentCombo(AbstractKnowledgeSource source,
                      AbstractReasonerComponent reasoner,
                      AbstractLearningProblem problem,
                      AbstractCELA algorithm)
Builds a component combination object from the specified components.

Parameters:
source - A knowledge source.
reasoner - A reasoner.
problem - A learning problem.
algorithm - A learning algorithm.

ComponentCombo

public ComponentCombo(Set<AbstractKnowledgeSource> sources,
                      AbstractReasonerComponent reasoner,
                      AbstractLearningProblem problem,
                      AbstractCELA algorithm)
Builds a component combination object from the specified components.

Parameters:
sources - A set of knowledge sources.
reasoner - A reasoner.
problem - A learning problem.
algorithm - A learning algorithm.

ComponentCombo

public ComponentCombo(URL owlFile,
                      Set<String> posExamples,
                      Set<String> negExamples)
Builds a standard combination of components. Currently, this is an OWL File, the FastInstanceChecker reasoning algorithm, a definition learning problem with positive and negative examples, and the example based refinement algorithm.

Parameters:
owlFile - URL of an OWL file (background knowledge).
posExamples - Set of positive examples.
negExamples - Set of negative examples.
Method Detail

initAll

public void initAll()
             throws ComponentInitException
Initialise all components.

Throws:
ComponentInitException - Thrown if a component could not be initialised properly.

getSources

public Set<AbstractKnowledgeSource> getSources()
Returns:
the sources

getReasoner

public AbstractReasonerComponent getReasoner()
Returns:
the reasoner

getProblem

public AbstractLearningProblem getProblem()
Returns:
the problem

getAlgorithm

public AbstractCELA getAlgorithm()
Returns:
the algorithm


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann