From: <jen...@us...> - 2008-11-29 22:34:00
|
Revision: 1531 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1531&view=rev Author: jenslehmann Date: 2008-11-29 22:33:54 +0000 (Sat, 29 Nov 2008) Log Message: ----------- small fix Modified Paths: -------------- trunk/examples/swore/swore.conf trunk/src/dl-learner/org/dllearner/core/owl/ClassHierarchy.java Modified: trunk/examples/swore/swore.conf =================================================================== --- trunk/examples/swore/swore.conf 2008-11-29 20:38:13 UTC (rev 1530) +++ trunk/examples/swore/swore.conf 2008-11-29 22:33:54 UTC (rev 1531) @@ -1,8 +1,9 @@ import("swore.rdf"); -refexamples.ignoredConcepts = { "http://ns.softwiki.de/req/AbstractRequirement" }; +// 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" +-"http://ns.softwiki.de/req/important" \ No newline at end of file Modified: trunk/src/dl-learner/org/dllearner/core/owl/ClassHierarchy.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/owl/ClassHierarchy.java 2008-11-29 20:38:13 UTC (rev 1530) +++ trunk/src/dl-learner/org/dllearner/core/owl/ClassHierarchy.java 2008-11-29 22:33:54 UTC (rev 1531) @@ -60,7 +60,8 @@ public SortedSet<Description> getSuperClasses(Description concept) { SortedSet<Description> result = subsumptionHierarchyUp.get(concept); if(result == null) { - logger.error("Query for super class of " + concept + " in subsumption hierarchy, but the class is not contained in the (upward) hierarchy"); + logger.error("Query for super class of " + concept + " in subsumption hierarchy, but the class is not contained in the (upward) hierarchy, e.g. because the class does not exist or is ignored. Returning empty result instead."); + return new TreeSet<Description>(); } // we copy all concepts before returning them such that they cannot be @@ -71,7 +72,8 @@ public SortedSet<Description> getSubClasses(Description concept) { SortedSet<Description> result = subsumptionHierarchyDown.get(concept); if(result == null) { - logger.error("Query for sub class of " + concept + " in subsumption hierarchy, but the class is not contained in the (downward) hierarchy"); + logger.error("Query for sub class of " + concept + " in subsumption hierarchy, but the class is not contained in the (downward) hierarchy, e.g. because the class does not exist or is ignored. Returning empty result instead."); + return new TreeSet<Description>(); } return new TreeSet<Description>(result); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |