From: <ku...@us...> - 2008-08-30 16:09:10
|
Revision: 1154 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1154&view=rev Author: kurzum Date: 2008-08-30 16:09:06 +0000 (Sat, 30 Aug 2008) Log Message: ----------- Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/scripts/DumbLPFinder.java trunk/src/dl-learner/org/dllearner/utilities/learn/LearnSPARQLConfiguration.java trunk/src/dl-learner/org/dllearner/utilities/learn/LearnSparql.java Modified: trunk/src/dl-learner/org/dllearner/scripts/DumbLPFinder.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/DumbLPFinder.java 2008-08-30 14:31:26 UTC (rev 1153) +++ trunk/src/dl-learner/org/dllearner/scripts/DumbLPFinder.java 2008-08-30 16:09:06 UTC (rev 1154) @@ -55,8 +55,8 @@ //private static Class usedReasoner = FastInstanceChecker.class; private static Class usedReasoner = OWLAPIReasoner.class; - private static boolean allOrExists = false; - private static boolean tenORthirty = false; + private static boolean allOrExists = true; + private static boolean tenORthirty = true; private static boolean sparql = true; @@ -89,7 +89,7 @@ int count = 1; while(count<10000){ - if((count%5)==0){ + /*if((count%5)==0){ //System.out.println(count+" "+allOrExists+"::"+tenORthirty); if(allOrExists && !tenORthirty){ @@ -107,7 +107,7 @@ } //System.out.println(count+" "+allOrExists+"::"+tenORthirty); - } + }*/ int exampleSize = (tenORthirty)?10:30; int half = (tenORthirty)?5:15; @@ -143,16 +143,21 @@ String div = (System.currentTimeMillis()%10000)+""; - filename+=(d.getDescriptionLength()<10)?"0"+d.getDescriptionLength():d.getDescriptionLength()+""; if(d.getAccuracy()>=0.99){ - filename +="_99+"; + filename +="99+"; + }else if(d.getAccuracy()>=0.90){ + filename +="90+"; }else if(d.getAccuracy()>=0.80){ - filename +="_80+"; - }else if(d.getAccuracy()>=0.60){ - filename +="_60+"; + filename +="80+"; + }else if(d.getAccuracy()>=0.70){ + filename +="70+"; + }else if(d.getAccuracy()>0.50){ + filename +="50+"; }else { - filename +="_60-"; + filename +="50-"; } + filename+="_"; + filename+=(d.getDescriptionLength()<10)?"0"+d.getDescriptionLength():d.getDescriptionLength()+""; filename += "_"+div+".conf"; String content = fileString(true, d, positiveEx, negativeEx); Modified: trunk/src/dl-learner/org/dllearner/utilities/learn/LearnSPARQLConfiguration.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/learn/LearnSPARQLConfiguration.java 2008-08-30 14:31:26 UTC (rev 1153) +++ trunk/src/dl-learner/org/dllearner/utilities/learn/LearnSPARQLConfiguration.java 2008-08-30 16:09:06 UTC (rev 1154) @@ -17,6 +17,7 @@ public String predefinedEndpoint = null; public int recursiondepth = 1; public boolean closeAfterRecursion = true; + public boolean getAllSuperClasses = true; public boolean useLits = false; public boolean randomizeCache = false; public String predefinedFilter = null; @@ -41,7 +42,9 @@ cm.applyConfigEntry(ks, "useLits", useLits); cm.applyConfigEntry(ks, "recursionDepth", recursiondepth); cm.applyConfigEntry(ks, "closeAfterRecursion", closeAfterRecursion); + cm.applyConfigEntry(ks, "getAllSuperClasses", getAllSuperClasses); + if (randomizeCache) cm.applyConfigEntry(ks, "cacheDir", "cache/" + System.currentTimeMillis() + ""); Modified: trunk/src/dl-learner/org/dllearner/utilities/learn/LearnSparql.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/learn/LearnSparql.java 2008-08-30 14:31:26 UTC (rev 1153) +++ trunk/src/dl-learner/org/dllearner/utilities/learn/LearnSparql.java 2008-08-30 16:09:06 UTC (rev 1154) @@ -32,7 +32,6 @@ import org.dllearner.core.ReasoningService; import org.dllearner.kb.sparql.SparqlKnowledgeSource; import org.dllearner.learningproblems.PosNegDefinitionLP; -import org.dllearner.reasoning.FastInstanceChecker; /** * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |