From: <sk...@us...> - 2008-09-26 12:22:21
|
Revision: 1266 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1266&view=rev Author: sknappe Date: 2008-09-26 12:22:02 +0000 (Fri, 26 Sep 2008) Log Message: ----------- you can choose which predefined endpoint to use Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php trunk/src/dbpedia-navigator/Settings.php Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-09-26 11:24:05 UTC (rev 1265) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-09-26 12:22:02 UTC (rev 1266) @@ -14,6 +14,7 @@ private $lang; // private $client; + private $endpoint; // ID given to this client by the web service private $id; @@ -30,6 +31,7 @@ $this->learnttl=$settings->learnttl; $this->lang=$settings->language; $this->DBPediaUrl=$settings->dbpediauri; + $this->endpoint=$settings->endpoint; $this->client=new SoapClient("main.wsdl",array('features' => SOAP_SINGLE_ELEMENT_ARRAYS)); $this->id=$id; $this->ksID=$ksID; @@ -49,7 +51,7 @@ $this->client->applyConfigEntryInt($this->id, $this->ksID, "recursionDepth",1); $this->client->applyConfigEntryString($this->id, $this->ksID, "predefinedFilter", "DBPEDIA-NAVIGATOR"); - $this->client->applyConfigEntryString($this->id, $this->ksID, "predefinedEndpoint", "DBPEDIA"); + $this->client->applyConfigEntryString($this->id, $this->ksID, "predefinedEndpoint", $this->endpoint); $this->client->applyConfigEntryString($this->id, $this->ksID, "predefinedManipulator", "DBPEDIA-NAVIGATOR"); $this->client->applyConfigEntryBoolean($this->id, $this->ksID, "useCache", $settings->useCache); if(empty($negExamples)){ Modified: trunk/src/dbpedia-navigator/Settings.php =================================================================== --- trunk/src/dbpedia-navigator/Settings.php 2008-09-26 11:24:05 UTC (rev 1265) +++ trunk/src/dbpedia-navigator/Settings.php 2008-09-26 12:22:02 UTC (rev 1266) @@ -34,7 +34,13 @@ // public DBpedia SPARQL endpoint public $dbpediauri='http://dbpedia.openlinksw.com:8890/sparql'; // public DBpedia mirror - // public $dbpediauri='http://dbpedia2.openlinksw.com:8890/isparql'; + // public $dbpediauri='http://dbpedia2.openlinksw.com:8890/isparql'; + + //which predefined Endpoint to use + public $endpoint="DBPEDIA"; + //public $endpoint="LOCALDBPEDIA"; + + // in mikrosekunden public $sparqlttl=60000000; public $learnttl=5; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |