fixed paths,
fixed missing "<?php" in soarqllib fixed search on movie-info-page
This commit is contained in:
parent
cab6c8e1ab
commit
9113312549
@ -24,8 +24,30 @@ if(isset($_POST['buttonPressed'])){
|
||||
$mainController = new controller();
|
||||
$mainController->getData($movieTitleByUser, 1);
|
||||
|
||||
} else {
|
||||
if(isset($_GET['title']) || isset($_GET['thing'])){
|
||||
|
||||
$title = $_GET['title'];
|
||||
$thing = $_GET['thing'];
|
||||
|
||||
$controller = new controller();
|
||||
|
||||
|
||||
|
||||
if($thing == "actors" || $thing == 'writers' || $thing == 'director' || $thing == 'editor'){
|
||||
|
||||
$controller->getData($title, 3); //get persondata from dbpedia
|
||||
|
||||
}else if($thing == "filmtitle"){
|
||||
|
||||
$controller->getData($title, 2); //get filmdata form linkedopenmdb
|
||||
|
||||
}else{
|
||||
|
||||
//do nothing
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -7,39 +7,12 @@
|
||||
|
||||
|
||||
|
||||
include_once dirname(__FILE__) . '/../rdfLib/sparqllib.php';
|
||||
include_once dirname(__FILE__) . '/../view/view.php';
|
||||
require_once dirname(__FILE__) . '/../rdfLib/sparqllib.php';
|
||||
require_once dirname(__FILE__) . '/../view/view.php';
|
||||
//include_once '../lib/sparqllib.php';
|
||||
//include_once '../view/view.php';
|
||||
include_once 'mdbController.php';
|
||||
include_once 'dbpediaController.php';
|
||||
|
||||
|
||||
|
||||
if(isset($_GET['title']) || isset($_GET['thing'])){
|
||||
|
||||
$title = $_GET['title'];
|
||||
$thing = $_GET['thing'];
|
||||
|
||||
$controller = new controller();
|
||||
|
||||
|
||||
if($thing == "actors" || $thing == 'writers' || $thing == 'director' || $thing == 'editor'){
|
||||
|
||||
$controller->getData($title, 3); //get persondata from dbpedia
|
||||
|
||||
}else if($thing == "filmtitle"){
|
||||
|
||||
$controller->getData($title, 2); //get filmdata form linkedopenmdb
|
||||
|
||||
}else{
|
||||
|
||||
//do nothing
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
require_once 'mdbController.php';
|
||||
require_once 'dbpediaController.php';
|
||||
|
||||
class controller {
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
###############################
|
||||
# Christopher Gutteridge 2010
|
||||
|
||||
@ -41,7 +41,7 @@ class view{
|
||||
foreach( $fields as $field )
|
||||
{
|
||||
if($ref == 1){
|
||||
print "<a href=\"/SemanticWebApp/logic/controller.php?title=$row[$field]&thing=$info\">$row[$field]</a><br>";
|
||||
print "<a href=\"?title=$row[$field]&thing=$info\">$row[$field]</a><br>";
|
||||
}else if($ref == 2){
|
||||
print "<a href=$row[$field] target=blank>" . $row[$field] . "</a><br>";
|
||||
}else if($ref == 3){
|
||||
@ -84,9 +84,9 @@ class view{
|
||||
|
||||
</p>
|
||||
|
||||
<a href="http://www.linkedmdb.org/" target="_blank"><img src="http://www.scholz.php4you.net/bilder/mdb.png" alt="linkedmdb.org"></a>
|
||||
<a href="http://www.linkedmdb.org/" target="_blank"><img src="view/mdb.png" alt="linkedmdb.org"></a>
|
||||
</br>
|
||||
<a href="http://www.dbpedia.org/" target="_blank"><img src="http://www.scholz.php4you.net/bilder/dbpedia.png" alt="dbpedia.org"></a>
|
||||
<a href="http://www.dbpedia.org/" target="_blank"><img src="view/dbpedia.png" alt="dbpedia.org"></a>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user