[tracker-miners/wip/carlosg/monitor-event-fixes: 3/3] tracker-miner-fs: Make graph-specific data optional on deletes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/monitor-event-fixes: 3/3] tracker-miner-fs: Make graph-specific data optional on deletes
- Date: Sun, 9 Aug 2020 20:49:48 +0000 (UTC)
commit 95123a0fd8bd2176fa19a80afdba585581fe158c
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Aug 9 16:54:45 2020 +0200
tracker-miner-fs: Make graph-specific data optional on deletes
Depending on the file type and its processing state, we may expect
nfo:FileDataObject and/or nie:InformationElement data in the content-
specific graphs.
The delete operations should account for those not being yet added,
or simply missing due to the file type. This fixes delete operations
after the nfo:FileDataObject/nie:InformationElement split.
src/miners/fs/tracker-miner-files.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 8033dceb0..588b98f3a 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2429,7 +2429,8 @@ create_delete_sparql (GFile *file,
" nie:url ?u . "
" }"
" GRAPH ?g {"
- " ?ie nie:isStoredAs ?f . "
+ " OPTIONAL { ?f a rdfs:Resource } . "
+ " OPTIONAL { ?ie nie:isStoredAs ?f } . "
" }"
" FILTER (");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]