From: <lor...@us...> - 2009-05-04 12:25:22
|
Revision: 1731 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1731&view=rev Author: lorenz_b Date: 2009-05-04 12:25:17 +0000 (Mon, 04 May 2009) Log Message: ----------- fixed error according to new swingx lib Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/tools/ore/ClassPanelOWL.java trunk/src/dl-learner/org/dllearner/tools/ore/ClassPanelOWLDescriptor.java trunk/src/dl-learner/org/dllearner/tools/ore/ColumnListCellRenderer.java trunk/src/dl-learner/org/dllearner/tools/ore/DescriptionPanel.java trunk/src/dl-learner/org/dllearner/tools/ore/KnowledgeSourcePanel.java trunk/src/dl-learner/org/dllearner/tools/ore/KnowledgeSourcePanelDescriptor.java trunk/src/dl-learner/org/dllearner/tools/ore/LearningPanel.java trunk/src/dl-learner/org/dllearner/tools/ore/LearningPanelDescriptor.java trunk/src/dl-learner/org/dllearner/tools/ore/ORE.java trunk/src/dl-learner/org/dllearner/tools/ore/OntologyModifier.java trunk/src/dl-learner/org/dllearner/tools/ore/StatsPanel.java trunk/src/dl-learner/org/dllearner/tools/ore/WizardController.java Modified: trunk/src/dl-learner/org/dllearner/tools/ore/ClassPanelOWL.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/ClassPanelOWL.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/ClassPanelOWL.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -33,6 +33,12 @@ import javax.swing.event.ListSelectionListener; import org.jdesktop.swingx.JXBusyLabel; +import org.jdesktop.swingx.JXList; +import org.jdesktop.swingx.decorator.ColorHighlighter; +import org.jdesktop.swingx.decorator.FilterPipeline; +import org.jdesktop.swingx.decorator.HighlightPredicate; +import org.jdesktop.swingx.decorator.HighlighterFactory; +import org.jdesktop.swingx.decorator.ShuttleSorter; import org.jdesktop.swingx.icon.EmptyIcon; import org.jdesktop.swingx.painter.BusyPainter; @@ -45,7 +51,7 @@ private static final long serialVersionUID = 3026319637264844550L; - private javax.swing.JList conceptList; + private JXList conceptList; private JPanel contentPanel; @@ -94,8 +100,17 @@ JPanel contentPanel1 = new JPanel(); JScrollPane scroll = new JScrollPane(); - - conceptList = new JList(model); + + + conceptList = new JXList(model); + conceptList.setFilterEnabled(true); + conceptList.setFilters(new FilterPipeline(new ShuttleSorter(0, true))); + conceptList.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER)); + conceptList.addHighlighter(new ColorHighlighter( HighlightPredicate.ROLLOVER_ROW)); + conceptList.setRolloverEnabled(true); +// conceptList.setSearchable(new ListsSearchPredicate.MATCH_ALL); +// conceptList.setHighlighters(HighlighterFactory.createAlternateStriping()); + scroll.setPreferredSize(new Dimension(400, 400)); scroll.setViewportView(conceptList); contentPanel1.add(scroll); Modified: trunk/src/dl-learner/org/dllearner/tools/ore/ClassPanelOWLDescriptor.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/ClassPanelOWLDescriptor.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/ClassPanelOWLDescriptor.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -22,7 +22,6 @@ import javax.swing.event.ListSelectionEvent; - import org.dllearner.core.owl.NamedClass; Modified: trunk/src/dl-learner/org/dllearner/tools/ore/ColumnListCellRenderer.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/ColumnListCellRenderer.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/ColumnListCellRenderer.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -32,7 +32,7 @@ import javax.swing.JPanel; import javax.swing.ListCellRenderer; -import org.dllearner.learningproblems.EvaluatedDescriptionPosNeg; +import org.dllearner.learningproblems.EvaluatedDescriptionClass; /** * List cell renderer for 2 columns. @@ -58,13 +58,13 @@ JLabel cor = new JLabel(); JLabel desc = new JLabel(); setLayout(new GridBagLayout()); - desc.setText(((EvaluatedDescriptionPosNeg) value).getDescription().toManchesterSyntaxString(ore.getBaseURI(), ore.getPrefixes())); + desc.setText(((EvaluatedDescriptionClass) value).getDescription().toManchesterSyntaxString(ore.getBaseURI(), ore.getPrefixes())); //round accuracy to 2 digits - double accuracy = ((EvaluatedDescriptionPosNeg) value).getAccuracy(); + double accuracy = ((EvaluatedDescriptionClass) value).getAccuracy(); BigDecimal roundedAccuracy = new BigDecimal(accuracy * 100); roundedAccuracy = roundedAccuracy.setScale(2, BigDecimal.ROUND_HALF_UP); - cor.setText(roundedAccuracy.toString()); + cor.setText(String.valueOf(roundedAccuracy)); add(cor, new GridBagConstraints(0, 0, 1, 1, 0.1, 0.0, GridBagConstraints.LINE_END, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));//, BorderLayout.WEST); add(desc, new GridBagConstraints(1, 0, 1, 1, 0.8, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));//, BorderLayout.EAST); Modified: trunk/src/dl-learner/org/dllearner/tools/ore/DescriptionPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/DescriptionPanel.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/DescriptionPanel.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -97,7 +97,7 @@ remove(c); } } - ore.updateReasoner(); +// ore.updateReasoner(); correct = true; if (mode.equals("neg")) { for (JLabel jL : ore.descriptionToJLabelNeg(ind, newClassDescription)) { Modified: trunk/src/dl-learner/org/dllearner/tools/ore/KnowledgeSourcePanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/KnowledgeSourcePanel.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/KnowledgeSourcePanel.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -165,6 +165,7 @@ browseButton.addActionListener(l); fileURL.addActionListener(l); sparqlURL.addActionListener(l); + connectButton.addActionListener(l); owl.addActionListener(l); sparql.addActionListener(l); fileURL.getDocument().addDocumentListener(d); Modified: trunk/src/dl-learner/org/dllearner/tools/ore/KnowledgeSourcePanelDescriptor.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/KnowledgeSourcePanelDescriptor.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/KnowledgeSourcePanelDescriptor.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -103,6 +103,10 @@ } } + + private void connect2Sparql(){ + + } public void changedUpdate(DocumentEvent e) { Modified: trunk/src/dl-learner/org/dllearner/tools/ore/LearningPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/LearningPanel.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/LearningPanel.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -87,7 +87,7 @@ JPanel statusPanel = new JPanel(); statusLabel = new JLabel(); loadingLabel = new JXBusyLabel(new Dimension(15, 15)); - BusyPainter<Object> painter = new BusyPainter<Object>( + BusyPainter painter = new BusyPainter( new RoundRectangle2D.Float(0, 0, 6.0f, 2.6f, 10.0f, 10.0f), new Ellipse2D.Float(2.0f, 2.0f, 11.0f, 11.0f)); painter.setTrailLength(2); Modified: trunk/src/dl-learner/org/dllearner/tools/ore/LearningPanelDescriptor.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/LearningPanelDescriptor.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/LearningPanelDescriptor.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -35,7 +35,7 @@ import org.dllearner.core.EvaluatedDescription; import org.dllearner.core.LearningAlgorithm; -import org.dllearner.learningproblems.EvaluatedDescriptionPosNeg; +import org.dllearner.learningproblems.EvaluatedDescriptionClass; @@ -99,7 +99,7 @@ // Description de = new NamedClass("http://example.com/father#male"); if (!e.getValueIsAdjusting()){ - getWizardModel().getOre().setNewClassDescription(((EvaluatedDescriptionPosNeg) (learnPanel.getResultList().getSelectedValue()))); + getWizardModel().getOre().setNewClassDescription(((EvaluatedDescriptionClass) (learnPanel.getResultList().getSelectedValue()))); } } @@ -113,6 +113,7 @@ learnPanel.getListModel().clear(); learnPanel.getStartButton().setEnabled(false); learnPanel.getStopButton().setEnabled(true); + worker = new LearnSwingWorker(); worker.execute(); } else{ @@ -248,9 +249,7 @@ @Override protected void process(List<List<? extends EvaluatedDescription>> resultLists) { - -// panel4.getModel().clear(); - + for (List<? extends EvaluatedDescription> list : resultLists) { updateList(list); } Modified: trunk/src/dl-learner/org/dllearner/tools/ore/ORE.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/ORE.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/ORE.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -33,11 +33,12 @@ import javax.swing.JLabel; -import org.dllearner.algorithms.refinement2.ROLComponent2; +import org.dllearner.algorithms.celoe.CELOE; import org.dllearner.core.ComponentInitException; import org.dllearner.core.ComponentManager; import org.dllearner.core.KnowledgeSource; import org.dllearner.core.LearningAlgorithm; +import org.dllearner.core.LearningProblem; import org.dllearner.core.LearningProblemUnsupportedException; import org.dllearner.core.ReasonerComponent; import org.dllearner.core.owl.Description; @@ -48,10 +49,17 @@ import org.dllearner.core.owl.Union; import org.dllearner.kb.OWLAPIOntology; import org.dllearner.kb.OWLFile; -import org.dllearner.learningproblems.EvaluatedDescriptionPosNeg; -import org.dllearner.learningproblems.PosNegLPStandard; +import org.dllearner.learningproblems.ClassLearningProblem; +import org.dllearner.learningproblems.EvaluatedDescriptionClass; import org.dllearner.reasoning.FastInstanceChecker; import org.dllearner.reasoning.OWLAPIReasoner; +import org.mindswap.pellet.exceptions.InconsistentOntologyException; +import org.mindswap.pellet.owlapi.PelletReasonerFactory; +import org.mindswap.pellet.owlapi.Reasoner; +import org.semanticweb.owl.apibinding.OWLManager; +import org.semanticweb.owl.model.OWLOntology; +import org.semanticweb.owl.model.OWLOntologyCreationException; +import org.semanticweb.owl.model.OWLOntologyManager; /** * This class contains init methods, and is used as broker between wizard and OWL-API. @@ -63,7 +71,7 @@ private LearningAlgorithm la; private ReasonerComponent rs; private KnowledgeSource ks; - private PosNegLPStandard lp; + private LearningProblem lp; private ComponentManager cm; private ReasonerComponent fastReasoner; @@ -73,7 +81,7 @@ private SortedSet<Individual> negExamples; private NamedClass classToLearn; - private EvaluatedDescriptionPosNeg newClassDescription; + private EvaluatedDescriptionClass newClassDescription; private OntologyModifier modifier; @@ -83,7 +91,9 @@ private double noise = 0.0; + private File owlFile; + public ORE() { cm = ComponentManager.getInstance(); @@ -96,6 +106,7 @@ * Applying knowledge source. */ public void setKnowledgeSource(File f) { + this.owlFile = f; ks = cm.knowledgeSource(OWLFile.class); @@ -115,7 +126,24 @@ } + public boolean consistentOntology() throws InconsistentOntologyException{ + boolean consistent = true; + try { + OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); + OWLOntology ont = manager.loadOntology(owlFile.toURI()); + Reasoner reasoner = new PelletReasonerFactory().createReasoner(manager); + reasoner.loadOntology(ont); + + consistent = reasoner.isConsistent(); + } catch (OWLOntologyCreationException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + return consistent; + } + /** * Initialize the reasoners. */ @@ -144,16 +172,9 @@ } - /** - * Returns the reasoningservice. - * @return reasoning service - */ - public ReasonerComponent getReasonerComponent(){ - return rs; - } + - public void setPosNegExamples(){ posExamples = owlReasoner.getIndividuals(classToLearn); negExamples = owlReasoner.getIndividuals(); @@ -170,7 +191,7 @@ } - public EvaluatedDescriptionPosNeg getNewClassDescription() { + public EvaluatedDescriptionClass getNewClassDescription() { return newClassDescription; } @@ -192,17 +213,32 @@ } public void setLearningProblem(){ - lp = new PosNegLPStandard(owlReasoner, posExamples, negExamples); - lp.init(); + lp = cm.learningProblem(ClassLearningProblem.class, fastReasoner); + cm.applyConfigEntry(lp, "classToDescribe", classToLearn.toString()); + try { + lp.init(); + } catch (ComponentInitException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } } public void setNoise(double noise){ + System.out.println("setze noise auf" + noise); + cm.applyConfigEntry(la, "noisePercentage", noise); + try { + la.init(); + } catch (ComponentInitException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } this.noise = noise; } public void setLearningAlgorithm(){ try { - la = cm.learningAlgorithm(ROLComponent2.class, lp, owlReasoner); + la = cm.learningAlgorithm(CELOE.class, lp, fastReasoner); + cm.applyConfigEntry(la, "useNegation", false); } catch (LearningProblemUnsupportedException e1) { // TODO Auto-generated catch block e1.printStackTrace(); @@ -212,8 +248,8 @@ t.add(classToLearn.getName()); - cm.applyConfigEntry(la, "ignoredConcepts", t); - cm.applyConfigEntry(la, "guaranteeXgoodDescriptions", 10); +// cm.applyConfigEntry(la, "ignoredConcepts", t); +// cm.applyConfigEntry(la, "guaranteeXgoodDescriptions", 10); try { la.init(); } catch (ComponentInitException e) { @@ -232,13 +268,13 @@ } public void init(){ - try { - owlReasoner.init(); - fastReasoner.init(); - } catch (ComponentInitException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } +// try { +// owlReasoner.init(); +// fastReasoner.init(); +// } catch (ComponentInitException e) { +// // TODO Auto-generated catch block +// e.printStackTrace(); +// } this.setPosNegExamples(); this.setLearningProblem(); this.setLearningAlgorithm(); @@ -251,9 +287,9 @@ */ public void start(){ Set<String> t = new TreeSet<String>(); - t.add(classToLearn.getName()); - cm.applyConfigEntry(la, "ignoredConcepts", t); - cm.applyConfigEntry(la, "noisePercentage", noise); +// t.add(classToLearn.getName()); +// cm.applyConfigEntry(la, "ignoredConcepts", t); +// cm.applyConfigEntry(la, "noisePercentage", noise); try { la.init(); } catch (ComponentInitException e) { @@ -265,7 +301,7 @@ } - public void setNewClassDescription(EvaluatedDescriptionPosNeg newClassDescription) { + public void setNewClassDescription(EvaluatedDescriptionClass newClassDescription) { this.newClassDescription = newClassDescription; } @@ -517,7 +553,7 @@ // TODO Auto-generated catch block e.printStackTrace(); } -// rs = cm.reasoningService(owlReasoner); + setLearningAlgorithm(); } @@ -538,7 +574,7 @@ } } } -// System.out.println("Disjunkt sind: " + complements); + System.out.println("Disjunkt sind: " + complements); return complements; } @@ -546,29 +582,55 @@ public static void main(String[] args){ - final ORE test = new ORE(); + try{ + ComponentManager cm = ComponentManager.getInstance(); - File owlFile1 = new File("examples/ore/people+pets.owl"); - File owlFile2 = new File("examples/ore/inconsistent.owl"); - File owlFile3 = new File("examples/ore/incohaerent.owl"); + // create knowledge source + KnowledgeSource source = cm.knowledgeSource(OWLFile.class); + String example = "examples/ore/inconsistent.owl"; + cm.applyConfigEntry(source, "url", new File(example).toURI().toURL()); + source.init(); - test.setKnowledgeSource(owlFile1); - test.initReasoners(); - System.out.println(test.owlReasoner.isSatisfiable()); + // create OWL API reasoning service with standard settings + ReasonerComponent reasoner = cm.reasoner(OWLAPIReasoner.class, source); + reasoner.init(); - test.setKnowledgeSource(owlFile2); - test.initReasoners(); - System.out.println(test.owlReasoner.isSatisfiable()); + // create a learning problem and set positive and negative examples + LearningProblem lp = cm.learningProblem(ClassLearningProblem.class, reasoner); +// cm.applyConfigEntry(lp, "type", "superClass"); + cm.applyConfigEntry(lp, "classToDescribe", "http://cohse.semanticweb.org/ontologies/people#mad+cow"); + lp.init(); - test.setKnowledgeSource(owlFile3); - test.initReasoners(); - System.out.println(test.owlReasoner.isSatisfiable()); + // create the learning algorithm + LearningAlgorithm la = null; + try { + la = cm.learningAlgorithm(CELOE.class, lp, reasoner); + la.init(); + } catch (LearningProblemUnsupportedException e) { + e.printStackTrace(); + } + + // start the algorithm and print the best concept found + la.start(); + + System.out.println(la.getCurrentlyBestEvaluatedDescriptions(10, 0.8, true)); + } catch (MalformedURLException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (ComponentInitException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } +} - } + + } + + // public static void main(String[] args){ // Modified: trunk/src/dl-learner/org/dllearner/tools/ore/OntologyModifier.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/OntologyModifier.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/OntologyModifier.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -486,7 +486,7 @@ //superclasses and class1 // Set<OWLDescription> superClasses1 = owlClass1.getSuperClasses(ontology); Set<OWLDescription> superClasses1 = new HashSet<OWLDescription>(); - for(Description d1 : rs.getSuperClasses(desc1)){ + for(Description d1 : reasoner.getSuperClasses(desc1)){ superClasses1.add(OWLAPIDescriptionConvertVisitor.getOWLDescription(d1)); } superClasses1.add(owlClass1); @@ -495,7 +495,7 @@ //superclasses and class2 // Set<OWLDescription> superClasses2 = owlClass2.getSuperClasses(ontology); Set<OWLDescription> superClasses2 = new HashSet<OWLDescription>(); - for(Description d2 : rs.getSuperClasses(desc2)){ + for(Description d2 : reasoner.getSuperClasses(desc2)){ superClasses2.add(OWLAPIDescriptionConvertVisitor.getOWLDescription(d2)); } superClasses2.add(owlClass2); Modified: trunk/src/dl-learner/org/dllearner/tools/ore/StatsPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/StatsPanel.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/StatsPanel.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -206,7 +206,7 @@ for(String i : value){ actionPane.add(new JLabel("<html><strike>" + i + "</strike></html>")); } - actionPane.setExpanded(false); + actionPane.setCollapsed(false); propertyPane.add(actionPane); } else if(newPropMap.keySet().contains(key)){ JXTaskPane actionPane = new JXTaskPane(); Modified: trunk/src/dl-learner/org/dllearner/tools/ore/WizardController.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/ore/WizardController.java 2009-05-04 11:38:19 UTC (rev 1730) +++ trunk/src/dl-learner/org/dllearner/tools/ore/WizardController.java 2009-05-04 12:25:17 UTC (rev 1731) @@ -25,13 +25,18 @@ import java.util.List; import java.util.Set; import java.util.concurrent.ExecutionException; +import java.util.logging.Level; import javax.swing.DefaultListModel; +import javax.swing.Icon; import javax.swing.JOptionPane; import javax.swing.SwingWorker; +import javax.swing.UIManager; import org.dllearner.core.owl.Description; import org.dllearner.core.owl.NamedClass; +import org.jdesktop.swingx.JXErrorPane; +import org.jdesktop.swingx.error.ErrorInfo; import org.semanticweb.owl.model.OWLOntologyChange; /** @@ -92,13 +97,24 @@ if(nextPanelDescriptor.equals("CLASS_CHOOSE_OWL_PANEL")){ // model.getOre().getOwlReasoner().isSatisfiable() - + if(!ore.consistentOntology()){ + Exception e = new Exception("ff"); + ErrorInfo info = new ErrorInfo("Inconsistent ontology", "2", "3", null, e, Level.ALL, null); + JXErrorPane error = new JXErrorPane(); + Icon icon = UIManager.getIcon("JOptionPane.errorIcon"); + error.setErrorInfo(info); + error.setIcon(icon);System.out.println(icon); + JXErrorPane.showDialog(wizard.getDialog(), error); + + + } ((ClassPanelOWLDescriptor) nextDescriptor).getOwlClassPanel().getModel().clear(); new ConceptRetriever(nextPanelDescriptor).execute(); } if(nextPanelDescriptor.equals("LEARNING_PANEL")){ ore.init(); +// ore.get LearningPanelDescriptor learnDescriptor = ((LearningPanelDescriptor) model.getPanelHashMap().get(nextPanelDescriptor)); learnDescriptor.setPanelDefaults(); @@ -266,6 +282,7 @@ class ConceptRetriever extends SwingWorker<Set<NamedClass>, NamedClass> { private Object nextPanelID; private ClassPanelOWL owlClassPanel; + private Set<NamedClass> unsatClasses; public ConceptRetriever(Object nextPanelDescriptor) { @@ -278,14 +295,14 @@ owlClassPanel.getStatusLabel().setText("Loading atomic classes"); owlClassPanel.getLoadingLabel().setBusy(true); - owlClassPanel.getList().setCellRenderer(new ColorListCellRenderer(wizard.getModel().getOre())); +// owlClassPanel.getList().setCellRenderer(new ColorListCellRenderer(wizard.getModel().getOre())); wizard.getModel().getOre().initReasoners(); - Set<NamedClass> ind = wizard.getModel().getOre().getOwlReasoner().getNamedClasses(); - + Set<NamedClass> classes = wizard.getModel().getOre().getOwlReasoner().getNamedClasses(); + unsatClasses = wizard.getModel().getOre().getOwlReasoner().getInconsistentClasses(); - return ind; + return classes; } @Override @@ -307,6 +324,7 @@ for (NamedClass cl : ind) { dm.addElement(cl); + //nextPanel.panel3.getModel().addElement(cl); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |