From: <hee...@us...> - 2008-12-15 12:22:15
|
Revision: 1552 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1552&view=rev Author: heeroyuy Date: 2008-12-15 12:03:26 +0000 (Mon, 15 Dec 2008) Log Message: ----------- -added ignored classes when learning a super class Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java trunk/src/dl-learner/org/dllearner/tools/protege/INSTALL trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanelHandler.java trunk/src/dl-learner/org/dllearner/tools/protege/README Removed Paths: ------------- trunk/src/dl-learner/org/dllearner/tools/protege/DL-Learner-Protege-plugin-screencast.url Modified: trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java 2008-12-12 15:42:11 UTC (rev 1551) +++ trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java 2008-12-15 12:03:26 UTC (rev 1552) @@ -75,8 +75,8 @@ private Timer timer; private LearningAlgorithm la; private SuggestionRetriever retriever; - private final Color colorRed = new Color(139,0,0); - private final Color colorGreen = new Color(0,139,0); + private final Color colorRed = new Color(139, 0, 0); + private final Color colorGreen = new Color(0, 139, 0); /** * This is the constructor for the action handler. * Deleted: trunk/src/dl-learner/org/dllearner/tools/protege/DL-Learner-Protege-plugin-screencast.url =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/DL-Learner-Protege-plugin-screencast.url 2008-12-12 15:42:11 UTC (rev 1551) +++ trunk/src/dl-learner/org/dllearner/tools/protege/DL-Learner-Protege-plugin-screencast.url 2008-12-15 12:03:26 UTC (rev 1552) @@ -1,6 +0,0 @@ -[InternetShortcut] -URL=http://dl-learner.org/files/screencast/protege/prot.htm -HotKey=0 -IDList= -[{000214A0-0000-0000-C000-000000000046}] -Prop3=19,2 Modified: trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java 2008-12-12 15:42:11 UTC (rev 1551) +++ trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java 2008-12-15 12:03:26 UTC (rev 1552) @@ -356,6 +356,19 @@ } Set<String> ignore = new TreeSet<String>(); ignore.add(currentConcept.toString()); + if(id.equals(SUPER_CLASS_AXIOM_STRING)) { + Description currentClass = (Description)currentConcept; + String currentClassString = currentConcept.toString(); + while(!currentClassString.contains("TOP")) { + Iterator<Description> it = reasoner.getSuperClasses(currentClass).iterator(); + while(it.hasNext()) { + Description ignoredClass = it.next(); + if(!ignoredClass.toString().equals("TOP")) { + ignore.add(ignoredClass.toString()); + } + } + } + } cm.applyConfigEntry(la, "ignoredConcepts", ignore); cm.applyConfigEntry(la, "noisePercentage", 5.0); cm.applyConfigEntry(la, "terminateOnNoiseReached", false); Modified: trunk/src/dl-learner/org/dllearner/tools/protege/INSTALL =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/INSTALL 2008-12-12 15:42:11 UTC (rev 1551) +++ trunk/src/dl-learner/org/dllearner/tools/protege/INSTALL 2008-12-15 12:03:26 UTC (rev 1552) @@ -1,15 +1,16 @@ Requirements ============ -Java 6 and the Prot\xE9g\xE9 4.0 Beta are required. (All other libraries are included in the release.) +Java 6 and the Protégé 4.0 Beta are required. (All other libraries are included in the release.) Installation ============ -Put the DL-Learner-protege-plugin.jar in your plugin folder of Prot\xE9g\xE9. +Put the DL-Learner-protege-plugin.jar in your plugin folder of Protégé. Running Instructions ==================== To use the plugin go to view --> class views and click on class descriptions (including DL-Learner plugin). -Put the new frame somewhere in the classes tab in Prot\xE9g\xE9 and close the old class description view. All features are included in the plugin. -If you have problems look at the screen cast link in the release bundle. +Put the new frame somewhere in the classes tab in Protégé and close the old class description view. All features are included in the plugin. +If you have problems look at the screen cast: http://dl-learner.org/files/screencast/protege/prot.htm + Modified: trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java 2008-12-12 15:42:11 UTC (rev 1551) +++ trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java 2008-12-15 12:03:26 UTC (rev 1552) @@ -111,8 +111,8 @@ private EvaluatedDescription eval; private JTextArea concept; private JTextArea conceptText; - private final Color colorRed = new Color(139,0,0); - private final Color colorGreen = new Color(0,139,0); + private final Color colorRed = new Color(139, 0, 0); + private final Color colorGreen = new Color(0, 139, 0); /** * This is the constructor for the Panel. * @param model DLLearnerModel Modified: trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java 2008-12-12 15:42:11 UTC (rev 1551) +++ trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java 2008-12-15 12:03:26 UTC (rev 1552) @@ -144,7 +144,7 @@ helpForPosExamples = new JButton("?"); helpForPosExamples.setBounds(100, 5, 20, 20); helpForNegExamples = new JButton("?"); - helpForNegExamples.setBounds(100, 5, 20, 20); + helpForNegExamples.setBounds(105, 5, 20, 20); helpForPosExamples.setName("PosHelpButton"); helpForNegExamples.setName("NegHelpButton"); //set size for components that have no layout. Modified: trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanelHandler.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanelHandler.java 2008-12-12 15:42:11 UTC (rev 1551) +++ trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanelHandler.java 2008-12-15 12:03:26 UTC (rev 1552) @@ -76,12 +76,13 @@ if (action.getActionCommand().equals("?")) { if (action.getSource().toString().contains("PosHelpButton")) { String help = "An individual that should be an instance of the learned class description.\n" - +"Per Default all that belongs to the class."; + +"Per default all that belongs to the class."; view.getPosAndNegSelectPanel().renderHelpMessage(help); } if (action.getSource().toString().contains("NegHelpButton")) { - String help = "A Instance tht doesn't follow from the classdescription."; + String help = "An individual that should not be instance of the learned class description.\n" + +" By default, these are all individuals, which are not instances of the current class."; view.getPosAndNegSelectPanel().renderHelpMessage(help); } Modified: trunk/src/dl-learner/org/dllearner/tools/protege/README =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/README 2008-12-12 15:42:11 UTC (rev 1551) +++ trunk/src/dl-learner/org/dllearner/tools/protege/README 2008-12-15 12:03:26 UTC (rev 1552) @@ -1,15 +1,17 @@ README ====== -The Prot\xE9g\xE9 DL-Learner plugin allows to learn equivalence and super class axioms based on -the instance data in the ontologies loaded in Prot\xE9g\xE9. It integrated seamlessly in Prot\xE9g\xE9. +The Protégé DL-Learner plugin allows to learn equivalence and super class axioms based on +the instance data in the ontologies loaded in Protégé. It integrated seamlessly in Protégé. Homepage: http://dl-learner.org/wiki/ProtegePlugin Sourceforge.net Project Page: http://sourceforge.net/projects/dl-learner/ Bugs & Feature Requests: http://sourceforge.net/tracker/?group_id=203619 Mailing Lists: http://sourceforge.net/mail/?group_id=203619 Latest Release: http://sourceforge.net/project/showfiles.php?group_id=203619 +Sourcecode: https://dl-learner.svn.sourceforge.net/svnroot/dl-learner/trunk/src/dl-learner/org/dllearner/tools/protege/ -The Prot\xE9g\xE9 Plugin is Open Source and licenced under the GNU General Public License. +The Protégé Plugin is Open Source and licenced under the GNU General Public License. -Documentation for the Prot\xE9g\xE9 Plugin can be found +Documentation for the Protégé Plugin can be found at http://dl-learner.org/wiki/ProtegePlugin. + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |