Revision: 951
http://dl-learner.svn.sourceforge.net/dl-learner/?rev=951&view=rev
Author: heeroyuy
Date: 2008-06-10 08:07:29 -0700 (Tue, 10 Jun 2008)
Log Message:
-----------
-changed setKnowledgeSource() from OWLFile to OWLAPIOntology
Modified Paths:
--------------
trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java
Modified: trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java
===================================================================
--- trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java 2008-06-10 11:17:42 UTC (rev 950)
+++ trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java 2008-06-10 15:07:29 UTC (rev 951)
@@ -8,8 +8,6 @@
import java.util.Iterator;
import java.util.SortedSet;
-import java.io.*;
-
import javax.swing.DefaultListModel;
import javax.swing.JCheckBox;
@@ -30,7 +28,6 @@
import org.dllearner.core.owl.Individual;
import org.dllearner.core.owl.NamedClass;
-import org.dllearner.kb.OWLFile;
import org.dllearner.kb.OWLAPIOntology;
import org.dllearner.learningproblems.PosNegInclusionLP;
@@ -281,15 +278,15 @@
*/
public void setKnowledgeSource()
{
- this.source = cm.knowledgeSource(OWLFile.class);
- String uri=getUri();
+ this.source = new OWLAPIOntology(editor.getOWLModelManager().getActiveOntology());
+ /*String uri=getUri();
cm.applyConfigEntry(source, "url", new File(uri).toURI().toString());
try{
source.init();
}
catch(ComponentInitException e){
e.printStackTrace();
- }
+ }*/
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|