[tracker/class-signal: 51/61] Rename tracker:subject() to tracker:uri()



commit a5c06a86c583e13c2de3bbfd4d10a37f1f5714c8
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Aug 27 15:06:48 2010 +0200

    Rename tracker:subject() to tracker:uri()

 examples/class-signal/class-signal.c               |    2 +-
 src/libtracker-data/tracker-sparql-expression.vala |    2 +-
 src/miners/flickr/tracker-miner-flickr.vala        |    2 +-
 src/tracker-writeback/tracker-writeback-consumer.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/examples/class-signal/class-signal.c b/examples/class-signal/class-signal.c
index ed0cccb..34a3512 100644
--- a/examples/class-signal/class-signal.c
+++ b/examples/class-signal/class-signal.c
@@ -39,7 +39,7 @@ handle_statement (gint subject, gint predicate)
 	gchar *query, *pred;
 	TrackerSparqlCursor *cursor;
 
-	query = g_strdup_printf ("SELECT tracker:subject (%d) tracker:subject(%d) {}",
+	query = g_strdup_printf ("SELECT tracker:uri (%d) tracker:uri(%d) {}",
 	                         subject, predicate);
 	cursor = tracker_sparql_connection_query (con, query, NULL, NULL);
 	g_free (query);
diff --git a/src/libtracker-data/tracker-sparql-expression.vala b/src/libtracker-data/tracker-sparql-expression.vala
index 5ab9663..7b5a391 100644
--- a/src/libtracker-data/tracker-sparql-expression.vala
+++ b/src/libtracker-data/tracker-sparql-expression.vala
@@ -567,7 +567,7 @@ class Tracker.Sparql.Expression : Object {
 			}
 
 			return PropertyType.INTEGER;
-		} else if (uri == TRACKER_NS + "subject") {
+		} else if (uri == TRACKER_NS + "uri") {
 			
 			if (current () == SparqlTokenType.INTEGER) {
 				next ();
diff --git a/src/miners/flickr/tracker-miner-flickr.vala b/src/miners/flickr/tracker-miner-flickr.vala
index 59a6acc..a4ef408 100644
--- a/src/miners/flickr/tracker-miner-flickr.vala
+++ b/src/miners/flickr/tracker-miner-flickr.vala
@@ -496,7 +496,7 @@ public class MinerFlickr : Tracker.MinerWeb {
 
 		try {
 			var c = get_connection ();
-			cursor = yield c.query_async ("select tracker:subject (%d) {}".printf (id));
+			cursor = yield c.query_async ("select tracker:uri (%d) {}".printf (id));
 			return_if_fail (cursor.next () != true);
 			photo_urn = cursor.get_string (0);
 
diff --git a/src/tracker-writeback/tracker-writeback-consumer.c b/src/tracker-writeback/tracker-writeback-consumer.c
index 4d3f923..d141bff 100644
--- a/src/tracker-writeback/tracker-writeback-consumer.c
+++ b/src/tracker-writeback/tracker-writeback-consumer.c
@@ -281,7 +281,7 @@ rdf_types_to_uris_cb (GObject      *object,
 
 		g_object_unref (cursor);
 
-		query = g_strdup_printf ("SELECT tracker:subject (%d) {}", data->subject);
+		query = g_strdup_printf ("SELECT tracker:uri (%d) {}", data->subject);
 		cursor = tracker_sparql_connection_query (connection, query, NULL, NULL);
 		g_free (query);
 



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