From: <jen...@us...> - 2011-10-20 13:41:57
|
Revision: 3311 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3311&view=rev Author: jenslehmann Date: 2011-10-20 13:41:50 +0000 (Thu, 20 Oct 2011) Log Message: ----------- bug fix Modified Paths: -------------- trunk/components-core/src/main/java/org/dllearner/algorithms/celoe/CELOE.java trunk/examples/datatypes/stringtyped.conf trunk/examples/nlp2rdf/sample/sample1.conf Added Paths: ----------- trunk/interfaces/src/test/java/org/dllearner/cli/NLP2RDFCLITest.java Modified: trunk/components-core/src/main/java/org/dllearner/algorithms/celoe/CELOE.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/algorithms/celoe/CELOE.java 2011-10-20 05:14:20 UTC (rev 3310) +++ trunk/components-core/src/main/java/org/dllearner/algorithms/celoe/CELOE.java 2011-10-20 13:41:50 UTC (rev 3311) @@ -30,6 +30,8 @@ import java.util.SortedSet; import java.util.TreeSet; +import javax.sound.midi.SysexMessage; + import org.apache.log4j.Logger; import org.dllearner.core.AbstractCELA; import org.dllearner.core.AbstractLearningProblem; @@ -271,6 +273,8 @@ ((RhoDRDown)operator).setSubHierarchy(classHierarchy); ((RhoDRDown)operator).setReasoner(reasoner); ((RhoDRDown)operator).init(); + } else { + ((RhoDRDown)operator).setSubHierarchy(classHierarchy); } // operator = new RhoDRDown(reasoner, classHierarchy, startClass, configurator); baseURI = reasoner.getBaseURI(); @@ -444,7 +448,8 @@ // for(Description refinement : refinements) { // System.out.println("refinement: " + refinement); // } -// if(loop > 10) { +// if(loop % 100 == 0) { +// System.out.println(getMinimumHorizontalExpansion() + " - " + getMaximumHorizontalExpansion()); // System.exit(0); // } Modified: trunk/examples/datatypes/stringtyped.conf =================================================================== --- trunk/examples/datatypes/stringtyped.conf 2011-10-20 05:14:20 UTC (rev 3310) +++ trunk/examples/datatypes/stringtyped.conf 2011-10-20 13:41:50 UTC (rev 3311) @@ -32,4 +32,5 @@ alg.type = "ocel" alg.searchTreeFile = "log/stringTypedTree.txt" -//alg.writeSearchTree = true; \ No newline at end of file +alg.writeSearchTree = true + Modified: trunk/examples/nlp2rdf/sample/sample1.conf =================================================================== --- trunk/examples/nlp2rdf/sample/sample1.conf 2011-10-20 05:14:20 UTC (rev 3310) +++ trunk/examples/nlp2rdf/sample/sample1.conf 2011-10-20 13:41:50 UTC (rev 3311) @@ -29,7 +29,14 @@ op.useAllConstructor = false op.useCardinalityRestrictions = false op.useHasValueConstructor = true +op.useDataHasValueConstructor = true op.reasoner = reasoner +op.useStringDatatypes = true +op.frequencyThreshold = 1 -alg.type = "ocel" -alg.maxExecutionTimeInSeconds = 500 +alg.type = "celoe" +// alg.maxExecutionTimeInSeconds = 500 +// alg.startClass = "http://nlp2rdf.lod2.eu/schema/sso/Sentence" // does not work => have to tell Spring how it should convert strings to class expressions +alg.writeSearchTree = true +alg.replaceSearchTree = true + Added: trunk/interfaces/src/test/java/org/dllearner/cli/NLP2RDFCLITest.java =================================================================== --- trunk/interfaces/src/test/java/org/dllearner/cli/NLP2RDFCLITest.java (rev 0) +++ trunk/interfaces/src/test/java/org/dllearner/cli/NLP2RDFCLITest.java 2011-10-20 13:41:50 UTC (rev 3311) @@ -0,0 +1,21 @@ +package org.dllearner.cli; + +import java.io.File; +import java.io.IOException; + +import org.dllearner.core.AbstractReasonerComponent; +import org.dllearner.core.ReasonerComponent; +import org.junit.Test; +import org.springframework.context.ApplicationContext; + +public class NLP2RDFCLITest { + + @Test + public void sampleTest() throws IOException { + File f = new File("../examples/nlp2rdf/sample/sample1.conf"); + CLI cli = new CLI(f); + cli.run(); + ApplicationContext context = cli.getContext(); + AbstractReasonerComponent rc = context.getBean(AbstractReasonerComponent.class); + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |