[gnome-documents/wip/skydrive: 23/28] miner: insert windows-live:skydrive:<ID> as nie:url



commit c0ed59e79d2b630f5d8a364b9aff68a6e96b5aae
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed May 30 23:36:21 2012 +0200

    miner: insert windows-live:skydrive:<ID> as nie:url
    
    This is same as the nao:identifier for files on Skydrive.
    
    Fixes: https://bugzilla.gnome.org/666535

 src/miner/gd-zpj-miner.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/miner/gd-zpj-miner.c b/src/miner/gd-zpj-miner.c
index ae67512..9b24a01 100644
--- a/src/miner/gd-zpj-miner.c
+++ b/src/miner/gd-zpj-miner.c
@@ -293,6 +293,15 @@ account_miner_job_process_entry (AccountMinerJob *job,
      datasource_urn, resource,
      "nie:dataSource", datasource_urn);
 
+  gd_miner_tracker_sparql_connection_insert_or_replace_triple
+    (job->connection,
+     job->cancellable, error,
+     datasource_urn, resource,
+     "nie:url", identifier);
+
+  if (*error != NULL)
+    goto out;
+
   if (ZPJ_IS_SKYDRIVE_FILE (entry))
     {
       gchar *parent_resource_urn, *parent_identifier;



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