[tracker/tracker-0.8] TrackerMinerFS: Use nfo:belongsToContainer when filling in the IRI cache.



commit 4d1c47aa8ef196d920ff1ed7189f62c367179023
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 f8ca935..e59a417 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1138,9 +1138,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]