From: <sk...@us...> - 2008-09-29 07:20:38
|
Revision: 1287 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1287&view=rev Author: sknappe Date: 2008-09-29 07:20:27 +0000 (Mon, 29 Sep 2008) Log Message: ----------- now article view looks if picture '.../depiction' really exists, if not tries to take '.../image' Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-28 11:51:41 UTC (rev 1286) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 07:20:27 UTC (rev 1287) @@ -62,9 +62,15 @@ // display a picture if there is one if (isset($triples['http://dbpedia.org/property/imageCaption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/imageCaption'][0]['value']; + else if (isset($triples['http://dbpedia.org/property/caption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/caption'][0]['value']; else $alt='Picture of '.$artTitle; - if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])) + + if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&fopen($triples['http://xmlns.com/foaf/0.1/depiction'], 'r')){ $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; + } + else if(isset($triples['http://xmlns.com/foaf/0.1/img'])&&fopen($triples['http://xmlns.com/foaf/0.1/img'], 'r')){ + $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/img'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; + } //display where it was redirected from, if it was redirected $redirect=""; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-09-29 07:30:11
|
Revision: 1288 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1288&view=rev Author: sknappe Date: 2008-09-29 07:30:00 +0000 (Mon, 29 Sep 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 07:20:27 UTC (rev 1287) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 07:30:00 UTC (rev 1288) @@ -65,10 +65,10 @@ else if (isset($triples['http://dbpedia.org/property/caption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/caption'][0]['value']; else $alt='Picture of '.$artTitle; - if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&fopen($triples['http://xmlns.com/foaf/0.1/depiction'], 'r')){ + if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&fopen($triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'], 'r')){ $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; } - else if(isset($triples['http://xmlns.com/foaf/0.1/img'])&&fopen($triples['http://xmlns.com/foaf/0.1/img'], 'r')){ + else if(isset($triples['http://xmlns.com/foaf/0.1/img'])&&fopen($triples['http://xmlns.com/foaf/0.1/img'][0]['value'], 'r')){ $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/img'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-09-29 10:55:52
|
Revision: 1295 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1295&view=rev Author: sknappe Date: 2008-09-29 10:55:47 +0000 (Mon, 29 Sep 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 08:47:04 UTC (rev 1294) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 10:55:47 UTC (rev 1295) @@ -95,7 +95,7 @@ if (isset($triples['http://www.w3.org/2002/07/owl#sameAs'])||isset($subjecttriples['http://www.w3.org/2002/07/owl#sameAs'])){ $content.='<br/><hr><h4>Same as</h4><br/>'; $content.='<ul>'; - foreach ($triples['http://www.w3.org/2002/07/owl#sameAs'] as $same){ + if (isset($triples['http://www.w3.org/2002/07/owl#sameAs'])) foreach ($triples['http://www.w3.org/2002/07/owl#sameAs'] as $same){ if ($same['type']=="uri") $content .= '<li><a href="'.$same['value'].'" target="_blank">'.urldecode($same['value']).'</a></li>'; else $content.= '<li>'.urldecode($same['value']).'</li>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-09-29 14:34:23
|
Revision: 1299 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1299&view=rev Author: sknappe Date: 2008-09-29 14:34:15 +0000 (Mon, 29 Sep 2008) Log Message: ----------- adding a title to the pictures Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 14:32:13 UTC (rev 1298) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 14:34:15 UTC (rev 1299) @@ -66,10 +66,10 @@ else $alt='Picture of '.$artTitle; if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&@fopen($triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'], 'r')){ - $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; + $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" title="'.$alt.'"\>'; } else if(isset($triples['http://xmlns.com/foaf/0.1/img'])&&fopen($triples['http://xmlns.com/foaf/0.1/img'][0]['value'], 'r')){ - $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/img'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; + $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/img'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" title="'.$alt.'"\>'; } //display where it was redirected from, if it was redirected This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-09-30 10:30:22
|
Revision: 1316 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1316&view=rev Author: sknappe Date: 2008-09-30 10:30:16 +0000 (Tue, 30 Sep 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-30 09:58:53 UTC (rev 1315) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-30 10:30:16 UTC (rev 1316) @@ -307,7 +307,7 @@ session_start(); //store article in session, to navigate between last 5 articles quickly - $contentArray=array('content' => $content,'subject' => $artTitle,'uri' => $uri); + $contentArray=array('content' => $content,'subject' => $artTitle,'uri' => $uri,'lat'=>$lat,'long'=>$long); if (!isset($_SESSION['nextArticle'])){ $_SESSION['nextArticle']=0; $_SESSION['articles']=array(); @@ -342,6 +342,8 @@ //Article is in session $content=$_SESSION['articles'][$fromCache]['content']; $artTitle=$_SESSION['articles'][$fromCache]['subject']; + $lat=$_SESSION['articles'][$fromCache]['lat']; + $long=$_SESSION['articles'][$fromCache]['long']; } //Build lastArticles This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-09-29 07:37:22
|
Revision: 1289 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1289&view=rev Author: sknappe Date: 2008-09-29 07:37:09 +0000 (Mon, 29 Sep 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 07:30:00 UTC (rev 1288) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 07:37:09 UTC (rev 1289) @@ -61,11 +61,11 @@ $artTitle=urldecode(str_replace("_"," ",substr (strrchr ($url, "/"), 1))); // display a picture if there is one - if (isset($triples['http://dbpedia.org/property/imageCaption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/imageCaption'][0]['value']; + if (isset($triples['http://dbpedia.org/property/imageCaption'])&&@$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/imageCaption'][0]['value']; else if (isset($triples['http://dbpedia.org/property/caption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/caption'][0]['value']; else $alt='Picture of '.$artTitle; - if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&fopen($triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'], 'r')){ + if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&@fopen($triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'], 'r')){ $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; } else if(isset($triples['http://xmlns.com/foaf/0.1/img'])&&fopen($triples['http://xmlns.com/foaf/0.1/img'][0]['value'], 'r')){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-22 05:58:00
|
Revision: 1387 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1387&view=rev Author: sknappe Date: 2008-10-22 05:57:53 +0000 (Wed, 22 Oct 2008) Log Message: ----------- the article is now handling the case with no label and description well Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-21 10:43:54 UTC (rev 1386) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 05:57:53 UTC (rev 1387) @@ -61,10 +61,10 @@ // dbpedia.org/search //BUILD ARTICLE TITLE - if (strlen($triples['http://www.w3.org/2000/01/rdf-schema#label'][0]['value'])>0) + if (isset($triples['http://www.w3.org/2000/01/rdf-schema#label'])&&strlen($triples['http://www.w3.org/2000/01/rdf-schema#label'][0]['value'])>0) $artTitle=$triples['http://www.w3.org/2000/01/rdf-schema#label'][0]['value']; else - $artTitle=urldecode(str_replace("_"," ",substr (strrchr ($url, "/"), 1))); + $artTitle=urldecode(str_replace("_"," ",substr (strrchr ($uri, "/"), 1))); // display a picture if there is one if (isset($triples['http://dbpedia.org/property/imageCaption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/imageCaption'][0]['value']; @@ -87,7 +87,12 @@ } // add short description in english - $content.="<h4>Short Description</h4><p>".urldecode($triples['http://dbpedia.org/property/abstract'][0]['value'])."</p>"; + $content.="<h4>Short Description</h4><p>"; + if (isset($triples['http://dbpedia.org/property/abstract'])) + $content.=urldecode($triples['http://dbpedia.org/property/abstract'][0]['value']); + else + $content.="No Short Description available."; + $content.="</p>"; // give the link to the corresponding Wikipedia article if(isset($triples['http://xmlns.com/foaf/0.1/page'])) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-22 06:51:27
|
Revision: 1391 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1391&view=rev Author: sknappe Date: 2008-10-22 06:51:21 +0000 (Wed, 22 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 06:47:41 UTC (rev 1390) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 06:51:21 UTC (rev 1391) @@ -322,8 +322,8 @@ 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 (isset($triples['http://dbpedia.org/property/_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23Before'])) unset($triples['http://dbpedia.org/property/_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23Before']); + if (isset($triples['http://dbpedia.org/property/_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23title'])) unset($triples['http://dbpedia.org/property/_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23title']); if (count($triples)>0){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-22 07:20:31
|
Revision: 1392 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1392&view=rev Author: sknappe Date: 2008-10-22 07:20:20 +0000 (Wed, 22 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 06:51:21 UTC (rev 1391) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 07:20:20 UTC (rev 1392) @@ -324,6 +324,20 @@ if (isset($triples['http://dbpedia.org/property/footballPlayerStatistics3Property'])) unset($triples['http://dbpedia.org/property/footballPlayerStatistics3Property']); if (isset($triples['http://dbpedia.org/property/_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23Before'])) unset($triples['http://dbpedia.org/property/_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23Before']); if (isset($triples['http://dbpedia.org/property/_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23title'])) unset($triples['http://dbpedia.org/property/_percent_7D_percent_7D_percent_7B_percent_7BsuccessionBox_percent_23_percent_23_percent_23_percent_23title']); + if (isset($triples['http://dbpedia.org/property/accessdate'])) unset($triples['http://dbpedia.org/property/accessdate']); + if (isset($triples['http://dbpedia.org/property/state'])) unset($triples['http://dbpedia.org/property/state']); + if (isset($triples['http://dbpedia.org/property/coordinates'])) unset($triples['http://dbpedia.org/property/coordinates']); + if (isset($triples['http://dbpedia.org/property/lga'])) unset($triples['http://dbpedia.org/property/lga']); + if (isset($triples['http://dbpedia.org/property/fedgov'])) unset($triples['http://dbpedia.org/property/fedgov']); + if (isset($triples['http://dbpedia.org/property/dist'])) unset($triples['http://dbpedia.org/property/dist']); + if (isset($triples['http://dbpedia.org/property/dir'])) unset($triples['http://dbpedia.org/property/dir']); + if (isset($triples['http://dbpedia.org/property/float'])) unset($triples['http://dbpedia.org/property/float']); + if (isset($triples['http://dbpedia.org/property/left'])) unset($triples['http://dbpedia.org/property/left']); + if (isset($triples['http://dbpedia.org/property/quick'])) unset($triples['http://dbpedia.org/property/quick']); + if (isset($triples['http://dbpedia.org/property/clear'])) unset($triples['http://dbpedia.org/property/clear']); + if (isset($triples['http://dbpedia.org/property/utc'])) unset($triples['http://dbpedia.org/property/utc']); + if (isset($triples['http://dbpedia.org/property/utcDst'])) unset($triples['http://dbpedia.org/property/utcDst']); + if (isset($triples['http://dbpedia.org/property/spokenWikipedia2Property'])) unset($triples['http://dbpedia.org/property/spokenWikipedia2Property']); if (count($triples)>0){ @@ -400,7 +414,7 @@ if (isset($_SESSION['articles'])){ foreach ($_SESSION['articles'] as $key => $value) { - $lastArticles.="<a href=\"\" onclick=\"get_article('label=&cache=".$key."');return false;\">".$value['subject']."</a><br/>"; + $lastArticles.="<a href=\"\" onclick=\"get_article('label=\'".$value['subject']."\'&cache=".$key."');return false;\">".$value['subject']."</a><br/>"; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-22 07:23:23
|
Revision: 1393 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1393&view=rev Author: sknappe Date: 2008-10-22 07:23:14 +0000 (Wed, 22 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 07:20:20 UTC (rev 1392) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-22 07:23:14 UTC (rev 1393) @@ -414,7 +414,7 @@ if (isset($_SESSION['articles'])){ foreach ($_SESSION['articles'] as $key => $value) { - $lastArticles.="<a href=\"\" onclick=\"get_article('label=\'".$value['subject']."\'&cache=".$key."');return false;\">".$value['subject']."</a><br/>"; + $lastArticles.="<a href=\"\" onclick=\"get_article('label=".$value['subject']."&cache=".$key."');return false;\">".$value['subject']."</a><br/>"; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-23 14:23:33
|
Revision: 1419 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1419&view=rev Author: sknappe Date: 2008-10-23 14:23:29 +0000 (Thu, 23 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-23 14:21:31 UTC (rev 1418) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-23 14:23:29 UTC (rev 1419) @@ -97,11 +97,11 @@ // give the link to the corresponding Wikipedia article if(isset($triples['http://xmlns.com/foaf/0.1/page'])) - $content .= '<p><img src="images/wikipedia_favicon.png" alt="Wikipedia" style="max-width:20px;" /> <a href="'.$triples['http://xmlns.com/foaf/0.1/page'][0]['value'].'" onclick="window.open(\''.getPrintableURL($triples['http://xmlns.com/foaf/0.1/page'][0]['value']).'\',\'Wikiwindow\',\'width=800,height=500,top=50,left=50,scrollbars=yes\');">view Wikipedia article</a>, '; - $content .= '<img src="images/dbpedia-favicon.ico" alt="DBpedia" style="max-width:20px;"/> <a href="'.$uri.'" onclick="window.open(\''.$uri.'\',\'Wikiwindow\',\'width=800,height=500,top=50,left=50,scrollbars=yes\');">view DBpedia resource description</a>'; + $content .= '<p><img src="images/wikipedia_favicon.png" alt="Wikipedia" style="max-width:20px;" /> <a href="'.$triples['http://xmlns.com/foaf/0.1/page'][0]['value'].'" onclick="window.open(\''.getPrintableURL($triples['http://xmlns.com/foaf/0.1/page'][0]['value']).'\',\'Wikiwindow\',\'width=800,height=500,top=50,left=50,scrollbars=yes\');return false;">view Wikipedia article</a>, '; + $content .= '<img src="images/dbpedia-favicon.ico" alt="DBpedia" style="max-width:20px;"/> <a href="'.$uri.'" onclick="window.open(\''.$uri.'\',\'Wikiwindow\',\'width=800,height=500,top=50,left=50,scrollbars=yes\');return false;">view DBpedia resource description</a>'; //display photo collection, if there is one if (isset($triples['http://dbpedia.org/property/hasPhotoCollection'])){ - $content.=', <img src="images/flickr.png" alt="Flickr" style="max-width:20px;" /> <a href="'.$triples['http://dbpedia.org/property/hasPhotoCollection'][0]['value'].'" onclick="window.open(\''.$triples['http://dbpedia.org/property/hasPhotoCollection'][0]['value'].'\',\'Wikiwindow\',\'width=800,height=500,top=50,left=50,scrollbars=yes\');">view photo collection</a></p>'; + $content.=', <img src="images/flickr.png" alt="Flickr" style="max-width:20px;" /> <a href="'.$triples['http://dbpedia.org/property/hasPhotoCollection'][0]['value'].'" onclick="window.open(\''.$triples['http://dbpedia.org/property/hasPhotoCollection'][0]['value'].'\',\'Wikiwindow\',\'width=800,height=500,top=50,left=50,scrollbars=yes\');return false;">view photo collection</a></p>'; } //display owl:sameAs properties This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-27 08:32:30
|
Revision: 1435 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1435&view=rev Author: sknappe Date: 2008-10-27 08:28:08 +0000 (Mon, 27 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-27 08:05:19 UTC (rev 1434) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-27 08:28:08 UTC (rev 1435) @@ -250,7 +250,7 @@ // filter out uninteresting properties and properties which // have already been displayed - filterTriples($triples, $subjecttriples); + filterTriples(&$triples, &$subjecttriples); if (count($triples)>0||count($subjecttriples)>0){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-27 08:34:08
|
Revision: 1437 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1437&view=rev Author: sknappe Date: 2008-10-27 08:31:27 +0000 (Mon, 27 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-27 08:29:37 UTC (rev 1436) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-27 08:31:27 UTC (rev 1437) @@ -17,6 +17,8 @@ die(); } + $settings=new Settings(); + //write last action into session if (strpos($subject,"http://dbpedia.org/resource/")===0) $actionuri=substr (strrchr ($subject, "/"), 1); else $actionuri=urlencode($subject); @@ -124,7 +126,7 @@ if(isset($triples['http://www.w3.org/1999/02/22-rdf-syntax-ns#type'])){ // display a list of classes - if ($classSystem=="YAGO") $content.='<br/><hr><h4>YAGO Classes</h4><br/>'; + if ($settings->classSystem=="YAGO") $content.='<br/><hr><h4>YAGO Classes</h4><br/>'; $content .= '<p>'.formatClassArray($triples['http://www.w3.org/1999/02/22-rdf-syntax-ns#type'],$classSystem).'</p>'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-28 07:15:47
|
Revision: 1461 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1461&view=rev Author: sknappe Date: 2008-10-28 07:15:38 +0000 (Tue, 28 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-28 07:11:28 UTC (rev 1460) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-28 07:15:38 UTC (rev 1461) @@ -116,10 +116,6 @@ $content.=', <img src="images/flickr.png" alt="Flickr" style="max-width:20px;" /> <a href="'.$triples['http://dbpedia.org/property/hasPhotoCollection'][0]['value'].'" onclick="window.open(\''.$triples['http://dbpedia.org/property/hasPhotoCollection'][0]['value'].'\',\'Wikiwindow\',\'width=800,height=500,top=50,left=50,scrollbars=yes\');return false;">view photo collection</a></p>'; } - $content .= '<br/><hr><h4>Further Information</h4><br/>'; - // detect appropriate template (currently always default) - $template = new DefaultTemplate(); - //display owl:sameAs properties if (isset($triples['http://www.w3.org/2002/07/owl#sameAs'])||isset($subjecttriples['http://www.w3.org/2002/07/owl#sameAs'])){ $content.='<br/><hr><h4>Same as</h4><br/>'; @@ -268,6 +264,9 @@ // have already been displayed filterTriples(&$triples, &$subjecttriples); + $content .= '<br/><hr><h4>Further Information</h4><br/>'; + // detect appropriate template (currently always default) + $template = new DefaultTemplate(); // display template for this instance (currently the template is similar to the remaining // instance view apart from beautifications) $content .= $template->printTemplate($triples,$subjecttriples); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-28 13:36:00
|
Revision: 1478 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1478&view=rev Author: sknappe Date: 2008-10-28 12:27:13 +0000 (Tue, 28 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-28 12:21:14 UTC (rev 1477) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-28 12:27:13 UTC (rev 1478) @@ -262,14 +262,16 @@ $content .= '<br/><hr><h4>Further Information</h4><br/>'; + $template=""; // detect appropriate template (currently always default) - if($triples['http://www.w3.org/1999/02/22-rdf-syntax-ns#type']) == 'http://dbpedia.org/ontology/City) { - $template = new CityTemplate(); - } else if($triples['http://www.w3.org/1999/02/22-rdf-syntax-ns#type']) == 'http://dbpedia.org/ontology/Person) { - $template = new PersonTemplate(); - } else { - $template = new DefaultTemplate(); + foreach ($triples['http://www.w3.org/1999/02/22-rdf-syntax-ns#type'] as $classes){ + if($class['value'] == 'http://dbpedia.org/ontology/City') { + $template = new CityTemplate(); + } else if($class['value'] == 'http://dbpedia.org/ontology/Person') { + $template = new PersonTemplate(); + } } + if ($template=="") $template = new DefaultTemplate(); // filter out uninteresting properties and properties which // have already been displayed This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |