[solang] Fixed usage of nie:isStoredAs



commit 755ddb2f488296738637852b372321e3f719f17f
Author: Debarshi Ray <rishi gnu org>
Date:   Tue Dec 29 14:27:57 2009 +0200

    Fixed usage of nie:isStoredAs
    
    The rdfs:range of nie:isStoredAs is nie:DataObject. Follow:
    http://live.gnome.org/Tracker/Documentation/Examples/SPARQL/Tagging

 src/attribute/photo-tag.cpp |    3 ++-
 src/common/photo.cpp        |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/attribute/photo-tag.cpp b/src/attribute/photo-tag.cpp
index 4a822ed..53e5472 100644
--- a/src/attribute/photo-tag.cpp
+++ b/src/attribute/photo-tag.cpp
@@ -56,7 +56,8 @@ PhotoTag::get_save_query() const throw()
                                   "  ?photo nao:hasTag <%1> ."
                                   "} "
                                   "WHERE {"
-                                  "  ?photo nie:isStoredAs <%2> ."
+                                  "  ?photo nie:isStoredAs ?data ."
+                                  "  ?data nie:url '%2' ."
                                   "}",
                                   tag_->get_urn(), photo_->get_uri());
 }
diff --git a/src/common/photo.cpp b/src/common/photo.cpp
index 1bbabb0..3b26cdc 100644
--- a/src/common/photo.cpp
+++ b/src/common/photo.cpp
@@ -101,7 +101,8 @@ Photo::get_exif_data_query() const throw()
     return Glib::ustring::compose(
         "SELECT ?camera ?exposure ?fn ?focal ?iso ?metering "
         "WHERE {"
-        "  ?photo nie:isStoredAs '%1' ."
+        "  ?photo nie:isStoredAs ?data ."
+        "  ?data nie:url '%1' ."
         "  OPTIONAL { ?photo nmm:camera ?camera . }"
         "  OPTIONAL { ?photo nmm:exposureTime ?exposure . }"
         "  OPTIONAL { ?photo nmm:fnumber ?fn . }"



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