[grilo-plugins] tracker: do not rely use nie:isStoredAs as a property reflecting URN



commit d3cc7bc45044147f8cd294c0fdba90adac69f159
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Wed Feb 2 13:35:26 2011 +0000

    tracker: do not rely use nie:isStoredAs as a property reflecting URN
    
    This is obviously a wrong usage of nie:isStoredAs since it's not
    suppose to follow the below relation :
    
                ?urn = nie:isStoredAs(?urn)
    
    Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>

 src/tracker/grl-tracker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index 5625cb2..735b0e9 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -126,8 +126,8 @@ enum {
   "LIMIT %i"
 
 #define TRACKER_METADATA_REQUEST                                    \
-  "SELECT %s "                                                      \
-  "WHERE { ?urn nie:isStoredAs <%s> }"                              \
+  "SELECT %s "							    \
+  "WHERE { ?urn a nie:DataObject . FILTER (?urn = <%s>) }"
 
 typedef struct {
   GrlKeyID     grl_key;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]