[tracker/miner-flickr: 21/24] tracker-miner-flickr: Associate a data source to indexed items
- From: Adrien Bustany <abustany src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-flickr: 21/24] tracker-miner-flickr: Associate a data source to indexed items
- Date: Fri, 2 Apr 2010 13:20:49 +0000 (UTC)
commit f36a7d7ac6165826b8c6ebb271d518fa83d9d500
Author: Adrien Bustany <abustany gnome org>
Date: Fri Mar 26 12:59:48 2010 -0300
tracker-miner-flickr: Associate a data source to indexed items
src/miners/flickr/tracker-miner-flickr.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/flickr/tracker-miner-flickr.vala b/src/miners/flickr/tracker-miner-flickr.vala
index 3fb858a..b026ccb 100644
--- a/src/miners/flickr/tracker-miner-flickr.vala
+++ b/src/miners/flickr/tracker-miner-flickr.vala
@@ -29,7 +29,7 @@ public class MinerFlickr : Tracker.MinerWeb {
private static const string MINER_DESCRIPTION = "Tracker miner for Flickr";
private static const string API_KEY = "7983269709fa3158c752e3e4d6b3b9e5";
private static const string SHARED_SECRET = "c0316d1cb4b15e2d";
- private static const string DATASOURCE_URN = "urn:2208f9fc-3c5b-4e40-ade4-45a0d7b0cf6f";
+ private static const string DATASOURCE_URN = "urn:nepomuk:datasource:2208f9fc-3c5b-4e40-ade4-45a0d7b0cf6f";
private static const string FLICKR_AUTH_URL = "http://api.flickr.com/services/auth/";
private static const string FLICKR_REST_URL = "http://api.flickr.com/services/rest/";
private static const string FLICKR_PHOTOSET_URL = "http://www.flickr.com/photos/%s/sets/%s";
@@ -171,6 +171,8 @@ public class MinerFlickr : Tracker.MinerWeb {
builder.object ("nfo:MediaList");
builder.predicate ("a");
builder.object ("nfo:RemoteDataObject");
+ builder.predicate ("nie:dataSource");
+ builder.object_iri (DATASOURCE_URN);
builder.predicate ("nie:url");
builder.object_string (photoset_url);
@@ -235,6 +237,10 @@ public class MinerFlickr : Tracker.MinerWeb {
builder.object ("nmm:Photo");
builder.predicate ("a");
builder.object ("nfo:RemoteDataObject");
+ builder.predicate ("nie:dataSource");
+ builder.object_iri (DATASOURCE_URN);
+ builder.predicate ("nao:identifier");
+ builder.object_string (photo_node.get_attr ("id"));
builder.predicate ("a");
builder.object ("nfo:MediaFileListEntry");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]