|
From: <tg...@us...> - 2008-05-20 17:55:14
|
Revision: 571
http://rdfapi-php.svn.sourceforge.net/rdfapi-php/?rev=571&view=rev
Author: tgauss
Date: 2008-05-20 10:55:10 -0700 (Tue, 20 May 2008)
Log Message:
-----------
search for dereferencing subjects added. skos namespace added
Modified Paths:
--------------
trunk/bookmashup/bookmashup.php
Modified: trunk/bookmashup/bookmashup.php
===================================================================
--- trunk/bookmashup/bookmashup.php 2008-05-20 17:54:16 UTC (rev 570)
+++ trunk/bookmashup/bookmashup.php 2008-05-20 17:55:10 UTC (rev 571)
@@ -11,6 +11,8 @@
// Create an RDF model and fill with information about the resource
$type = @$_GET["type"];
$item = @$_GET["item"];
+
+
$documentURI = BOOKMASHUP_BASE . "doc/" . urlencode($type) . "/" . urlencode($item);
$resourceID = BOOKMASHUP_BASE . urlencode($type) . "/" . urlencode($item);
$service = new ApiQueryService($resourceID, $documentURI);
@@ -25,6 +27,8 @@
$service->findOffer($model, urlencode($item));
} else if ($type == "shops") {
$service->findShop($model, $item);
+} else if ($type == "subject") {
+ $service->findSubject($model, $item);
} else {
header("HTTP/1.1 404 Not Found");
header("Content-Type: text/plain");
@@ -61,6 +65,7 @@
$s->addNamespacePrefix('scom', 'http://sites.wiwiss.fu-berlin.de/suhl/bizer/bookmashup/simpleCommerceVocab01.rdf#');
$s->addNamespacePrefix('bookRdf', 'http://www.hackcraft.net/bookrdf/vocab/0_1/');
$s->addNamespacePrefix('owl', 'http://www.w3.org/2002/07/owl#');
+$s->addNamespacePrefix('skos','http://www.w3.org/2004/02/skos/core#');
echo $s->serialize($model);
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|