[tracker-miners/wip/carlosg/graphs: 18/25] tracker-extract: Store the graph as specified in the extract rule
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/graphs: 18/25] tracker-extract: Store the graph as specified in the extract rule
- Date: Fri, 1 May 2020 10:43:05 +0000 (UTC)
commit 719e92451aa12ff234c1c2446efc6fb7f64cfb17
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Apr 26 14:06:32 2020 +0200
tracker-extract: Store the graph as specified in the extract rule
Make everything ready to use it in SPARQL production.
src/tracker-extract/tracker-extract.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index edd4eecfd..9df045e56 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -82,6 +82,7 @@ typedef struct {
GAsyncResult *res;
gchar *file;
gchar *mimetype;
+ const gchar *graph;
TrackerExtractMetadataFunc func;
GModule *module;
@@ -286,7 +287,7 @@ get_file_metadata (TrackerExtractTask *task,
*info_out = NULL;
file = g_file_new_for_uri (task->file);
- info = tracker_extract_info_new (file, task->mimetype, NULL);
+ info = tracker_extract_info_new (file, task->mimetype, task->graph);
g_object_unref (file);
if (task->mimetype && *task->mimetype) {
@@ -565,6 +566,8 @@ dispatch_task_cb (TrackerExtractTask *task)
return FALSE;
}
+ task->graph = tracker_extract_module_manager_get_graph (task->mimetype);
+
async_queue = g_hash_table_lookup (priv->single_thread_extractors,
task->module);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]