From: <sk...@us...> - 2008-01-29 08:49:30
|
Revision: 449 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=449&view=rev Author: sknappe Date: 2008-01-29 00:49:28 -0800 (Tue, 29 Jan 2008) Log Message: ----------- now works with new SparqlQuery Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-01-29 05:51:30 UTC (rev 448) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-01-29 08:49:28 UTC (rev 449) @@ -42,7 +42,7 @@ function getConceptFromExamples($posExamples,$negExamples) { - $this->client->applyConfigEntryInt($this->id, $this->ksID, "recursionDepth",2); + $this->client->applyConfigEntryInt($this->id, $this->ksID, "recursionDepth",1); $this->client->applyConfigEntryStringArray($this->id, $this->ksID, "instances", array_merge($posExamples,$negExamples)); // $this->client->applyConfigEntryStringArray($this->id, $this->ksID, "predList", array()); // $this->client->applyConfigEntryStringArray($this->id, $this->ksID, "objList", array()); @@ -122,16 +122,16 @@ sleep($sleeptime); - $running=$this->client->isSparqlQueryRunning($this->id,$this->ksID,$queryID); + $running=$this->client->isSparqlQueryRunning($this->id,$queryID); if (!$running){ - $result=$this->client->sparqlQuery($this->id,$this->ksID,$queryID); + $result=$this->client->getAsStringArray($this->id,$queryID); return $result; } $seconds = $i * $sleeptime; $i++; } while($seconds<$this->ttl); - $this->client->stopSparqlQuery($id,$ksID,$queryID); + $this->client->stopSparqlQuery($id,$queryID); } function getSubjects($label) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |