[gnome-photos/wip/foo: 12/17] query-builder: Add photos_query_builder_fetch_collections_query
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/foo: 12/17] query-builder: Add photos_query_builder_fetch_collections_query
- Date: Sat, 30 Mar 2013 16:54:46 +0000 (UTC)
commit 5d24e7b4ec8b9864a597a00861746c85102b7fff
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Mar 30 17:47:53 2013 +0100
query-builder: Add photos_query_builder_fetch_collections_query
src/photos-query-builder.c | 10 ++++++++++
src/photos-query-builder.h | 2 ++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-query-builder.c b/src/photos-query-builder.c
index fdc9fed..f5ab2f2 100644
--- a/src/photos-query-builder.c
+++ b/src/photos-query-builder.c
@@ -228,6 +228,16 @@ photos_query_builder_count_query (void)
PhotosQuery *
+photos_query_builder_fetch_collections_query (const gchar *resource)
+{
+ gchar *sparql;
+
+ sparql = g_strdup_printf ("SELECT ?urn WHERE { ?urn a nfo:DataContainer . <%s> nie:isPartOf ?urn }",
resource);
+ return photos_query_new (sparql);
+}
+
+
+PhotosQuery *
photos_query_builder_global_favorites_query (void)
{
gchar *sparql;
diff --git a/src/photos-query-builder.h b/src/photos-query-builder.h
index fdbcddf..3d729ef 100644
--- a/src/photos-query-builder.h
+++ b/src/photos-query-builder.h
@@ -37,6 +37,8 @@ PhotosQuery *photos_query_builder_count_favorites_query (void);
PhotosQuery *photos_query_builder_count_query (void);
+PhotosQuery *photos_query_builder_fetch_collections_query (const gchar *resource);
+
PhotosQuery *photos_query_builder_global_favorites_query (void);
PhotosQuery *photos_query_builder_global_query (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]