[tracker/parser] SPARQL: Fix type information for prefixed names
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/parser] SPARQL: Fix type information for prefixed names
- Date: Wed, 12 Aug 2009 12:49:20 +0000 (UTC)
commit 561d84c5f3d37e5a1d3cea43af5eb1ab1cc72e02
Author: Jürg Billeter <j bitron ch>
Date: Wed Aug 12 14:48:39 2009 +0200
SPARQL: Fix type information for prefixed names
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 bef39eb..01f9973 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -1225,14 +1225,14 @@ public class Tracker.SparqlQuery : Object {
var binding = new LiteralBinding ();
binding.literal = prefix_map.lookup (ns) + get_last_string ().substring (1);
bindings.append (binding);
- return DataType.BOOLEAN;
+ return DataType.RESOURCE;
case SparqlTokenType.COLON:
next ();
sql.append ("(SELECT ID FROM \"rdfs:Resource\" WHERE Uri = ?)");
var binding = new LiteralBinding ();
binding.literal = prefix_map.lookup ("") + get_last_string ().substring (1);
bindings.append (binding);
- return DataType.BOOLEAN;
+ return DataType.RESOURCE;
default:
throw new SparqlError.PARSE ("expected primary expression");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]