From: <sk...@us...> - 2008-10-27 14:06:10
|
Revision: 1447 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1447&view=rev Author: sknappe Date: 2008-10-27 14:06:04 +0000 (Mon, 27 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/helper_functions.php Modified: trunk/src/dbpedia-navigator/helper_functions.php =================================================================== --- trunk/src/dbpedia-navigator/helper_functions.php 2008-10-27 13:56:41 UTC (rev 1446) +++ trunk/src/dbpedia-navigator/helper_functions.php 2008-10-27 14:06:04 UTC (rev 1447) @@ -399,7 +399,7 @@ for($i=0; $i<count($ar); $i++) { if ($classSystem=="YAGO") $prefix = 'http://dbpedia.org/class/yago/'; else if ($classSystem=="DBpedia") $prefix='http://dbpedia.org/ontology/'; - if(substr($ar[$i]['value'],0,30)!=$prefix) continue; + if(strpos($ar[$i]['value'],$prefix)!==0) continue; $query="SELECT label FROM categories WHERE category='".$ar[$i]['value']."' LIMIT 1"; $res=$databaseConnection->query($query); $result=$databaseConnection->nextEntry($res); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |