[tracker] libtracker-data: Add predicate variable test
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Add predicate variable test
- Date: Thu, 18 Mar 2010 13:50:09 +0000 (UTC)
commit 99e0162454d36abd014e3f4ee10e77949990d0e2
Author: Jürg Billeter <j bitron ch>
Date: Thu Mar 18 14:46:28 2010 +0100
libtracker-data: Add predicate variable test
tests/libtracker-data/basic/Makefile.am | 4 +++-
tests/libtracker-data/basic/predicate-variable.out | 2 ++
tests/libtracker-data/basic/predicate-variable.rq | 4 ++++
tests/libtracker-data/tracker-sparql-test.c | 1 +
4 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-data/basic/Makefile.am b/tests/libtracker-data/basic/Makefile.am
index bf3b5bd..cd7b1dc 100644
--- a/tests/libtracker-data/basic/Makefile.am
+++ b/tests/libtracker-data/basic/Makefile.am
@@ -4,5 +4,7 @@ EXTRA_DIST = \
base-prefix-3.out \
base-prefix-3.rq \
data-1.ontology \
- data-1.ttl
+ data-1.ttl \
+ predicate-variable.out \
+ predicate-variable.rq
diff --git a/tests/libtracker-data/basic/predicate-variable.out b/tests/libtracker-data/basic/predicate-variable.out
new file mode 100644
index 0000000..aa5651c
--- /dev/null
+++ b/tests/libtracker-data/basic/predicate-variable.out
@@ -0,0 +1,2 @@
+"http://example.org/ns#p" "d:x ns:p"
+"http://example.org/x/p" "x:x x:p"
diff --git a/tests/libtracker-data/basic/predicate-variable.rq b/tests/libtracker-data/basic/predicate-variable.rq
new file mode 100644
index 0000000..f1c25c4
--- /dev/null
+++ b/tests/libtracker-data/basic/predicate-variable.rq
@@ -0,0 +1,4 @@
+PREFIX ns: <http://example.org/ns#>
+PREFIX x: <http://example.org/x/>
+
+SELECT ?p ?v WHERE { x:x ?p ?v . ?p rdfs:domain x:A } ORDER BY ?p ?v
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 60d2b58..60beec0 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -56,6 +56,7 @@ const TestInfo tests[] = {
{ "algebra/var-scope-join-1", "algebra/var-scope-join-1", FALSE },
{ "anon/query", "anon/data", FALSE },
{ "basic/base-prefix-3", "basic/data-1", FALSE },
+ { "basic/predicate-variable", "basic/data-1", FALSE },
{ "bnode-coreference/query", "bnode-coreference/data", FALSE },
{ "bound/bound1", "bound/data", FALSE },
{ "datetime/delete-1", "datetime/data-3", FALSE },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]