From: <jen...@us...> - 2008-11-28 14:12:11
|
Revision: 1526 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1526&view=rev Author: jenslehmann Date: 2008-11-28 14:12:06 +0000 (Fri, 28 Nov 2008) Log Message: ----------- fixed ignore concept bug Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/core/owl/ClassHierarchy.java trunk/src/dl-learner/org/dllearner/utilities/Helper.java Added Paths: ----------- trunk/examples/swore/swore.conf Added: trunk/examples/swore/swore.conf =================================================================== --- trunk/examples/swore/swore.conf (rev 0) +++ trunk/examples/swore/swore.conf 2008-11-28 14:12:06 UTC (rev 1526) @@ -0,0 +1,8 @@ +import("swore.rdf"); + +refexamples.ignoredConcepts = { "http://ns.softwiki.de/req/AbstractRequirement" }; +refexamples.ignoredRoles = { "http://ns.softwiki.de/req/broader" }; + ++"http://ns.softwiki.de/req/important" ++"http://ns.softwiki.de/req/very_important" +-"http://ns.softwiki.de/req/Topic" Modified: trunk/src/dl-learner/org/dllearner/core/owl/ClassHierarchy.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/owl/ClassHierarchy.java 2008-11-28 12:18:12 UTC (rev 1525) +++ trunk/src/dl-learner/org/dllearner/core/owl/ClassHierarchy.java 2008-11-28 14:12:06 UTC (rev 1526) @@ -229,7 +229,7 @@ // they are empty) TreeSet<Description> superClasses = new TreeSet<Description>(entry.getValue()); // storage for new super classes - TreeSet<Description> newSuperClasses = new TreeSet<Description>(); + TreeSet<Description> newSuperClasses = new TreeSet<Description>(conceptComparator); while(!superClasses.isEmpty()) { // pick and remove the first element Modified: trunk/src/dl-learner/org/dllearner/utilities/Helper.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/Helper.java 2008-11-28 12:18:12 UTC (rev 1525) +++ trunk/src/dl-learner/org/dllearner/utilities/Helper.java 2008-11-28 14:12:06 UTC (rev 1526) @@ -492,7 +492,7 @@ // concepts case 2: ignore list public static Set<NamedClass> computeConceptsUsingIgnoreList(ReasonerComponent rs, Set<NamedClass> ignoredConcepts) { - Set<NamedClass> concepts = rs.getNamedClasses(); + Set<NamedClass> concepts = new TreeSet<NamedClass>(rs.getNamedClasses()); // Helper.removeUninterestingConcepts(concepts); for (NamedClass ac : ignoredConcepts) { boolean success = concepts.remove(ac); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |