From: <sk...@us...> - 2008-10-22 06:43:23
|
Revision: 1389 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1389&view=rev Author: sknappe Date: 2008-10-22 06:43:16 +0000 (Wed, 22 Oct 2008) Log Message: ----------- little change to labels in yago classes and some more predicate filters Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php trunk/src/dbpedia-navigator/helper_functions.php Property Changed: ---------------- trunk/src/dbpedia-navigator/ Property changes on: trunk/src/dbpedia-navigator ___________________________________________________________________ Modified: svn:ignore - temp .htaccess main.wsdl def0.xsd def1.xsd + temp .htaccess main.wsdl def0.xsd def1.xsd test.html test.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 06:41:32 UTC (rev 1388) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 06:43:16 UTC (rev 1389) @@ -306,7 +306,26 @@ if (isset($triples['http://dbpedia.org/property/refLabelProperty'])) unset($triples['http://dbpedia.org/property/refLabelProperty']); if (isset($triples['http://dbpedia.org/property/noteLabelProperty'])) unset($triples['http://dbpedia.org/property/noteLabelProperty']); if (isset($triples['http://dbpedia.org/property/wikisourcelangProperty'])) unset($triples['http://dbpedia.org/property/wikisourcelangProperty']); + if (isset($triples['http://dbpedia.org/property/lk'])) unset($triples['http://dbpedia.org/property/lk']); + if (isset($triples['http://dbpedia.org/property/abbr'])) unset($triples['http://dbpedia.org/property/abbr']); + if (isset($triples['http://dbpedia.org/property/x'])) unset($triples['http://dbpedia.org/property/x']); + if (isset($triples['http://dbpedia.org/property/y'])) unset($triples['http://dbpedia.org/property/y']); + if (isset($triples['http://dbpedia.org/property/imageFlagSize'])) unset($triples['http://dbpedia.org/property/imageFlagSize']); + if (isset($triples['http://dbpedia.org/property/imageCoatOfArmsSize'])) unset($triples['http://dbpedia.org/property/imageCoatOfArmsSize']); + if (isset($triples['http://dbpedia.org/property/wikiaProperty'])) unset($triples['http://dbpedia.org/property/wikiaProperty']); + if (isset($triples['http://dbpedia.org/property/coorDmProperty'])) unset($triples['http://dbpedia.org/property/coorDmProperty']); + if (isset($triples['http://dbpedia.org/property/nuts'])) unset($triples['http://dbpedia.org/property/nuts']); + if (isset($triples['http://dbpedia.org/property/years'])) unset($triples['http://dbpedia.org/property/years']); + if (isset($triples['http://dbpedia.org/property/dateofbirth'])) unset($triples['http://dbpedia.org/property/dateofbirth']); + if (isset($triples['http://dbpedia.org/property/caps_percent_28goals_percent_29'])) unset($triples['http://dbpedia.org/property/caps_percent_28goals_percent_29']); + if (isset($triples['http://dbpedia.org/property/nationalcaps_percent_28goals_percent_29'])) unset($triples['http://dbpedia.org/property/nationalcaps_percent_28goals_percent_29']); + if (isset($triples['http://dbpedia.org/property/ntupdate'])) unset($triples['http://dbpedia.org/property/ntupdate']); + if (isset($triples['http://dbpedia.org/property/footballPlayerStatistics2Property'])) unset($triples['http://dbpedia.org/property/footballPlayerStatistics2Property']); + if (isset($triples['http://dbpedia.org/property/footballPlayerStatistics3Property'])) unset($triples['http://dbpedia.org/property/footballPlayerStatistics3Property']); + if (isset($triples['http://dbpedia.org/property/is_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23Before_of'])) unset($triples['is_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23Before_of']); + if (isset($triples['http://dbpedia.org/property/is_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23title_of'])) unset($triples['is_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23title_of']); + if (count($triples)>0){ $content.='<br/><hr><h4>Remaining Triples</h4><br/>'; Modified: trunk/src/dbpedia-navigator/helper_functions.php =================================================================== --- trunk/src/dbpedia-navigator/helper_functions.php 2008-10-22 06:41:32 UTC (rev 1388) +++ trunk/src/dbpedia-navigator/helper_functions.php 2008-10-22 06:43:16 UTC (rev 1389) @@ -45,7 +45,7 @@ $lab=$label[$tag]; } //$tag_with_entities=htmlentities("\"".$tag."\""); - $ret.='<a style="'.$style.'" href="#" onclick="document.getElementById(\'hidden_class\').value=\''.$tag.'\';show_results(\''.$tag.'\',document.getElementById(\'hidden_number\').value);">'.$lab.'</a> '; + $ret.='<a style="'.$style.'" href="#" onclick="document.getElementById(\'hidden_class\').value=\''.$tag.'\';show_results(\''.$tag.'\',document.getElementById(\'hidden_number\').value);">'.utf8_to_html($lab).'</a> '; } $ret.="</p><br/>"; return $ret; @@ -371,7 +371,7 @@ $res=$databaseConnection->query($query); $result=$databaseConnection->nextEntry($res); $label=urldecode(str_replace("_"," ",substr (strrchr ($ar[$i]['value'], "/"), 1))); - if (strlen($result['label'])>strlen($label)-3||preg_match('/[0-9]/',$label)===1){ + if (strlen($result['label'])>strlen($label)-3||preg_match('/[0-9]$/',$label)===1){ $label=$result['label']; } $label=utf8_to_html($label); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |