From: <lor...@us...> - 2011-09-15 08:15:59
|
Revision: 3268 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3268&view=rev Author: lorenz_b Date: 2011-09-15 08:15:48 +0000 (Thu, 15 Sep 2011) Log Message: ----------- Added new method for guessing entity type of a resource. 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-15 08:13:12 UTC (rev 3267) +++ trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java 2011-09-15 08:15:48 UTC (rev 3268) @@ -365,6 +365,7 @@ ks2.setUseCacheDatabase(true); ks2.setRecursionDepth(2); ks2.setCloseAfterRecursion(true); + ks2.setSaveExtractedFragment(true); startTime = System.currentTimeMillis(); System.out.print("getting knowledge base fragment ... "); ks2.init(); @@ -756,7 +757,7 @@ // map resource to correct type Entity resource = null; if(options.valueOf("resource") != null) { - resource = new SPARQLTasks(se).guessResourceType(((URI)options.valueOf("resource")).toString()); + resource = new SPARQLTasks(se).guessResourceType(((URI)options.valueOf("resource")).toString(), true); if(resource == null) { throw new IllegalArgumentException("Could not determine the type (class, object property or data property) of input resource " + options.valueOf("resource")); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |