From: <sk...@us...> - 2008-01-15 15:24:22
|
Revision: 374 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=374&view=rev Author: sknappe Date: 2008-01-15 07:24:16 -0800 (Tue, 15 Jan 2008) Log Message: ----------- fixed bug, that learning wasn't possible Modified Paths: -------------- trunk/src/dbpedia-navigator/ajaxfunctions.php trunk/src/dbpedia-navigator/index.php Modified: trunk/src/dbpedia-navigator/ajaxfunctions.php =================================================================== --- trunk/src/dbpedia-navigator/ajaxfunctions.php 2008-01-15 13:31:14 UTC (rev 373) +++ trunk/src/dbpedia-navigator/ajaxfunctions.php 2008-01-15 15:24:16 UTC (rev 374) @@ -287,15 +287,22 @@ { if (isset($_SESSION['positive'])) { + $posArray=array(); + foreach ($_SESSION['positive'] as $pos) + $posArray[]=$pos; + $negArray=array(); + if (isset($_SESSION['negative'])) + foreach ($_SESSION['negative'] as $neg) + $negArray[]=$neg; + require_once("Settings.php"); require_once("DLLearnerConnection.php"); $settings=new Settings(); $sc=new DLLearnerConnection($settings->dbpediauri,$settings->wsdluri,$_SESSION['id'],$_SESSION['ksID']); - if(isset($_SESSION['negative'])) - $concept=$sc->getConceptFromExamples($settings->sparqlttl,$_SESSION['positive'],$_SESSION['negative']); - else - $concept=$sc->getConceptFromExamples($settings->sparqlttl,$_SESSION['positive'], array()); + + $concept=$sc->getConceptFromExamples($settings->sparqlttl,$posArray,$negArray); + $_SESSION['lastLearnedConcept']=$concept; if (strlen(substr (strrchr ($concept, "/"), 1))>0) $concept=urldecode(substr (strrchr ($concept, "/"), 1)); } Modified: trunk/src/dbpedia-navigator/index.php =================================================================== --- trunk/src/dbpedia-navigator/index.php 2008-01-15 13:31:14 UTC (rev 373) +++ trunk/src/dbpedia-navigator/index.php 2008-01-15 15:24:16 UTC (rev 374) @@ -238,7 +238,10 @@ <li>[if possible] Find an easy way to validate HTML/JS in AJAX applications.</li> <li>[maybe] Would be interesting to somehow view the Wikipedia article (without the left navigation part, tabs etc.) as an overlay, because the Wikipedia article will almost always be a human-friendlier - description of an object compared to the extracted one.</li> + description of an object compared to the extracted one.</li> + <li>Handle redirect for example if you look for 'Deutschland'</li> + <li>Ich habe mir gestern deswegen mal angeschaut welche fertigen SPARQL-APIs es gibt. Eine der verbreitesten und deshalb auch aktiven Projekt ist Jena. F\xFCr uns relevant ist das ARQ-Teilprojekt: http://jena.sourceforge.net/ARQ/. + </li> </ul> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |