From: <sk...@us...> - 2008-10-28 10:18:27
|
Revision: 1471 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1471&view=rev Author: sknappe Date: 2008-10-28 10:15:47 +0000 (Tue, 28 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-10-28 10:12:48 UTC (rev 1470) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-10-28 10:15:47 UTC (rev 1471) @@ -62,11 +62,11 @@ $this->client->applyConfigEntryString($this->id, $this->ksID, "predefinedManipulator", "DBPEDIA-NAVIGATOR"); $this->client->applyConfigEntryBoolean($this->id, $this->ksID, "useCache", true); if(empty($negExamples)){ - /*if ($settings->classSystem=="YAGO") $filterClasses=array("http://xmlns.com/foaf/","http://dbpedia.org/ontology/"); + if ($settings->classSystem=="YAGO") $filterClasses=array("http://xmlns.com/foaf/","http://dbpedia.org/ontology/"); else if ($settings->classSystem=="DBpedia") $filterClasses=array("http://xmlns.com/foaf/","http://dbpedia.org/class/yago/","http://dbpedia.org/ontology/Resource"); $negExamples=$this->client->getNegativeExamples($this->id,$this->ksID,$posExamples,count($posExamples),"http://dbpedia.org/resource/",$filterClasses); - $negExamples=$negExamples->item;*/ - $negExamples=getNegativeExamplesFromParallelClass($posExamples); + $negExamples=$negExamples->item; + //$negExamples=getNegativeExamplesFromParallelClass($posExamples); } $this->client->applyConfigEntryStringArray($this->id, $this->ksID, "instances", array_merge($posExamples,$negExamples)); $this->client->setReasoner($this->id, "fastInstanceChecker"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |