[tracker/miner-flickr] tracker-miner-flickr: Fix use of insert_open



commit e37b3bc0cffded252c8e2612d8b9882ef45a746b
Author: Adrien Bustany <abustany gnome org>
Date:   Fri Mar 12 12:08:07 2010 -0300

    tracker-miner-flickr: Fix use of insert_open
    
    This commit makes SparqlBuilder.insert_open use the url of the inserted
    resource instead of the url of the datasource.

 src/tracker-miner-flickr/tracker-miner-flickr.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-miner-flickr/tracker-miner-flickr.vala b/src/tracker-miner-flickr/tracker-miner-flickr.vala
index 65d38d4..8eeecab 100644
--- a/src/tracker-miner-flickr/tracker-miner-flickr.vala
+++ b/src/tracker-miner-flickr/tracker-miner-flickr.vala
@@ -155,7 +155,7 @@ public class MinerFlickr : Tracker.MinerWeb {
 
 			message ("Getting photos for album %s", photoset_url);
 			builder = new SparqlBuilder.update ();
-			builder.insert_open (DATASOURCE_URN);
+			builder.insert_open (photoset_url);
 
 			builder.subject ("_:album");
 			builder.predicate ("a");
@@ -214,7 +214,7 @@ public class MinerFlickr : Tracker.MinerWeb {
 			                                     photo_node.get_attr ("id"),
 			                                     photo_node.get_attr ("secret"));
 			builder = new SparqlBuilder.update ();
-			builder.insert_open (DATASOURCE_URN);
+			builder.insert_open (photo_url);
 
 			builder.subject ("_:photo");
 			builder.predicate ("a");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]