From: <sk...@us...> - 2008-02-27 13:27:01
|
Revision: 653 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=653&view=rev Author: sknappe Date: 2008-02-27 05:26:57 -0800 (Wed, 27 Feb 2008) Log Message: ----------- some bugfixes and menu changed a bit Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php trunk/src/dbpedia-navigator/index.php trunk/src/dbpedia-navigator/processTreeMenu.php Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-02-27 12:32:58 UTC (rev 652) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-02-27 13:26:57 UTC (rev 653) @@ -156,11 +156,11 @@ $run=fgets($file); fclose($file); if ($run=="false"){ - $this->client->stopSparqlQuery($id,$queryID); + $this->client->stopSparqlQuery($this->id,$queryID); throw new Exception("Query stopped"); } } while($seconds<$this->ttl); - $this->client->stopSparqlThread($id,$queryID); + $this->client->stopSparqlThread($this->id,$queryID); } function getSubjects($label) Modified: trunk/src/dbpedia-navigator/index.php =================================================================== --- trunk/src/dbpedia-navigator/index.php 2008-02-27 12:32:58 UTC (rev 652) +++ trunk/src/dbpedia-navigator/index.php 2008-02-27 13:26:57 UTC (rev 653) @@ -127,6 +127,11 @@ tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0); tree.setImagePath("<?php print $path;?>images/csh_bluebooks/"); tree.enableCheckBoxes(1); + tree.setOnClickHandler(doOnClick); + function doOnClick(nodeId){ + var myUrl = tree.getUserData(nodeId,"myurl"); + xajax_getSubjectsFromConcept(myUrl); + } tree.setXMLAutoLoading("processTreeMenu.php"); tree.loadXML("processTreeMenu.php?id=0"); </script> Modified: trunk/src/dbpedia-navigator/processTreeMenu.php =================================================================== --- trunk/src/dbpedia-navigator/processTreeMenu.php 2008-02-27 12:32:58 UTC (rev 652) +++ trunk/src/dbpedia-navigator/processTreeMenu.php 2008-02-27 13:26:57 UTC (rev 653) @@ -15,7 +15,7 @@ $sc=new DLLearnerConnection($ids[0],$ids[1]); $categories=$sc->getYagoSubCategories($url_var); foreach ($categories as $category) - print("<item child=\"1\" id=\"".$category."\" text=\"".substr (strrchr ($category, "/"), 1)."\"><userdata name='ud_block'>ud_data</userdata></item>"); + print("<item child=\"1\" id=\"".$category."\" text=\"".substr (strrchr ($category, "/"), 1)."\"><userdata name=\"myurl\">".$category."</userdata></item>"); } print("</tree>"); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |