[tracker/tags: 1/2] tracker-miner-fs: Use INSERT { GRAPH <...> {...} }
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tags: 1/2] tracker-miner-fs: Use INSERT { GRAPH <...> {...} }
- Date: Thu, 24 Mar 2011 11:53:17 +0000 (UTC)
commit 7f12ea846817c1ca5e6e2a7f79a55faeb2ba6bff
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 cd16247..e08b456 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -1982,6 +1982,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 */
@@ -2393,7 +2394,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]