[tracker/tracker-0.10] tracker-miner-fs: Use INSERT { GRAPH <...> {...} }
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-miner-fs: Use INSERT { GRAPH <...> {...} }
- Date: Thu, 24 Mar 2011 22:07:04 +0000 (UTC)
commit 1ff39cf52158be87e46c02f6a7129c5e812b20f0
Author: Jürg Billeter <j bitron ch>
Date: Thu Mar 24 12:43:20 2011 +0100
tracker-miner-fs: Use INSERT { GRAPH <...> {...} }
The graph specified with INSERT INTO also applies to the WHERE pattern.
src/miners/fs/tracker-miner-files.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 32e6975..b646c1b 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -1980,6 +1980,7 @@ extractor_get_embedded_metadata_cb (const gchar *preupdate,
tracker_sparql_builder_append (data->sparql, sparql);
}
+ tracker_sparql_builder_graph_close (data->sparql);
tracker_sparql_builder_insert_close (data->sparql);
/* Prepend preupdate queries */
@@ -2391,7 +2392,8 @@ process_file_cb (GObject *object,
mime_type = g_file_info_get_content_type (file_info);
urn = miner_files_get_file_urn (TRACKER_MINER_FILES (data->miner), file, &is_iri);
- tracker_sparql_builder_insert_silent_open (sparql, TRACKER_MINER_FS_GRAPH_URN);
+ tracker_sparql_builder_insert_silent_open (sparql, NULL);
+ tracker_sparql_builder_graph_open (sparql, TRACKER_MINER_FS_GRAPH_URN);
if (is_iri) {
tracker_sparql_builder_subject_iri (sparql, urn);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]