org.dllearner.tools.ore
Class ORE

java.lang.Object
  extended by org.dllearner.tools.ore.ORE

public class ORE
extends Object

This class contains init methods, and is used as broker between wizard and OWL-API.

Author:
Lorenz Buehmann

Constructor Summary
ORE()
           
 
Method Summary
 Collection<JLabel> descriptionToJLabelNeg(Individual ind, Description desc)
          Retrieves the description parts, that might cause inconsistency - for negative examples.
 Collection<JLabel> descriptionToJLabelPos(Individual ind, Description desc)
          Retrieves the description parts that might cause inconsistency - for positive examples.
 String getBaseURI()
           
 Set<NamedClass> getComplements(Description desc, Individual ind)
          Get the complement classes where individual is asserted to.
 ReasonerComponent getFastReasoner()
           
 NamedClass getIgnoredConcept()
           
 Set<Individual> getIndividualsInPropertyRange(ObjectQuantorRestriction objRestr, Individual ind)
          Returns individuals that are in range of property.
 Set<Individual> getIndividualsNotInPropertyRange(ObjectQuantorRestriction objRestr, Individual ind)
          Returns individuals that are not in range of property.
 LearningAlgorithm getLa()
           
 OntologyModifier getModifier()
           
 Set<Description> getNegCriticalDescriptions(Individual ind, Description desc)
          Retrieves description parts that might cause inconsistency - for negative examples only.
 EvaluatedDescriptionPosNeg getNewClassDescription()
           
 ReasonerComponent getOwlReasoner()
           
 Set<NamedClass> getpossibleClassesMoveFrom(Individual ind)
          Returns classes where individual might moved from.
 Set<NamedClass> getpossibleClassesMoveTo(Individual ind)
          Returns classes where individual might moved to.
 Map<String,String> getPrefixes()
           
 ReasonerComponent getReasonerComponent()
          Returns the reasoningservice.
 void init()
           
 void initReasoners()
          Initialize the reasoners.
static void main(String[] args)
           
 void setClassToLearn(NamedClass oldClass)
          Sets the class that has to be learned.
 void setKnowledgeSource(File f)
          Applying knowledge source.
 void setLearningAlgorithm()
           
 void setLearningProblem()
           
 void setNewClassDescription(EvaluatedDescriptionPosNeg newClassDescription)
           
 void setNoise(double noise)
           
 void setPosNegExamples()
           
 void start()
          Starts the learning algorithm, setting noise value and ignored concepts.
 void updateReasoner()
          Update reasoners ontology.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORE

public ORE()
Method Detail

setKnowledgeSource

public void setKnowledgeSource(File f)
Applying knowledge source.


initReasoners

public void initReasoners()
Initialize the reasoners.


getReasonerComponent

public ReasonerComponent getReasonerComponent()
Returns the reasoningservice.

Returns:
reasoning service

setPosNegExamples

public void setPosNegExamples()

getModifier

public OntologyModifier getModifier()

getNewClassDescription

public EvaluatedDescriptionPosNeg getNewClassDescription()

getBaseURI

public String getBaseURI()

getPrefixes

public Map<String,String> getPrefixes()

getOwlReasoner

public ReasonerComponent getOwlReasoner()

getFastReasoner

public ReasonerComponent getFastReasoner()

setLearningProblem

public void setLearningProblem()

setNoise

public void setNoise(double noise)

setLearningAlgorithm

public void setLearningAlgorithm()

setClassToLearn

public void setClassToLearn(NamedClass oldClass)
Sets the class that has to be learned.

Parameters:
oldClass - class that is choosen to be (re)learned

init

public void init()

start

public void start()
Starts the learning algorithm, setting noise value and ignored concepts.


setNewClassDescription

public void setNewClassDescription(EvaluatedDescriptionPosNeg newClassDescription)

getLa

public LearningAlgorithm getLa()

getIgnoredConcept

public NamedClass getIgnoredConcept()

getNegCriticalDescriptions

public Set<Description> getNegCriticalDescriptions(Individual ind,
                                                   Description desc)
Retrieves description parts that might cause inconsistency - for negative examples only.

Parameters:
ind -
desc -

descriptionToJLabelNeg

public Collection<JLabel> descriptionToJLabelNeg(Individual ind,
                                                 Description desc)
Retrieves the description parts, that might cause inconsistency - for negative examples.

Parameters:
ind -
desc -
Returns:
vector of JLabel

descriptionToJLabelPos

public Collection<JLabel> descriptionToJLabelPos(Individual ind,
                                                 Description desc)
Retrieves the description parts that might cause inconsistency - for positive examples.

Parameters:
ind -
desc -
Returns:
vector of JLabel

getIndividualsInPropertyRange

public Set<Individual> getIndividualsInPropertyRange(ObjectQuantorRestriction objRestr,
                                                     Individual ind)
Returns individuals that are in range of property.

Parameters:
objRestr -
ind -

getIndividualsNotInPropertyRange

public Set<Individual> getIndividualsNotInPropertyRange(ObjectQuantorRestriction objRestr,
                                                        Individual ind)
Returns individuals that are not in range of property.

Parameters:
objRestr -
ind -

getpossibleClassesMoveTo

public Set<NamedClass> getpossibleClassesMoveTo(Individual ind)
Returns classes where individual might moved to.

Parameters:
ind - the individual
Returns:
set of classes

getpossibleClassesMoveFrom

public Set<NamedClass> getpossibleClassesMoveFrom(Individual ind)
Returns classes where individual might moved from.

Parameters:
ind - the individual
Returns:
set of classes

updateReasoner

public void updateReasoner()
Update reasoners ontology.


getComplements

public Set<NamedClass> getComplements(Description desc,
                                      Individual ind)
Get the complement classes where individual is asserted to.

Parameters:
desc -
ind -

main

public static void main(String[] args)


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