From: <lor...@us...> - 2014-02-20 12:56:49
|
Revision: 4234 http://sourceforge.net/p/dl-learner/code/4234 Author: lorenz_b Date: 2014-02-20 12:56:46 +0000 (Thu, 20 Feb 2014) Log Message: ----------- Improved script. Modified Paths: -------------- trunk/components-core/src/test/java/org/dllearner/algorithms/isle/DBpediaExperiment.java Modified: trunk/components-core/src/test/java/org/dllearner/algorithms/isle/DBpediaExperiment.java =================================================================== --- trunk/components-core/src/test/java/org/dllearner/algorithms/isle/DBpediaExperiment.java 2014-02-20 12:50:37 UTC (rev 4233) +++ trunk/components-core/src/test/java/org/dllearner/algorithms/isle/DBpediaExperiment.java 2014-02-20 12:56:46 UTC (rev 4234) @@ -296,7 +296,7 @@ for (final NamedClass cls : classes) { try { File resultsFile = new File(resultsFolder, URLEncoder.encode(cls.getName(), "UTF-8") + ".csv"); - if(resultsFile.exists()){ + if(!overwrite && resultsFile.exists()){ continue; } } catch (UnsupportedEncodingException e1) { @@ -348,11 +348,11 @@ OWLOntology knowledgebaseSample = loadKnowledgebaseSample(cls, Sets.union(positiveExamples, negativeExamples)); - PelletExplanation expGen = new PelletExplanation(knowledgebaseSample); - OWLDataFactory df = new OWLDataFactoryImpl(); - OWLClassAssertionAxiom ax = df.getOWLClassAssertionAxiom(df.getOWLClass(IRI.create("http://dbpedia.org/ontology/Person")), df.getOWLNamedIndividual(IRI.create("http://dbpedia.org/resource/Ontario_Australian_Football_League"))); - Set<OWLAxiom> explanation = expGen.getEntailmentExplanation(ax); - System.out.println(explanation); +// PelletExplanation expGen = new PelletExplanation(knowledgebaseSample); +// OWLDataFactory df = new OWLDataFactoryImpl(); +// OWLClassAssertionAxiom ax = df.getOWLClassAssertionAxiom(df.getOWLClass(IRI.create("http://dbpedia.org/ontology/Person")), df.getOWLNamedIndividual(IRI.create("http://dbpedia.org/resource/Ontario_Australian_Football_League"))); +// Set<OWLAxiom> explanation = expGen.getEntailmentExplanation(ax); +// System.out.println(explanation); // try { // Thread.sleep(2000); // } catch (InterruptedException e) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |