From: <sk...@us...> - 2008-05-14 15:17:01
|
Revision: 841 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=841&view=rev Author: sknappe Date: 2008-05-14 08:16:00 -0700 (Wed, 14 May 2008) Log Message: ----------- Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php trunk/src/dbpedia-navigator/ajaxfunctions.php trunk/src/dbpedia-navigator/index.php Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-05-14 14:26:34 UTC (rev 840) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-05-14 15:16:00 UTC (rev 841) @@ -44,9 +44,9 @@ { $this->client->applyConfigEntryInt($this->id, $this->ksID, "recursionDepth",1); $this->client->applyConfigEntryStringArray($this->id, $this->ksID, "instances", array_merge($posExamples,$negExamples)); - $this->client->applyConfigEntryInt($this->id, $this->ksID, "predefinedFilter", 1); - $this->client->applyConfigEntryInt($this->id, $this->ksID, "predefinedEndpoint", 1); - + $this->client->applyConfigEntryString($this->id, $this->ksID, "predefinedFilter", "YAGO"); + $this->client->applyConfigEntryString($this->id, $this->ksID, "predefinedEndpoint", "DBPEDIA"); + $this->client->setReasoner($this->id, "dig"); if(empty($negExamples)) $this->client->setLearningProblem($this->id, "posOnlyDefinition"); Modified: trunk/src/dbpedia-navigator/ajaxfunctions.php =================================================================== --- trunk/src/dbpedia-navigator/ajaxfunctions.php 2008-05-14 14:26:34 UTC (rev 840) +++ trunk/src/dbpedia-navigator/ajaxfunctions.php 2008-05-14 15:16:00 UTC (rev 841) @@ -220,7 +220,8 @@ $objResponse->assign("ArticleTitle","innerHTML",$artTitle); $objResponse->assign("lastarticles","innerHTML",$lastArticles); $objResponse->assign('Positives','innerHTML',$posInterests); - $objResponse->assign('Negatives','innerHTML',$negInterests); + $objResponse->assign('Negatives','innerHTML',$negInterests); + $objResponse->call('xajax_learnConcept'); return $objResponse; } @@ -394,7 +395,7 @@ foreach ($concepts as $con){ $concept.="<tr><td><a href=\"\" onclick=\"xajax_getSubjectsFromConcept('".urlencode($con)."');return false;\" onMouseOver=\"showdiv('div".$i."');showdiv('ConceptBox');\" onMouseOut=\"hidediv('div".$i."');hidediv('ConceptBox');\" />".$con."</a></td></tr>"; //put information about concepts in divs - $conceptinformation.="<div id=\"div".$i."\" style=\"display:none\">Concept Depth: ".$conceptDepth[$i-1]."<br/>Concept Arity: ".$conceptArity[$i-1]."<br/>Concept Length: ".$sc->getConceptLength($con)."</div>"; + //$conceptinformation.="<div id=\"div".$i."\" style=\"display:none\">Concept Depth: ".$conceptDepth[$i-1]."<br/>Concept Arity: ".$conceptArity[$i-1]."<br/>Concept Length: ".$sc->getConceptLength($con)."</div>"; $i++; } $concept.="</table>"; @@ -486,7 +487,7 @@ for ($j=0;($j<30)&&(($i*30+$j)<count($results));$j++) { $result=$results[$i*30+$j]; - $ret.=" <a href=\"\" onclick=\"xajax_getarticle('".urldecode(str_replace("_"," ",substr (strrchr ($result, "/"), 1)))."',-1);return false;\">".urldecode(str_replace("_"," ",substr (strrchr ($result, "/"), 1)))."</a><br/>"; + $ret.=" <a href=\"\" onclick=\"xajax_getarticle('".str_replace("_"," ",substr (strrchr ($result, "/"), 1))."',-1);return false;\">".urldecode(str_replace("_"," ",substr (strrchr ($result, "/"), 1)))."</a><br/>"; } $ret.="</div>"; $i++; Modified: trunk/src/dbpedia-navigator/index.php =================================================================== --- trunk/src/dbpedia-navigator/index.php 2008-05-14 14:26:34 UTC (rev 840) +++ trunk/src/dbpedia-navigator/index.php 2008-05-14 15:16:00 UTC (rev 841) @@ -149,8 +149,6 @@ <a href="http://www.w3.org/2001/sw/DataAccess/"><img src="<?php print $path;?>images/sw-sparql-green.png" alt="SPARQL logo"/></a> </div> - <input type="button" value="Learn" class="button" onclick="xajax_learnConcept();return false;" /> - </div><!-- END leftSidebar --> <div id="content"> @@ -212,25 +210,16 @@ <b>ToDo:</b> <ul style="float:left"> <li>Get learning component fast.</li> - <li>Learning as a Thread.</li> <li>Get local DBpedia SPARQL endpoint working (next DBpedia release expected at the endof January and then every two months, so it would be nice to have a script based partly automated or at least documented solution for creating a DBpedia mirror).</li> <li>Improve stability: Fix sometimes occurring PHP errors and warnings (check PHP error log).</li> - <li>Automatically learn concepts whenever an example has been added (and there is at least one - positive example present).</li> <li>For each result, display a "+" which shows more information about the concept in an overlay box, e.g. its Description Logic or OWL syntax, its classification accuracy on the examples, and which examples it classifies (in-)correctly.</li> - <li>Move the "Learned Concepts" box above the main box in the center.</li> - <li>Remove the "Subjects from Concept" box and instead change the learned concepts to links (clicking - on a link shows instances of the concept).</li> <li>Create a small number of test cases (e.g. 3), which can be used to verify that DBpedia Navigator is working in typical scenarios (in particular cases where concepts with length greater one are learned).</li> - <li>Display "server call" in progress (or "n server calls in progress") in the top right corner - of the screen whenever AJAX queries are executed.</li> <li>Allow to disable caching functionality (in Settings.php).</li> - <li>Fix the rebuild.php script such that PHP replaces the cached WSDL file by the new one.</li> <li>Make DBpedia Navigator RESTful, e.g. URLs $base/showArticle/$URL for displaying an article; $base/search/$phrase for searching; $base/listInstances/$complexClass for listing the instances of a learned. Maybe session variables (in particuar the selected positive and negative examples) can @@ -241,8 +230,6 @@ features.</li> <li>Improve search functionality [we will probably get feedback from Georgi in February].</li> <li>[maybe] Display a tag cloud similar to <a href="http://dbpedia.org/search/">DBpedia search</a>.</li> - <li>Get a nice DBpedia Navigator logo (preferrably in SVG format) [currently in contact with Matt, but not - sure he has time to help].</li> <li>[maybe] Instead of only allowing a search as entry point to the application, also display a navigatable class tree.</li> <li>[if possible] When expensive SPARQL queries or learning problems have been posed, there should be This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |