[gnome-photos] query-builder: Add "?urn a rdfs:Resource" to count_query's WHERE clause
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] query-builder: Add "?urn a rdfs:Resource" to count_query's WHERE clause
- Date: Mon, 13 Aug 2012 23:23:44 +0000 (UTC)
commit 6904ae2bbfa0a83e3c4036c34b1c85e7f3f14ba2
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Aug 14 01:19:09 2012 +0200
query-builder: Add "?urn a rdfs:Resource" to count_query's WHERE clause
This used to be a bug in gnome-documents.
src/photos-query-builder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-query-builder.c b/src/photos-query-builder.c
index 229fc8c..8ed4c57 100644
--- a/src/photos-query-builder.c
+++ b/src/photos-query-builder.c
@@ -157,7 +157,7 @@ photos_query_builder_count_query (void)
filter = photos_query_builder_filter ();
optional = photos_query_builder_optional ();
- sparql = g_strconcat ("SELECT DISTINCT COUNT(?urn) WHERE { ", optional, filter, " }", NULL);
+ sparql = g_strconcat ("SELECT DISTINCT COUNT(?urn) WHERE { ?urn a rdfs:Resource ", optional, filter, " }", NULL);
g_free (optional);
g_free (filter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]