[gnome-documents/gnome-3-8] gdata: Create a graph based on the nie:dataSource
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-8] gdata: Create a graph based on the nie:dataSource
- Date: Wed, 11 Sep 2013 09:40:01 +0000 (UTC)
commit 3dc6b311048fb029b8b1090c477f61f32730d92a
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Sep 10 11:47:25 2013 +0200
gdata: Create a graph based on the nie:dataSource
Looks like we have to force a full reindex of Google resources to make
sure folders are correctly linked to their children. We can take this
opportunity to fix the use graphs in this miner.
https://bugzilla.gnome.org/show_bug.cgi?id=694003
src/miner/gd-gdata-miner.c | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/miner/gd-gdata-miner.c b/src/miner/gd-gdata-miner.c
index a488282..90fa106 100644
--- a/src/miner/gd-gdata-miner.c
+++ b/src/miner/gd-gdata-miner.c
@@ -95,7 +95,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
(job->connection,
job->cancellable, error,
&resource_exists,
- resource_url, identifier,
+ job->datasource_urn, identifier,
"nfo:RemoteDataObject", class, NULL);
if (*error != NULL)
@@ -129,7 +129,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
job->cancellable, error,
- identifier, resource,
+ job->datasource_urn, resource,
"nie:url", alternate_uri);
if (*error != NULL)
@@ -144,7 +144,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
job->cancellable, error,
- identifier, resource,
+ job->datasource_urn, resource,
"nie:mimeType", mimetype_override);
if (*error != NULL)
@@ -161,7 +161,8 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
parent_resource_urn = gd_miner_tracker_sparql_connection_ensure_resource
(job->connection, job->cancellable, error,
- NULL, NULL, parent_resource_id,
+ NULL,
+ job->datasource_urn, parent_resource_id,
"nfo:RemoteDataObject", "nfo:DataContainer", NULL);
g_free (parent_resource_id);
@@ -171,7 +172,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
job->cancellable, error,
- identifier, resource,
+ job->datasource_urn, resource,
"nie:isPartOf", parent_resource_urn);
g_free (parent_resource_urn);
@@ -201,7 +202,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
job->cancellable, error,
- identifier, resource,
+ job->datasource_urn, resource,
"nie:description", gdata_entry_get_summary (entry));
if (*error != NULL)
@@ -210,7 +211,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
job->cancellable, error,
- identifier, resource,
+ job->datasource_urn, resource,
"nie:title", gdata_entry_get_title (entry));
if (*error != NULL)
@@ -234,7 +235,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
job->cancellable, error,
- identifier, resource,
+ job->datasource_urn, resource,
"nco:creator", contact_resource);
if (*error != NULL)
@@ -276,7 +277,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
job->cancellable, error,
- identifier, resource,
+ job->datasource_urn, resource,
"nco:contributor", contact_resource);
g_free (contact_resource);
@@ -289,7 +290,7 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
job->cancellable, error,
- identifier, resource,
+ job->datasource_urn, resource,
"nie:contentCreated", date);
g_free (date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]