From: <sk...@us...> - 2008-10-21 10:44:00
|
Revision: 1386 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1386&view=rev Author: sknappe Date: 2008-10-21 10:43:54 +0000 (Tue, 21 Oct 2008) Log Message: ----------- bugfixes and added ignoredConcepts and -Roles to settings Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php trunk/src/dbpedia-navigator/Settings.php.dist trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-10-21 10:25:14 UTC (rev 1385) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-10-21 10:43:54 UTC (rev 1386) @@ -21,7 +21,11 @@ // ID of the DBpedia knowledge source private $ksID; - + + private $ignoredConcepts; + + private $ignoredRoles; + function DLLearnerConnection($id=0,$ksID=0) { ini_set('default_socket_timeout',200); @@ -32,6 +36,8 @@ $this->lang=$settings->language; $this->DBPediaUrl=$settings->dbpediauri; $this->endpoint=$settings->endpoint; + $this->ignoredConcepts=$settings->ignoredConcepts; + $this->ignoredRoles=$settings->ignoredRoles; $this->client=new SoapClient("main.wsdl",array('features' => SOAP_SINGLE_ELEMENT_ARRAYS)); $this->id=$id; $this->ksID=$ksID; @@ -75,6 +81,8 @@ $this->client->applyConfigEntryInt($this->id, $algorithmID, "maxExecutionTimeInSeconds", 3); $this->client->applyConfigEntryBoolean($this->id, $algorithmID, "useNegation", false); $this->client->applyConfigEntryBoolean($this->id, $algorithmID, "useAllConstructor", false); + $this->client->applyConfigEntryStringArray($this->id, $algorithmID, "ignoredConcepts",$this->ignoredConcepts); + $this->client->applyConfigEntryStringArray($this->id, $algorithmID, "ignoredRoles",$this->ignoredRoles); $start = microtime(true); $this->client->initAll($this->id); Modified: trunk/src/dbpedia-navigator/Settings.php.dist =================================================================== --- trunk/src/dbpedia-navigator/Settings.php.dist 2008-10-21 10:25:14 UTC (rev 1385) +++ trunk/src/dbpedia-navigator/Settings.php.dist 2008-10-21 10:43:54 UTC (rev 1386) @@ -54,6 +54,10 @@ public $useCache=true; + public $ignoredConcepts=array(); + public $ignoredRoles=array(); + + //the type of database server public $database_type='mysql'; //the server, where the mysql databank is located Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-21 10:25:14 UTC (rev 1385) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-21 10:43:54 UTC (rev 1386) @@ -331,7 +331,7 @@ else{ $array=$_SESSION['positive']; $array[$uri]=$artTitle; - if (count($array)>3){ + if (count($array)>10){ foreach ($array as $key=>$value){ unset($array[$key]); break; @@ -362,7 +362,7 @@ else{ $array=$_SESSION['positive']; $array[$uri]=$artTitle; - if (count($array)>3){ + if (count($array)>10){ foreach ($array as $key=>$value){ unset($array[$key]); break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |