From: <lor...@us...> - 2012-07-18 13:20:05
|
Revision: 3798 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3798&view=rev Author: lorenz_b Date: 2012-07-18 13:19:54 +0000 (Wed, 18 Jul 2012) Log Message: ----------- Catch exceptions in precomputing method to handle as much as possible pairs of entities. Modified Paths: -------------- trunk/components-ext/src/main/java/org/dllearner/algorithm/tbsl/util/SPARQLEndpointMetrics.java Modified: trunk/components-ext/src/main/java/org/dllearner/algorithm/tbsl/util/SPARQLEndpointMetrics.java =================================================================== --- trunk/components-ext/src/main/java/org/dllearner/algorithm/tbsl/util/SPARQLEndpointMetrics.java 2012-07-18 13:08:45 UTC (rev 3797) +++ trunk/components-ext/src/main/java/org/dllearner/algorithm/tbsl/util/SPARQLEndpointMetrics.java 2012-07-18 13:19:54 UTC (rev 3798) @@ -353,16 +353,26 @@ for(NamedClass cls : classes){ for(ObjectProperty prop : objectProperties){ log.info("Processing class " + cls + " and property " + prop); - getDirectedPMI(cls, prop); - getDirectedPMI(prop, cls); + try { + getDirectedPMI(cls, prop); + getDirectedPMI(prop, cls); + } catch (Exception e) { + e.printStackTrace(); + } } } for(NamedClass cls1 : classes){ for(NamedClass cls2 : classes){ - log.info("Processing class " + cls1 + " and class " + cls2); - getPMI(cls1, cls2); - getPMI(cls2, cls1); + if(!cls1.equals(cls2)){ + log.info("Processing class " + cls1 + " and class " + cls2); + try { + getPMI(cls1, cls2); + getPMI(cls2, cls1); + } catch (Exception e) { + e.printStackTrace(); + } + } } } log.info("Done in " + ((System.currentTimeMillis() - startTime)/1000d) + "s"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |