From: <sk...@us...> - 2008-10-28 13:24:44
|
Revision: 1483 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1483&view=rev Author: sknappe Date: 2008-10-28 13:23:50 +0000 (Tue, 28 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-10-28 12:54:36 UTC (rev 1482) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-10-28 13:23:50 UTC (rev 1483) @@ -182,11 +182,11 @@ } } //geonames - if (strlen($geonames)>0){ - $query="SELECT * WHERE {<".$geonames."> <http://www.geonames.org/ontology#parent> ?parent.<".$geonames."> <http://www.geonames.org/ontology#children> ?children.<".$geonames."> <http://www.geonames.org/ontology#neighbours> ?neighbours.}"; + /*if (strlen($geonames)>0){ + $query="SELECT * WHERE {<".$geonames."> <http://www.geonames.org/ontology#parentFeature> ?parent.<".$geonames."> <http://www.geonames.org/ontology#children> ?children.<".$geonames."> <http://www.geonames.org/ontology#nearbyFeatures> ?neighbours.}"; $result=json_decode($this->client->sparqlQueryPredefinedEndpoint("LOCALGEONAMES", $query, true),true); var_dump($result); - } + }*/ return $ret; } Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-28 12:54:36 UTC (rev 1482) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-28 13:23:50 UTC (rev 1483) @@ -264,7 +264,7 @@ $template=""; // detect appropriate template (currently always default) - foreach ($triples['http://www.w3.org/1999/02/22-rdf-syntax-ns#type'] as $classes){ + if (isset($triples['http://www.w3.org/1999/02/22-rdf-syntax-ns#type'])) 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') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |