From: <sk...@us...> - 2008-02-13 14:27:19
|
Revision: 568 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=568&view=rev Author: sknappe Date: 2008-02-13 06:27:13 -0800 (Wed, 13 Feb 2008) Log Message: ----------- detailed concept shown (not very much information yet) 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-02-13 14:23:04 UTC (rev 567) +++ trunk/src/dbpedia-navigator/ajaxfunctions.php 2008-02-13 14:27:13 UTC (rev 568) @@ -321,6 +321,7 @@ session_write_close(); setRunning($id,"true"); $concept=""; + $conceptinformation=""; if (isset($positives)) { $posArray=array(); @@ -337,8 +338,12 @@ $concepts=$sc->getConceptFromExamples($posArray,$negArray); $concept.="<table border=0>\n"; + $i=1; foreach ($concepts as $con){ - $concept.="<tr><td><a href=\"\" onclick=\"xajax_getSubjectsFromConcept('".$con."');return false;\" />".$con."</a></td></tr>"; + $concept.="<tr><td><a href=\"\" onclick=\"xajax_getSubjectsFromConcept('".$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."\">".$con."</div>"; + $i++; } $concept.="</table>"; } catch(Exception $e){ @@ -349,6 +354,7 @@ $objResponse = new xajaxResponse(); $objResponse->assign("conceptlink", "innerHTML", $concept); + $objResponse->assign("ConceptInformation", "innerHTML", $conceptinformation); return $objResponse; } Modified: trunk/src/dbpedia-navigator/index.php =================================================================== --- trunk/src/dbpedia-navigator/index.php 2008-02-13 14:23:04 UTC (rev 567) +++ trunk/src/dbpedia-navigator/index.php 2008-02-13 14:27:13 UTC (rev 568) @@ -42,6 +42,14 @@ xajax.$('SearchResultBox').style.display = 'block'; xajax.$('LastArticlesBox').style.display = 'block'; }; + + function showdiv(id){ + document.getElementById(id).style.display='block'; + } + + function hidediv(id) { + document.getElementById(id).style.display='none'; + } </script> </head> <body <?php if (isset($_GET['resource'])) print "onLoad=\"xajax_getarticle('".$_GET['resource']."',-1);return false;\"";unset($_GET['resource']);?>> @@ -154,16 +162,8 @@ 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>Currently there are three SPARQL query methods: for labels, subjects, and article. These should - probably be replaced by a single web service method which allows to execute a SPARQL query. This will - greatly simplify the DL-Learner code while making the PHP code only slightly more complex. Such a method - also makes much more sense as a web service method, because other applications will need different SPARQL - queries. Similar to the learn method, there should be a threaded and a non-threaded version of the SPARQL - query method. This allows not to have the overhead of creating a separate thread for simple SPARQL queries - (especially since we assume that the DBpedia SPARQL endpoint is local).</li> <li>Automatically learn concepts whenever an example has been added (and there is at least one positive example present).</li> - <li>Show n (for example 5) instead of 1 best concept.</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> @@ -206,6 +206,10 @@ </ul> </div> + <div class="box" id="ConceptBox" style="position:absolute;top:0px;right:20px;opacity:0.90;display:none;z-index:5;"> + <div class="boxtitle">Detailed Concept Information</div> + <div class="boxcontent" id="ConceptInformation"></div> + </div> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |