[tracker/parser] SPARQL: Fix IRI literals in updates



commit 0525eb004a7565b3ca8577d8be5fd57de7ee3258
Author: Jürg Billeter <j bitron ch>
Date:   Mon Aug 10 11:13:41 2009 +0200

    SPARQL: Fix IRI literals in updates

 src/libtracker-data/tracker-sparql-query.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 659c4a9..ba2e5e0 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -1380,7 +1380,7 @@ public class Tracker.SparqlQuery : Object {
 			result = var_value_map.lookup (get_last_string ().substring (1));
 		} else if (current () == SparqlTokenType.IRI_REF) {
 			next ();
-			result = get_last_string ();
+			result = get_last_string (1);
 		} else if (current () == SparqlTokenType.PN_PREFIX) {
 			// prefixed name with namespace foo:bar
 			next ();
@@ -1445,7 +1445,7 @@ public class Tracker.SparqlQuery : Object {
 				current_predicate = var_value_map.lookup (get_last_string ().substring (1));
 			} else if (current () == SparqlTokenType.IRI_REF) {
 				next ();
-				current_predicate = get_last_string ();
+				current_predicate = get_last_string (1);
 			} else if (current () == SparqlTokenType.PN_PREFIX) {
 				next ();
 				string ns = get_last_string ();



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