From: <jen...@us...> - 2011-09-01 12:31:36
|
Revision: 3205 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3205&view=rev Author: jenslehmann Date: 2011-09-01 12:31:30 +0000 (Thu, 01 Sep 2011) Log Message: ----------- updated enrichment script with new inference option Modified Paths: -------------- trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java Modified: trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java =================================================================== --- trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java 2011-09-01 06:46:21 UTC (rev 3204) +++ trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java 2011-09-01 12:31:30 UTC (rev 3205) @@ -662,6 +662,8 @@ parser.acceptsAll(asList("t", "threshold"), "Confidence threshold for suggestions. Set it to a value between 0 and 1.").withOptionalArg() .ofType(Double.class).defaultsTo(0.7); + parser.acceptsAll(asList("i", "inference"), + "Specifies whether to use inference. If yes, the schema will be loaded into a reasoner and used for computing the scores.").withOptionalArg().ofType(Boolean.class).defaultsTo(true); // parse options and display a message for the user in case of problems OptionSet options = null; @@ -704,6 +706,7 @@ if(!options.hasArgument("endpoint")) { System.out.println("Please specify a SPARQL endpoint (using the -e option)."); + System.exit(0); } boolean verbose = (Boolean) options.valueOf("v"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |