diff options
author | Jürg Billeter <j@bitron.ch> | 2010-06-09 17:10:14 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-06-10 10:09:36 +0200 |
commit | cd1bb071209bd67d46edc25776b45a6dc5eb7518 (patch) | |
tree | 08d0fa142ada2ff3d36ef76a2b0228dbbe8253ce | |
parent | 68165f1d58421bd17fda5082c2599d7d2c32c5e2 (diff) | |
download | tracker-cd1bb071209bd67d46edc25776b45a6dc5eb7518.tar.gz |
libtracker-data: Add test for GRAPH in predicate variable queries
-rw-r--r-- | tests/libtracker-data/graph/Makefile.am | 4 | ||||
-rw-r--r-- | tests/libtracker-data/graph/graph-4.out | 3 | ||||
-rw-r--r-- | tests/libtracker-data/graph/graph-4.rq | 5 | ||||
-rw-r--r-- | tests/libtracker-data/tracker-sparql-test.c | 1 |
4 files changed, 12 insertions, 1 deletions
diff --git a/tests/libtracker-data/graph/Makefile.am b/tests/libtracker-data/graph/Makefile.am index 6486af985..453a5ca9e 100644 --- a/tests/libtracker-data/graph/Makefile.am +++ b/tests/libtracker-data/graph/Makefile.am @@ -12,4 +12,6 @@ EXTRA_DIST = \ graph-2.out \ graph-2.rq \ graph-3.out \ - graph-3.rq + graph-3.rq \ + graph-4.out \ + graph-4.rq diff --git a/tests/libtracker-data/graph/graph-4.out b/tests/libtracker-data/graph/graph-4.out new file mode 100644 index 000000000..27656c680 --- /dev/null +++ b/tests/libtracker-data/graph/graph-4.out @@ -0,0 +1,3 @@ +"http://example/graphA" "http://example/p" "42" +"http://example/graphA" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "http://example/A" +"http://example/graphA" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "http://www.w3.org/2000/01/rdf-schema#Resource" diff --git a/tests/libtracker-data/graph/graph-4.rq b/tests/libtracker-data/graph/graph-4.rq new file mode 100644 index 000000000..6e7248834 --- /dev/null +++ b/tests/libtracker-data/graph/graph-4.rq @@ -0,0 +1,5 @@ +SELECT ?g ?p ?v WHERE { + GRAPH ?g { + example:resource ?p ?v + } +} ORDER BY ?g ?p ?v diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c index 3e2d409ce..7fa055746 100644 --- a/tests/libtracker-data/tracker-sparql-test.c +++ b/tests/libtracker-data/tracker-sparql-test.c @@ -90,6 +90,7 @@ const TestInfo tests[] = { { "graph/graph-1", "graph/data-1", FALSE }, { "graph/graph-2", "graph/data-2", FALSE }, { "graph/graph-3", "graph/data-3", FALSE }, + { "graph/graph-4", "graph/data-3", FALSE }, { "optional/q-opt-complex-1", "optional/complex-data-1", FALSE }, { "regex/regex-query-001", "regex/regex-data-01", FALSE }, { "regex/regex-query-002", "regex/regex-data-01", FALSE }, |