[tracker] TrackerMinerFS: Use nfo:belongsToContainer when filling in the IRI cache.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] TrackerMinerFS: Use nfo:belongsToContainer when filling in the IRI cache.
- Date: Wed, 12 May 2010 09:18:21 +0000 (UTC)
commit c36c49dff3e53dddf4c3e686bcf36d645fd58f8c
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue May 11 16:56:28 2010 +0200
TrackerMinerFS: Use nfo:belongsToContainer when filling in the IRI cache.
src/libtracker-miner/tracker-miner-fs.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 1de3208..ec9b9f3 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1132,9 +1132,10 @@ ensure_iri_cache (TrackerMinerFS *fs,
g_debug ("Generating IRI cache for folder: %s", uri);
- query = g_strdup_printf ("SELECT ?uri ?u { "
- " ?u nie:url ?uri . "
- " FILTER (tracker:uri-is-parent (\"%s\", ?uri)) "
+ query = g_strdup_printf ("SELECT ?url ?u { "
+ " ?u nfo:belongsToContainer ?p ; "
+ " nie:url ?url . "
+ " ?p nie:url \"%s\" "
"}",
uri);
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]