[solang] Remove nie:isStoredAs and use nie:url directly



commit eb84dc76438e0ec10d863f16c6290529eea9656c
Author: Debarshi Ray <rishi gnu org>
Date:   Thu Jan 28 00:10:48 2010 +0200

    Remove nie:isStoredAs and use nie:url directly

 src/attribute/photo-tag.cpp |    6 ++----
 src/common/photo.cpp        |    3 +--
 2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/attribute/photo-tag.cpp b/src/attribute/photo-tag.cpp
index 8c754c2..22c3fa9 100644
--- a/src/attribute/photo-tag.cpp
+++ b/src/attribute/photo-tag.cpp
@@ -51,8 +51,7 @@ PhotoTag::get_delete_query() const throw()
                                   "  ?photo nao:hasTag <%1> ."
                                   "}"
                                   "WHERE {"
-                                  "  ?photo nie:isStoredAs ?data ."
-                                  "  ?data nie:url '%2' ."
+                                  "  ?photo nie:url '%2' ."
                                   "}",
                                   tag_->get_urn(), photo_->get_uri());
 }
@@ -64,8 +63,7 @@ PhotoTag::get_save_query() const throw()
                                   "  ?photo nao:hasTag <%1> ."
                                   "} "
                                   "WHERE {"
-                                  "  ?photo nie:isStoredAs ?data ."
-                                  "  ?data nie:url '%2' ."
+                                  "  ?photo nie:url '%2' ."
                                   "}",
                                   tag_->get_urn(), photo_->get_uri());
 }
diff --git a/src/common/photo.cpp b/src/common/photo.cpp
index 48c257f..04c69df 100644
--- a/src/common/photo.cpp
+++ b/src/common/photo.cpp
@@ -106,8 +106,7 @@ Photo::get_exif_data_query() const throw()
         "       ?white "
         "WHERE {"
         "  ?photo a nmm:Photo ;"
-        "  nie:isStoredAs ?data ."
-        "  ?data nie:url '%1' ."
+        "  nie:url '%1' ."
         "  OPTIONAL { ?photo nmm:camera ?camera . }"
         "  OPTIONAL { ?photo nmm:exposureTime ?exposure . }"
         "  OPTIONAL { ?photo nmm:flash ?flash . }"



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