[PATCH] tracker: do not rely use nie:isStoredAs as a property reflecting URN
- From: lionel g landwerlin linux intel com
- To: grilo-list gnome org
- Subject: [PATCH] tracker: do not rely use nie:isStoredAs as a property reflecting URN
- Date: Wed, 2 Feb 2011 13:35:26 +0000
From: Lionel Landwerlin <lionel g landwerlin linux intel com>
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;
--
1.7.2.3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]