diff options
-rw-r--r-- | tests/libtracker-data/graph/graph-7.out | 2 | ||||
-rw-r--r-- | tests/libtracker-data/graph/graph-7.rq | 7 | ||||
-rw-r--r-- | tests/libtracker-data/tracker-sparql-test.c | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/tests/libtracker-data/graph/graph-7.out b/tests/libtracker-data/graph/graph-7.out new file mode 100644 index 000000000..b87869c39 --- /dev/null +++ b/tests/libtracker-data/graph/graph-7.out @@ -0,0 +1,2 @@ +"http://example/graphA" "http://example/resource" "73" +"http://example/graphB" "http://example/resource" "42" diff --git a/tests/libtracker-data/graph/graph-7.rq b/tests/libtracker-data/graph/graph-7.rq new file mode 100644 index 000000000..a72b4366e --- /dev/null +++ b/tests/libtracker-data/graph/graph-7.rq @@ -0,0 +1,7 @@ +SELECT ?g ?s ?v WHERE { + GRAPH ?g { + ?s a rdfs:Resource . + OPTIONAL { ?s example:p ?v } . + } +} +ORDER BY ?g ?s ?v
\ No newline at end of file diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c index 9552d0aa4..60475720b 100644 --- a/tests/libtracker-data/tracker-sparql-test.c +++ b/tests/libtracker-data/tracker-sparql-test.c @@ -162,6 +162,7 @@ const TestInfo tests[] = { { "graph/graph-4", "graph/data-3", FALSE }, { "graph/graph-5", "graph/data-4", FALSE }, { "graph/graph-6", "graph/data-5", FALSE }, + { "graph/graph-7", "graph/data-5", FALSE }, { "graph/non-existent-1", "graph/data-1", FALSE }, { "graph/non-existent-2", "graph/data-1", FALSE }, { "graph/non-existent-3", "graph/data-1", FALSE }, |