[tracker-miners/wip/carlosg/indexed-folder-ontology: 2/4] libtracker-miner: Update TrackerDecorator to tracker:available change
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/indexed-folder-ontology: 2/4] libtracker-miner: Update TrackerDecorator to tracker:available change
- Date: Sat, 6 Jun 2020 15:27:08 +0000 (UTC)
commit 54394b75dd0b1ab7db6e1a86dc8f73f5a5762ac9
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jun 6 16:34:44 2020 +0200
libtracker-miner: Update TrackerDecorator to tracker:available change
It's no longer a property of the nfo:FileDataObject, but its nie:dataSource
src/libtracker-miner/tracker-decorator-fs.c | 2 +-
src/libtracker-miner/tracker-decorator.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator-fs.c b/src/libtracker-miner/tracker-decorator-fs.c
index 3d76c48f5..9b7fb5f51 100644
--- a/src/libtracker-miner/tracker-decorator-fs.c
+++ b/src/libtracker-miner/tracker-decorator-fs.c
@@ -180,7 +180,7 @@ check_files (TrackerDecorator *decorator,
_tracker_decorator_query_append_rdf_type_filter (decorator, query);
if (available)
- g_string_append (query, "&& BOUND(tracker:available(?urn))");
+ g_string_append (query, "&& BOUND(tracker:available(nie:dataSource(?urn)))");
g_string_append (query, ")}");
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index a381dc718..a211f907f 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -721,7 +721,7 @@ create_query_string (TrackerDecorator *decorator,
"{ ?urn a rdfs:Resource;"
" a ?type ;"
" nie:isStoredAs ?do . "
- " ?do tracker:available true ."
+ " ?do nie:dataSource/tracker:available true ."
" FILTER (! EXISTS { ?do nie:dataSource <%s> } ",
priv->data_source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]