[tracker/wip/extract-graphs] tracker-extract, totem: Do all inserts in miner-fs's graph
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/extract-graphs] tracker-extract, totem: Do all inserts in miner-fs's graph
- Date: Tue, 6 Sep 2011 09:04:55 +0000 (UTC)
commit d5380ad24d25b1c022e6ceb2c7251a9bc6b6d93f
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Sep 6 10:54:20 2011 +0200
tracker-extract, totem: Do all inserts in miner-fs's graph
src/tracker-extract/tracker-extract-totem.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-totem.c b/src/tracker-extract/tracker-extract-totem.c
index 035c19a..63fdc39 100644
--- a/src/tracker-extract/tracker-extract-totem.c
+++ b/src/tracker-extract/tracker-extract-totem.c
@@ -64,10 +64,12 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
GHashTable *tmp_metadata;
TrackerSparqlBuilder *metadata, *preupdate;
GFile *file;
+ const gchar *graph;
file = tracker_extract_info_get_file (info);
preupdate = tracker_extract_info_get_preupdate_builder (info);
metadata = tracker_extract_info_get_metadata_builder (info);
+ graph = tracker_extract_info_get_graph (info);
argv[0] = g_strdup ("totem-video-indexer");
argv[1] = g_file_get_path (file);
@@ -112,6 +114,9 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
if (artist) {
tracker_sparql_builder_insert_open (preupdate, NULL);
+ if (graph) {
+ tracker_sparql_builder_graph_open (preupdate, graph);
+ }
tracker_sparql_builder_subject_iri (preupdate, artist_uri);
tracker_sparql_builder_predicate (preupdate, "a");
@@ -126,6 +131,9 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
tracker_sparql_builder_predicate (preupdate, "nmm:artistName");
tracker_sparql_builder_object_unvalidated (preupdate, artist);
+ if (graph) {
+ tracker_sparql_builder_graph_close (preupdate);
+ }
tracker_sparql_builder_insert_close (preupdate);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]