diff --git a/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/index.php b/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/index.php
index d12a9f85..486729a8 100644
--- a/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/index.php
+++ b/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/index.php
@@ -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
+
+ }
+
+ }
}
?>
\ No newline at end of file
diff --git a/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/logic/controller.php b/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/logic/controller.php
index c9f871c6..ce65e821 100644
--- a/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/logic/controller.php
+++ b/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/logic/controller.php
@@ -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 {
diff --git a/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/rdfLib/sparqllib.php b/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/rdfLib/sparqllib.php
index 66c685b0..7917cf5d 100644
--- a/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/rdfLib/sparqllib.php
+++ b/ws2011/Semantic Web/Uebungen/1. Bonus Aufgabe/SemanticWebApp/rdfLib/sparqllib.php
@@ -1,4 +1,4 @@
-
+$row[$field]
";
+ print "$row[$field]
";
}else if($ref == 2){
print "" . $row[$field] . "
";
}else if($ref == 3){
@@ -84,9 +84,9 @@ class view{
+
-
+