[tracker/tracker-1.10] tracker-miner-fs: Use correct graph when inserting tracker:Volumes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.10] tracker-miner-fs: Use correct graph when inserting tracker:Volumes
- Date: Fri, 29 Sep 2017 20:04:09 +0000 (UTC)
commit 07bd5201639cf2edb5f4b9d87d11bc1b0aea4ab2
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Dec 25 13:31:27 2016 +0100
tracker-miner-fs: Use correct graph when inserting tracker:Volumes
The volume URN is not meant to be the graph URN, use the tracker-miner-fs
graph instead.
src/miners/fs/tracker-miner-files.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index e2db5a7..e9dc1ef 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -740,16 +740,16 @@ set_up_mount_point_type (TrackerMinerFiles *miner,
removable_device_urn, removable_device_urn);
g_string_append_printf (accumulator,
- "INSERT INTO <%s> { <%s> a tracker:Volume; tracker:isRemovable %s } ",
- removable_device_urn, removable_device_urn, removable ? "true" : "false");
+ "INSERT INTO <" TRACKER_OWN_GRAPH_URN "> { <%s> a tracker:Volume;
tracker:isRemovable %s } ",
+ removable_device_urn, removable ? "true" : "false");
g_string_append_printf (accumulator,
"DELETE { <%s> tracker:isOptical ?unknown } WHERE { <%s> a tracker:Volume;
tracker:isOptical ?unknown } ",
removable_device_urn, removable_device_urn);
g_string_append_printf (accumulator,
- "INSERT INTO <%s> { <%s> a tracker:Volume; tracker:isOptical %s } ",
- removable_device_urn, removable_device_urn, optical ? "true" : "false");
+ "INSERT INTO <" TRACKER_OWN_GRAPH_URN "> { <%s> a tracker:Volume;
tracker:isOptical %s } ",
+ removable_device_urn, optical ? "true" : "false");
}
static void
@@ -810,17 +810,17 @@ set_up_mount_point (TrackerMinerFiles *miner,
if (mount_name) {
g_string_append_printf (queries,
- "INSERT INTO <%s> { <%s> a tracker:Volume; tracker:isMounted
true; nie:title \"%s\" } ",
- removable_device_urn, removable_device_urn, mount_name);
+ "INSERT INTO <" TRACKER_OWN_GRAPH_URN "> { <%s> a
tracker:Volume; tracker:isMounted true; nie:title \"%s\" } ",
+ removable_device_urn, mount_name);
} else {
g_string_append_printf (queries,
- "INSERT INTO <%s> { <%s> a tracker:Volume; tracker:isMounted
true } ",
- removable_device_urn, removable_device_urn);
+ "INSERT INTO <" TRACKER_OWN_GRAPH_URN "> { <%s> a
tracker:Volume; tracker:isMounted true } ",
+ removable_device_urn);
}
g_string_append_printf (queries,
- "INSERT { GRAPH <%s> { ?do tracker:available true } } WHERE { ?do
nie:dataSource <%s> } ",
- removable_device_urn, removable_device_urn);
+ "INSERT { GRAPH <" TRACKER_OWN_GRAPH_URN "> { ?do tracker:available
true } } WHERE { ?do nie:dataSource <%s> } ",
+ removable_device_urn);
} else {
gchar *now;
@@ -834,16 +834,16 @@ set_up_mount_point (TrackerMinerFiles *miner,
removable_device_urn, removable_device_urn);
g_string_append_printf (queries,
- "INSERT INTO <%s> { <%s> a tracker:Volume; tracker:unmountDate \"%s\"
} ",
- removable_device_urn, removable_device_urn, now);
+ "INSERT INTO <" TRACKER_OWN_GRAPH_URN "> { <%s> a tracker:Volume;
tracker:unmountDate \"%s\" } ",
+ removable_device_urn, now);
g_string_append_printf (queries,
"DELETE { <%s> tracker:isMounted ?unknown } WHERE { <%s> a
tracker:Volume; tracker:isMounted ?unknown } ",
removable_device_urn, removable_device_urn);
g_string_append_printf (queries,
- "INSERT INTO <%s> { <%s> a tracker:Volume; tracker:isMounted false }
",
- removable_device_urn, removable_device_urn);
+ "INSERT INTO <" TRACKER_OWN_GRAPH_URN "> { <%s> a tracker:Volume;
tracker:isMounted false } ",
+ removable_device_urn);
g_string_append_printf (queries,
"DELETE { ?do tracker:available true } WHERE { ?do nie:dataSource
<%s> } ",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]