You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@sergeant.org on 2006/08/05 04:44:46 UTC

[SVN] [43] Bug fixes for previous cleanup

Revision: 43
Author:   matt
Date:     2006-08-05 02:44:22 +0000 (Sat, 05 Aug 2006)

Log Message:
-----------
Bug fixes for previous cleanup

Modified Paths:
--------------
    trunk/plugins/demo/gallery

Modified: trunk/plugins/demo/gallery
===================================================================
--- trunk/plugins/demo/gallery	2006-08-05 01:31:23 UTC (rev 42)
+++ trunk/plugins/demo/gallery	2006-08-05 02:44:22 UTC (rev 43)
@@ -317,7 +317,7 @@
             
             my $stor = new RDF::Core::Storage::Memory;
             my $model = new RDF::Core::Model(Storage => $stor);
-            my $subject = new RDF::Core::Resource("/$path/$file");
+            my $subject = new RDF::Core::Resource("$filename");
             my $predicate;
             my $object;
             my $statement;
@@ -357,13 +357,13 @@
             foreach my $thumb (@{$info->{thumbs}{thumb}}) {
                 my $size = $thumb->{size};
                 $model->addStmt(RDF::Core::Statement->new($subject, $foaf,
-                        RDF::Core::Resource->new("/$path/$file?size=$size")));
+                        RDF::Core::Resource->new("$filename?size=$size")));
             }
         
             # Convert the thumbnail data to RDF
             foreach my $thumb (@{$info->{thumbs}{thumb}}) {
                 my $size = $thumb->{size};
-                $subject = new RDF::Core::Resource("/$path/$file?size=$size");
+                $subject = new RDF::Core::Resource("$filename?size=$size");
                 
                 foreach (qw(height width)) {
                     $predicate = $subject->new($ns{'image_info'}, $_);