|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.tools.protege.DLLearnerModel
public class DLLearnerModel
This Class provides the necessary methods to learn Concepts from the DL-Learner.
| Constructor Summary | |
|---|---|
DLLearnerModel(org.protege.editor.owl.OWLEditorKit editorKit,
DLLearnerView view)
This is the constructor for DL-Learner model. |
|
| Method Summary | |
|---|---|
void |
changeDLLearnerDescriptionsToOWLDescriptions(Description descript)
This method stores the new concept learned by the DL-Learner in the Ontology. |
boolean |
getAlreadyLearned()
This method gets the status if the DL-Learner has already learned. |
NamedClass |
getCurrentConcept()
This method returns the current concept. |
List<? extends EvaluatedDescription> |
getEvaluatedDescriptionList()
This Method returns a List of evaluated descriptions suggested by the DL-Learner. |
String |
getID()
|
Set<Individual> |
getIndividual()
This method returns a set of individuals belonging to the currently selected class. |
LearningAlgorithm |
getLearningAlgorithm()
This method returns the current learning algorithm that is used to learn new concepts. |
Set<org.semanticweb.owl.model.OWLDescription> |
getNewOWLDescription()
This method returns a set of concepts that are learned by the DL-Learner. |
org.semanticweb.owl.model.OWLDescription |
getOldConceptOWLAPI()
This method returns the old concept which is chosen in protege in OWLDescription format. |
boolean |
getOntologyConsistent()
This method returns a boolean if an ontology is inconsistent. |
Set<String> |
getOntologyURIString()
This method returns the Strings of the Ontology uri's that are currently used. |
FastInstanceChecker |
getReasoner()
This method returns the fast instance checker reasoner. |
org.semanticweb.owl.model.OWLDescription |
getSolution()
This method returns the currently learned description in OWLDescription format. |
DefaultListModel |
getSuggestModel()
This methode returns the Model for the suggested Concepts. |
boolean |
hasIndividuals()
This Method checks if the selected class has any individuals. |
void |
initReasoner()
This method initializes the SimpleSuggestionLearningAlgorithm and adds the suggestions to the suggest panel model. |
boolean |
isConsistent(EvaluatedDescription eDescription)
This Method checks if after inserting of this concept the ontology is still consistent. |
void |
run()
Starts the learning algorithm. |
void |
setCurrentConcept(NamedClass current)
This sets the current concept. |
void |
setHasIndividuals(boolean has)
Sets if the ontology has individuals. |
void |
setID(String d)
|
void |
setIndividuals(Set<Individual> ind)
This method sets the positive examples for learning. |
void |
setInstancesCount(int i)
This method sets the number of instances. |
void |
setKnowledgeSource()
This method sets the knowledge source for the learning process. |
void |
setLearningAlgorithm()
This method sets the learning algorithm for the learning process. |
void |
setLearningProblem()
This method sets the Learning problem for the learning process. |
void |
setOntologyURIString(Set<String> uri)
This method sets the uri sting for the currently used for learning. |
void |
setReasoner()
This method sets the reasoner. |
void |
setSuggestList(List<? extends EvaluatedDescription> list)
This method sets the suggestion list. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DLLearnerModel(org.protege.editor.owl.OWLEditorKit editorKit,
DLLearnerView view)
editorKit - Editor Kit to get the currently loaded Ontologyid - String if it learns a subclass or a superclass.view - current view of the DL-Learner tab| Method Detail |
|---|
public void setID(String d)
public void initReasoner()
public List<? extends EvaluatedDescription> getEvaluatedDescriptionList()
public void setKnowledgeSource()
public void setReasoner()
public FastInstanceChecker getReasoner()
public NamedClass getCurrentConcept()
public void setLearningProblem()
public void setLearningAlgorithm()
public void run()
run in interface Runnablepublic void setIndividuals(Set<Individual> ind)
ind - Set of Individualspublic void setOntologyURIString(Set<String> uri)
uri - Set of urispublic boolean hasIndividuals()
public void setHasIndividuals(boolean has)
has - boolean if concept has Individualspublic LearningAlgorithm getLearningAlgorithm()
public Set<org.semanticweb.owl.model.OWLDescription> getNewOWLDescription()
public org.semanticweb.owl.model.OWLDescription getOldConceptOWLAPI()
public org.semanticweb.owl.model.OWLDescription getSolution()
public DefaultListModel getSuggestModel()
public void changeDLLearnerDescriptionsToOWLDescriptions(Description descript)
descript - Description learn by the DL-Learnerpublic boolean getAlreadyLearned()
public boolean isConsistent(EvaluatedDescription eDescription)
eDescription - EvauatedDescription
public void setSuggestList(List<? extends EvaluatedDescription> list)
list - List(EvaluatedDescription)public Set<String> getOntologyURIString()
public boolean getOntologyConsistent()
public void setCurrentConcept(NamedClass current)
current - currently selected classpublic Set<Individual> getIndividual()
public void setInstancesCount(int i)
i - number of instancespublic String getID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||