[tracker-miners/wip/carlosg/miner-changes: 15/19] tracker-miner-fs: Handle file updates by deleting tracker:extractorHash
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/miner-changes: 15/19] tracker-miner-fs: Handle file updates by deleting tracker:extractorHash
- Date: Thu, 18 Jun 2020 13:38:28 +0000 (UTC)
commit 8740206f756c1a6c6047c4e777a43a8d9b69f423
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 18 11:11:50 2020 +0200
tracker-miner-fs: Handle file updates by deleting tracker:extractorHash
This must be done now so tracker-extract picks the file again. The
nie:dataSources are best left alone now.
src/miners/fs/tracker-miner-files.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index c327ed5a2..d882c95d1 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2141,21 +2141,24 @@ process_file_cb (GObject *object,
if (!is_directory &&
tracker_miner_fs_get_urn (TRACKER_MINER_FS (data->miner), file)) {
/* Update: delete all information elements for the given data object
- * and delete dataSources, so we ensure the file is extracted again.
+ * and delete extractorHash, so we ensure the file is extracted again.
*/
delete_properties_sparql =
g_strdup_printf ("DELETE {"
" GRAPH ?g {"
- " <%s> nie:interpretedAs ?ie ; "
- " nie:dataSource ?ds . "
+ " <%s> nie:interpretedAs ?ie . "
" ?ie a rdfs:Resource . "
" }"
"} WHERE {"
" GRAPH ?g {"
" <%s> nie:interpretedAs ?ie ."
- " OPTIONAL { <%s> nie:dataSource ?ds } "
" }"
- "} ",
+ "}; "
+ "DELETE WHERE {"
+ " GRAPH " DEFAULT_GRAPH " {"
+ " <%s> tracker:extractorHash ?h ."
+ " }"
+ "}",
uri, uri, uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]