[tracker/wip/carlosg/sparql1.1: 183/201] tests: Add a bunch of graph operation tests



commit 5d52d431f40772584c5543c4cd8c4755c387ffa5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Jul 20 19:26:36 2019 +0200

    tests: Add a bunch of graph operation tests
    
    These test graph semantics, and graph operations (CREATE, DROP, ADD,
    MOVE, COPY).

 tests/libtracker-data/graph/add-from-default.out   |  2 ++
 tests/libtracker-data/graph/add-from-default.rq    |  6 ++++
 .../graph/add-from-non-existent.out                |  1 +
 .../libtracker-data/graph/add-from-non-existent.rq |  5 ++++
 tests/libtracker-data/graph/add-into-self.out      |  1 +
 tests/libtracker-data/graph/add-into-self.rq       |  5 ++++
 tests/libtracker-data/graph/add-to-default.out     |  2 ++
 tests/libtracker-data/graph/add-to-default.rq      |  3 ++
 tests/libtracker-data/graph/add-to-existent.out    |  4 +++
 tests/libtracker-data/graph/add-to-existent.rq     |  6 ++++
 .../libtracker-data/graph/add-to-non-existent.out  |  2 ++
 tests/libtracker-data/graph/add-to-non-existent.rq |  5 ++++
 tests/libtracker-data/graph/add.out                |  3 ++
 tests/libtracker-data/graph/add.rq                 |  6 ++++
 tests/libtracker-data/graph/clear-all.out          |  0
 tests/libtracker-data/graph/clear-all.rq           |  4 +++
 tests/libtracker-data/graph/clear-default.out      |  2 ++
 tests/libtracker-data/graph/clear-default.rq       |  4 +++
 tests/libtracker-data/graph/clear-named.out        |  1 +
 tests/libtracker-data/graph/clear-named.rq         |  4 +++
 tests/libtracker-data/graph/clear-non-existent.out |  0
 tests/libtracker-data/graph/clear-non-existent.rq  |  5 ++++
 tests/libtracker-data/graph/clear.out              |  1 +
 tests/libtracker-data/graph/clear.rq               |  5 ++++
 tests/libtracker-data/graph/copy-from-default.out  |  1 +
 tests/libtracker-data/graph/copy-from-default.rq   |  5 ++++
 .../graph/copy-from-non-existent.out               |  1 +
 .../graph/copy-from-non-existent.rq                |  5 ++++
 tests/libtracker-data/graph/copy-into-self.out     |  1 +
 tests/libtracker-data/graph/copy-into-self.rq      |  5 ++++
 tests/libtracker-data/graph/copy-to-default.out    |  1 +
 tests/libtracker-data/graph/copy-to-default.rq     |  3 ++
 tests/libtracker-data/graph/copy-to-existent.out   |  2 ++
 tests/libtracker-data/graph/copy-to-existent.rq    |  6 ++++
 .../libtracker-data/graph/copy-to-non-existent.out |  2 ++
 .../libtracker-data/graph/copy-to-non-existent.rq  |  5 ++++
 tests/libtracker-data/graph/copy.out               |  2 ++
 tests/libtracker-data/graph/copy.rq                |  5 ++++
 tests/libtracker-data/graph/data-5.rq              | 10 +++++++
 .../libtracker-data/graph/data-add-from-default.rq | 10 +++++++
 .../graph/data-add-from-non-existent.rq            |  8 +++++
 tests/libtracker-data/graph/data-add-into-self.rq  |  8 +++++
 tests/libtracker-data/graph/data-add-to-default.rq | 10 +++++++
 .../libtracker-data/graph/data-add-to-existent.rq  | 14 +++++++++
 .../graph/data-add-to-non-existent.rq              |  8 +++++
 tests/libtracker-data/graph/data-add.rq            | 12 ++++++++
 tests/libtracker-data/graph/data-clear-all.rq      | 12 ++++++++
 tests/libtracker-data/graph/data-clear-default.rq  | 12 ++++++++
 tests/libtracker-data/graph/data-clear-named.rq    | 12 ++++++++
 .../graph/data-clear-non-existent.rq               |  1 +
 tests/libtracker-data/graph/data-clear.rq          | 12 ++++++++
 .../graph/data-copy-from-default.rq                | 10 +++++++
 .../graph/data-copy-from-non-existent.rq           |  8 +++++
 tests/libtracker-data/graph/data-copy-into-self.rq |  8 +++++
 .../libtracker-data/graph/data-copy-to-default.rq  | 10 +++++++
 .../libtracker-data/graph/data-copy-to-existent.rq | 14 +++++++++
 .../graph/data-copy-to-non-existent.rq             |  8 +++++
 tests/libtracker-data/graph/data-copy.rq           | 10 +++++++
 tests/libtracker-data/graph/data-drop-all.rq       | 12 ++++++++
 tests/libtracker-data/graph/data-drop-default.rq   | 12 ++++++++
 tests/libtracker-data/graph/data-drop-named.rq     | 12 ++++++++
 .../graph/data-drop-non-existent.rq                |  1 +
 tests/libtracker-data/graph/data-drop-silent.rq    |  1 +
 tests/libtracker-data/graph/data-drop.rq           | 12 ++++++++
 .../graph/data-move-from-default.rq                | 10 +++++++
 .../graph/data-move-from-non-existent.rq           |  8 +++++
 tests/libtracker-data/graph/data-move-into-self.rq |  8 +++++
 .../libtracker-data/graph/data-move-to-default.rq  | 10 +++++++
 .../libtracker-data/graph/data-move-to-existent.rq | 14 +++++++++
 tests/libtracker-data/graph/data-move.rq           |  8 +++++
 tests/libtracker-data/graph/drop-all.out           |  0
 tests/libtracker-data/graph/drop-all.rq            |  4 +++
 tests/libtracker-data/graph/drop-default.out       |  2 ++
 tests/libtracker-data/graph/drop-default.rq        |  4 +++
 tests/libtracker-data/graph/drop-named.out         |  1 +
 tests/libtracker-data/graph/drop-named.rq          |  4 +++
 tests/libtracker-data/graph/drop-non-existent.out  |  0
 tests/libtracker-data/graph/drop-non-existent.rq   |  5 ++++
 tests/libtracker-data/graph/drop-silent.out        |  0
 tests/libtracker-data/graph/drop-silent.rq         |  5 ++++
 tests/libtracker-data/graph/drop.out               |  1 +
 tests/libtracker-data/graph/drop.rq                |  5 ++++
 tests/libtracker-data/graph/graph-6.out            |  2 ++
 tests/libtracker-data/graph/graph-6.rq             |  6 ++++
 tests/libtracker-data/graph/move-from-default.out  |  1 +
 tests/libtracker-data/graph/move-from-default.rq   |  5 ++++
 .../graph/move-from-non-existent.out               |  1 +
 .../graph/move-from-non-existent.rq                |  5 ++++
 tests/libtracker-data/graph/move-into-self.out     |  1 +
 tests/libtracker-data/graph/move-into-self.rq      |  5 ++++
 tests/libtracker-data/graph/move-to-default.out    |  1 +
 tests/libtracker-data/graph/move-to-default.rq     |  3 ++
 tests/libtracker-data/graph/move-to-existent.out   |  1 +
 tests/libtracker-data/graph/move-to-existent.rq    |  6 ++++
 tests/libtracker-data/graph/move.out               |  1 +
 tests/libtracker-data/graph/move.rq                |  5 ++++
 tests/libtracker-data/graph/non-existent-1.out     |  0
 tests/libtracker-data/graph/non-existent-1.rq      |  5 ++++
 tests/libtracker-data/tracker-sparql-test.c        | 34 ++++++++++++++++++++++
 99 files changed, 539 insertions(+)
---
diff --git a/tests/libtracker-data/graph/add-from-default.out 
b/tests/libtracker-data/graph/add-from-default.out
new file mode 100644
index 000000000..16c7607fb
--- /dev/null
+++ b/tests/libtracker-data/graph/add-from-default.out
@@ -0,0 +1,2 @@
+"http://example/resource1";
+"http://example/resource2";
diff --git a/tests/libtracker-data/graph/add-from-default.rq b/tests/libtracker-data/graph/add-from-default.rq
new file mode 100644
index 000000000..1f600846a
--- /dev/null
+++ b/tests/libtracker-data/graph/add-from-default.rq
@@ -0,0 +1,6 @@
+SELECT ?s WHERE {
+       GRAPH example:graphA {
+               ?s example:p 42
+       }
+}
+ORDER BY ?s
diff --git a/tests/libtracker-data/graph/add-from-non-existent.out 
b/tests/libtracker-data/graph/add-from-non-existent.out
new file mode 100644
index 000000000..0476f7477
--- /dev/null
+++ b/tests/libtracker-data/graph/add-from-non-existent.out
@@ -0,0 +1 @@
+"http://example/graphA";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/add-from-non-existent.rq 
b/tests/libtracker-data/graph/add-from-non-existent.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/add-from-non-existent.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/add-into-self.out b/tests/libtracker-data/graph/add-into-self.out
new file mode 100644
index 000000000..0476f7477
--- /dev/null
+++ b/tests/libtracker-data/graph/add-into-self.out
@@ -0,0 +1 @@
+"http://example/graphA";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/add-into-self.rq b/tests/libtracker-data/graph/add-into-self.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/add-into-self.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/add-to-default.out b/tests/libtracker-data/graph/add-to-default.out
new file mode 100644
index 000000000..16c7607fb
--- /dev/null
+++ b/tests/libtracker-data/graph/add-to-default.out
@@ -0,0 +1,2 @@
+"http://example/resource1";
+"http://example/resource2";
diff --git a/tests/libtracker-data/graph/add-to-default.rq b/tests/libtracker-data/graph/add-to-default.rq
new file mode 100644
index 000000000..fcf167ee2
--- /dev/null
+++ b/tests/libtracker-data/graph/add-to-default.rq
@@ -0,0 +1,3 @@
+SELECT DISTINCT ?s WHERE {
+       ?s example:p 42
+}
diff --git a/tests/libtracker-data/graph/add-to-existent.out b/tests/libtracker-data/graph/add-to-existent.out
new file mode 100644
index 000000000..f7327c58b
--- /dev/null
+++ b/tests/libtracker-data/graph/add-to-existent.out
@@ -0,0 +1,4 @@
+"http://example/graphA";        "http://example/resource1";      "42"
+"http://example/graphB";        "http://example/resource1";      "42"
+"http://example/graphB";        "http://example/resource1";      "73"
+"http://example/graphB";        "http://example/resource2";      "113"
diff --git a/tests/libtracker-data/graph/add-to-existent.rq b/tests/libtracker-data/graph/add-to-existent.rq
new file mode 100644
index 000000000..cecd2ff71
--- /dev/null
+++ b/tests/libtracker-data/graph/add-to-existent.rq
@@ -0,0 +1,6 @@
+SELECT ?g ?s ?v WHERE {
+       GRAPH ?g {
+               ?s example:p ?v
+       }
+}
+ORDER BY ?g ?s ?v
diff --git a/tests/libtracker-data/graph/add-to-non-existent.out 
b/tests/libtracker-data/graph/add-to-non-existent.out
new file mode 100644
index 000000000..d9e765277
--- /dev/null
+++ b/tests/libtracker-data/graph/add-to-non-existent.out
@@ -0,0 +1,2 @@
+"http://example/graphA";        "http://example/resource";
+"http://example/graphB";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/add-to-non-existent.rq 
b/tests/libtracker-data/graph/add-to-non-existent.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/add-to-non-existent.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/add.out b/tests/libtracker-data/graph/add.out
new file mode 100644
index 000000000..99fcf8545
--- /dev/null
+++ b/tests/libtracker-data/graph/add.out
@@ -0,0 +1,3 @@
+"http://example/graphA";        "http://example/resource1";
+"http://example/graphB";        "http://example/resource1";
+"http://example/graphB";        "http://example/resource2";
diff --git a/tests/libtracker-data/graph/add.rq b/tests/libtracker-data/graph/add.rq
new file mode 100644
index 000000000..451dc9a1a
--- /dev/null
+++ b/tests/libtracker-data/graph/add.rq
@@ -0,0 +1,6 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
+ORDER BY ?g ?s
diff --git a/tests/libtracker-data/graph/clear-all.out b/tests/libtracker-data/graph/clear-all.out
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/libtracker-data/graph/clear-all.rq b/tests/libtracker-data/graph/clear-all.rq
new file mode 100644
index 000000000..4507ec3c0
--- /dev/null
+++ b/tests/libtracker-data/graph/clear-all.rq
@@ -0,0 +1,4 @@
+SELECT ?s WHERE {
+       ?s a example:A
+}
+ORDER BY ?s
diff --git a/tests/libtracker-data/graph/clear-default.out b/tests/libtracker-data/graph/clear-default.out
new file mode 100644
index 000000000..07170b538
--- /dev/null
+++ b/tests/libtracker-data/graph/clear-default.out
@@ -0,0 +1,2 @@
+"http://example/resource2";
+"http://example/resource3";
diff --git a/tests/libtracker-data/graph/clear-default.rq b/tests/libtracker-data/graph/clear-default.rq
new file mode 100644
index 000000000..4507ec3c0
--- /dev/null
+++ b/tests/libtracker-data/graph/clear-default.rq
@@ -0,0 +1,4 @@
+SELECT ?s WHERE {
+       ?s a example:A
+}
+ORDER BY ?s
diff --git a/tests/libtracker-data/graph/clear-named.out b/tests/libtracker-data/graph/clear-named.out
new file mode 100644
index 000000000..d24fcef0c
--- /dev/null
+++ b/tests/libtracker-data/graph/clear-named.out
@@ -0,0 +1 @@
+"http://example/resource1";
diff --git a/tests/libtracker-data/graph/clear-named.rq b/tests/libtracker-data/graph/clear-named.rq
new file mode 100644
index 000000000..4507ec3c0
--- /dev/null
+++ b/tests/libtracker-data/graph/clear-named.rq
@@ -0,0 +1,4 @@
+SELECT ?s WHERE {
+       ?s a example:A
+}
+ORDER BY ?s
diff --git a/tests/libtracker-data/graph/clear-non-existent.out 
b/tests/libtracker-data/graph/clear-non-existent.out
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/libtracker-data/graph/clear-non-existent.rq 
b/tests/libtracker-data/graph/clear-non-existent.rq
new file mode 100644
index 000000000..51cb7ce31
--- /dev/null
+++ b/tests/libtracker-data/graph/clear-non-existent.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s a example:A
+       }
+}
diff --git a/tests/libtracker-data/graph/clear.out b/tests/libtracker-data/graph/clear.out
new file mode 100644
index 000000000..cf0a28d0b
--- /dev/null
+++ b/tests/libtracker-data/graph/clear.out
@@ -0,0 +1 @@
+"http://example/graphB";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/clear.rq b/tests/libtracker-data/graph/clear.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/clear.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/copy-from-default.out 
b/tests/libtracker-data/graph/copy-from-default.out
new file mode 100644
index 000000000..d24fcef0c
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-from-default.out
@@ -0,0 +1 @@
+"http://example/resource1";
diff --git a/tests/libtracker-data/graph/copy-from-default.rq 
b/tests/libtracker-data/graph/copy-from-default.rq
new file mode 100644
index 000000000..22da1a1c8
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-from-default.rq
@@ -0,0 +1,5 @@
+SELECT ?s WHERE {
+       GRAPH example:graphA {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/copy-from-non-existent.out 
b/tests/libtracker-data/graph/copy-from-non-existent.out
new file mode 100644
index 000000000..0476f7477
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-from-non-existent.out
@@ -0,0 +1 @@
+"http://example/graphA";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/copy-from-non-existent.rq 
b/tests/libtracker-data/graph/copy-from-non-existent.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-from-non-existent.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/copy-into-self.out b/tests/libtracker-data/graph/copy-into-self.out
new file mode 100644
index 000000000..0476f7477
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-into-self.out
@@ -0,0 +1 @@
+"http://example/graphA";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/copy-into-self.rq b/tests/libtracker-data/graph/copy-into-self.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-into-self.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/copy-to-default.out b/tests/libtracker-data/graph/copy-to-default.out
new file mode 100644
index 000000000..e6ab2fcf6
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-to-default.out
@@ -0,0 +1 @@
+"http://example/resource2";
diff --git a/tests/libtracker-data/graph/copy-to-default.rq b/tests/libtracker-data/graph/copy-to-default.rq
new file mode 100644
index 000000000..fcf167ee2
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-to-default.rq
@@ -0,0 +1,3 @@
+SELECT DISTINCT ?s WHERE {
+       ?s example:p 42
+}
diff --git a/tests/libtracker-data/graph/copy-to-existent.out 
b/tests/libtracker-data/graph/copy-to-existent.out
new file mode 100644
index 000000000..73dde1d73
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-to-existent.out
@@ -0,0 +1,2 @@
+"http://example/graphA";        "http://example/resource1";      "42"
+"http://example/graphB";        "http://example/resource1";      "42"
diff --git a/tests/libtracker-data/graph/copy-to-existent.rq b/tests/libtracker-data/graph/copy-to-existent.rq
new file mode 100644
index 000000000..cecd2ff71
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-to-existent.rq
@@ -0,0 +1,6 @@
+SELECT ?g ?s ?v WHERE {
+       GRAPH ?g {
+               ?s example:p ?v
+       }
+}
+ORDER BY ?g ?s ?v
diff --git a/tests/libtracker-data/graph/copy-to-non-existent.out 
b/tests/libtracker-data/graph/copy-to-non-existent.out
new file mode 100644
index 000000000..d9e765277
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-to-non-existent.out
@@ -0,0 +1,2 @@
+"http://example/graphA";        "http://example/resource";
+"http://example/graphB";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/copy-to-non-existent.rq 
b/tests/libtracker-data/graph/copy-to-non-existent.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/copy-to-non-existent.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/copy.out b/tests/libtracker-data/graph/copy.out
new file mode 100644
index 000000000..d9e765277
--- /dev/null
+++ b/tests/libtracker-data/graph/copy.out
@@ -0,0 +1,2 @@
+"http://example/graphA";        "http://example/resource";
+"http://example/graphB";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/copy.rq b/tests/libtracker-data/graph/copy.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/copy.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/data-5.rq b/tests/libtracker-data/graph/data-5.rq
new file mode 100644
index 000000000..16395fedc
--- /dev/null
+++ b/tests/libtracker-data/graph/data-5.rq
@@ -0,0 +1,10 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 73
+       }
+       GRAPH example:graphB {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/data-add-from-default.rq 
b/tests/libtracker-data/graph/data-add-from-default.rq
new file mode 100644
index 000000000..eecd51d4d
--- /dev/null
+++ b/tests/libtracker-data/graph/data-add-from-default.rq
@@ -0,0 +1,10 @@
+INSERT {
+       example:resource1 a example:A ;
+               example:p 42 .
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+                       example:p 42
+       }
+}
+
+ADD DEFAULT TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-add-from-non-existent.rq 
b/tests/libtracker-data/graph/data-add-from-non-existent.rq
new file mode 100644
index 000000000..f13fb1bf5
--- /dev/null
+++ b/tests/libtracker-data/graph/data-add-from-non-existent.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+ADD SILENT GRAPH example:graphB TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-add-into-self.rq 
b/tests/libtracker-data/graph/data-add-into-self.rq
new file mode 100644
index 000000000..8876496db
--- /dev/null
+++ b/tests/libtracker-data/graph/data-add-into-self.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+ADD GRAPH example:graphA TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-add-to-default.rq 
b/tests/libtracker-data/graph/data-add-to-default.rq
new file mode 100644
index 000000000..22cd5b8ed
--- /dev/null
+++ b/tests/libtracker-data/graph/data-add-to-default.rq
@@ -0,0 +1,10 @@
+INSERT {
+       example:resource1 a example:A ;
+               example:p 42 .
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+                       example:p 42
+       }
+}
+
+ADD GRAPH example:graphA TO DEFAULT
diff --git a/tests/libtracker-data/graph/data-add-to-existent.rq 
b/tests/libtracker-data/graph/data-add-to-existent.rq
new file mode 100644
index 000000000..7f250e5dd
--- /dev/null
+++ b/tests/libtracker-data/graph/data-add-to-existent.rq
@@ -0,0 +1,14 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource1 a example:A ;
+                       example:p 42 .
+       }
+       GRAPH example:graphB {
+               example:resource1 a example:A ;
+                       example:p 73 .
+               example:resource2 a example:A ;
+                       example:p 113 .
+       }
+}
+
+ADD GRAPH example:graphA TO GRAPH example:graphB
diff --git a/tests/libtracker-data/graph/data-add-to-non-existent.rq 
b/tests/libtracker-data/graph/data-add-to-non-existent.rq
new file mode 100644
index 000000000..b8cbdd38f
--- /dev/null
+++ b/tests/libtracker-data/graph/data-add-to-non-existent.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+ADD GRAPH example:graphA TO GRAPH example:graphB
diff --git a/tests/libtracker-data/graph/data-add.rq b/tests/libtracker-data/graph/data-add.rq
new file mode 100644
index 000000000..f47dc9b01
--- /dev/null
+++ b/tests/libtracker-data/graph/data-add.rq
@@ -0,0 +1,12 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource1 a example:A ;
+                       example:p 42
+       }
+       GRAPH example:graphB {
+               example:resource2 a example:A ;
+                       example:p 42
+       }
+}
+
+ADD GRAPH example:graphA TO GRAPH example:graphB
diff --git a/tests/libtracker-data/graph/data-clear-all.rq b/tests/libtracker-data/graph/data-clear-all.rq
new file mode 100644
index 000000000..085cba46a
--- /dev/null
+++ b/tests/libtracker-data/graph/data-clear-all.rq
@@ -0,0 +1,12 @@
+INSERT {
+       example:resource1 a example:A ;
+
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+       }
+       GRAPH example:graphB {
+               example:resource3 a example:A ;
+       }
+}
+
+DROP ALL
diff --git a/tests/libtracker-data/graph/data-clear-default.rq 
b/tests/libtracker-data/graph/data-clear-default.rq
new file mode 100644
index 000000000..5a2eaf066
--- /dev/null
+++ b/tests/libtracker-data/graph/data-clear-default.rq
@@ -0,0 +1,12 @@
+INSERT {
+       example:resource1 a example:A ;
+
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+       }
+       GRAPH example:graphB {
+               example:resource3 a example:A ;
+       }
+}
+
+DROP DEFAULT
diff --git a/tests/libtracker-data/graph/data-clear-named.rq b/tests/libtracker-data/graph/data-clear-named.rq
new file mode 100644
index 000000000..1d63c5c8e
--- /dev/null
+++ b/tests/libtracker-data/graph/data-clear-named.rq
@@ -0,0 +1,12 @@
+INSERT {
+       example:resource1 a example:A ;
+
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+       }
+       GRAPH example:graphB {
+               example:resource3 a example:A ;
+       }
+}
+
+DROP NAMED
diff --git a/tests/libtracker-data/graph/data-clear-non-existent.rq 
b/tests/libtracker-data/graph/data-clear-non-existent.rq
new file mode 100644
index 000000000..ea6886671
--- /dev/null
+++ b/tests/libtracker-data/graph/data-clear-non-existent.rq
@@ -0,0 +1 @@
+CLEAR GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-clear.rq b/tests/libtracker-data/graph/data-clear.rq
new file mode 100644
index 000000000..1805daecb
--- /dev/null
+++ b/tests/libtracker-data/graph/data-clear.rq
@@ -0,0 +1,12 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+       GRAPH example:graphB {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+CLEAR GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-copy-from-default.rq 
b/tests/libtracker-data/graph/data-copy-from-default.rq
new file mode 100644
index 000000000..6efdacb25
--- /dev/null
+++ b/tests/libtracker-data/graph/data-copy-from-default.rq
@@ -0,0 +1,10 @@
+INSERT {
+       example:resource1 a example:A ;
+               example:p 42 .
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+                       example:p 42
+       }
+}
+
+COPY DEFAULT TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-copy-from-non-existent.rq 
b/tests/libtracker-data/graph/data-copy-from-non-existent.rq
new file mode 100644
index 000000000..d90fc8733
--- /dev/null
+++ b/tests/libtracker-data/graph/data-copy-from-non-existent.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+COPY SILENT GRAPH example:graphB TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-copy-into-self.rq 
b/tests/libtracker-data/graph/data-copy-into-self.rq
new file mode 100644
index 000000000..489b73f3f
--- /dev/null
+++ b/tests/libtracker-data/graph/data-copy-into-self.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+COPY GRAPH example:graphA TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-copy-to-default.rq 
b/tests/libtracker-data/graph/data-copy-to-default.rq
new file mode 100644
index 000000000..a6c5b06a5
--- /dev/null
+++ b/tests/libtracker-data/graph/data-copy-to-default.rq
@@ -0,0 +1,10 @@
+INSERT {
+       example:resource1 a example:A ;
+               example:p 42 .
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+                       example:p 42
+       }
+}
+
+COPY GRAPH example:graphA TO DEFAULT
diff --git a/tests/libtracker-data/graph/data-copy-to-existent.rq 
b/tests/libtracker-data/graph/data-copy-to-existent.rq
new file mode 100644
index 000000000..76dba86d7
--- /dev/null
+++ b/tests/libtracker-data/graph/data-copy-to-existent.rq
@@ -0,0 +1,14 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource1 a example:A ;
+                       example:p 42 .
+       }
+       GRAPH example:graphB {
+               example:resource1 a example:A ;
+                       example:p 73 .
+               example:resource2 a example:A ;
+                       example:p 113 .
+       }
+}
+
+COPY GRAPH example:graphA TO GRAPH example:graphB
diff --git a/tests/libtracker-data/graph/data-copy-to-non-existent.rq 
b/tests/libtracker-data/graph/data-copy-to-non-existent.rq
new file mode 100644
index 000000000..0de5029fa
--- /dev/null
+++ b/tests/libtracker-data/graph/data-copy-to-non-existent.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+COPY GRAPH example:graphA TO GRAPH example:graphB
diff --git a/tests/libtracker-data/graph/data-copy.rq b/tests/libtracker-data/graph/data-copy.rq
new file mode 100644
index 000000000..b5eb054b6
--- /dev/null
+++ b/tests/libtracker-data/graph/data-copy.rq
@@ -0,0 +1,10 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+CREATE GRAPH example:graphB
+
+COPY GRAPH example:graphA TO GRAPH example:graphB
diff --git a/tests/libtracker-data/graph/data-drop-all.rq b/tests/libtracker-data/graph/data-drop-all.rq
new file mode 100644
index 000000000..085cba46a
--- /dev/null
+++ b/tests/libtracker-data/graph/data-drop-all.rq
@@ -0,0 +1,12 @@
+INSERT {
+       example:resource1 a example:A ;
+
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+       }
+       GRAPH example:graphB {
+               example:resource3 a example:A ;
+       }
+}
+
+DROP ALL
diff --git a/tests/libtracker-data/graph/data-drop-default.rq 
b/tests/libtracker-data/graph/data-drop-default.rq
new file mode 100644
index 000000000..5a2eaf066
--- /dev/null
+++ b/tests/libtracker-data/graph/data-drop-default.rq
@@ -0,0 +1,12 @@
+INSERT {
+       example:resource1 a example:A ;
+
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+       }
+       GRAPH example:graphB {
+               example:resource3 a example:A ;
+       }
+}
+
+DROP DEFAULT
diff --git a/tests/libtracker-data/graph/data-drop-named.rq b/tests/libtracker-data/graph/data-drop-named.rq
new file mode 100644
index 000000000..1d63c5c8e
--- /dev/null
+++ b/tests/libtracker-data/graph/data-drop-named.rq
@@ -0,0 +1,12 @@
+INSERT {
+       example:resource1 a example:A ;
+
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+       }
+       GRAPH example:graphB {
+               example:resource3 a example:A ;
+       }
+}
+
+DROP NAMED
diff --git a/tests/libtracker-data/graph/data-drop-non-existent.rq 
b/tests/libtracker-data/graph/data-drop-non-existent.rq
new file mode 100644
index 000000000..a8132492e
--- /dev/null
+++ b/tests/libtracker-data/graph/data-drop-non-existent.rq
@@ -0,0 +1 @@
+DROP GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-drop-silent.rq b/tests/libtracker-data/graph/data-drop-silent.rq
new file mode 100644
index 000000000..9048a2831
--- /dev/null
+++ b/tests/libtracker-data/graph/data-drop-silent.rq
@@ -0,0 +1 @@
+DROP SILENT GRAPH example:graphA
\ No newline at end of file
diff --git a/tests/libtracker-data/graph/data-drop.rq b/tests/libtracker-data/graph/data-drop.rq
new file mode 100644
index 000000000..e79d18291
--- /dev/null
+++ b/tests/libtracker-data/graph/data-drop.rq
@@ -0,0 +1,12 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+       GRAPH example:graphB {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+DROP GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-move-from-default.rq 
b/tests/libtracker-data/graph/data-move-from-default.rq
new file mode 100644
index 000000000..4a9c2783e
--- /dev/null
+++ b/tests/libtracker-data/graph/data-move-from-default.rq
@@ -0,0 +1,10 @@
+INSERT {
+       example:resource1 a example:A ;
+               example:p 42 .
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+                       example:p 42
+       }
+}
+
+MOVE DEFAULT TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-move-from-non-existent.rq 
b/tests/libtracker-data/graph/data-move-from-non-existent.rq
new file mode 100644
index 000000000..e17562ed5
--- /dev/null
+++ b/tests/libtracker-data/graph/data-move-from-non-existent.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+MOVE SILENT GRAPH example:graphB TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-move-into-self.rq 
b/tests/libtracker-data/graph/data-move-into-self.rq
new file mode 100644
index 000000000..3aca55b25
--- /dev/null
+++ b/tests/libtracker-data/graph/data-move-into-self.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+MOVE GRAPH example:graphA TO GRAPH example:graphA
diff --git a/tests/libtracker-data/graph/data-move-to-default.rq 
b/tests/libtracker-data/graph/data-move-to-default.rq
new file mode 100644
index 000000000..4fe0fc0e9
--- /dev/null
+++ b/tests/libtracker-data/graph/data-move-to-default.rq
@@ -0,0 +1,10 @@
+INSERT {
+       example:resource1 a example:A ;
+               example:p 42 .
+       GRAPH example:graphA {
+               example:resource2 a example:A ;
+                       example:p 42
+       }
+}
+
+MOVE GRAPH example:graphA TO DEFAULT
diff --git a/tests/libtracker-data/graph/data-move-to-existent.rq 
b/tests/libtracker-data/graph/data-move-to-existent.rq
new file mode 100644
index 000000000..af9ee6a7c
--- /dev/null
+++ b/tests/libtracker-data/graph/data-move-to-existent.rq
@@ -0,0 +1,14 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource1 a example:A ;
+                       example:p 42 .
+       }
+       GRAPH example:graphB {
+               example:resource1 a example:A ;
+                       example:p 73 .
+               example:resource2 a example:A ;
+                       example:p 113 .
+       }
+}
+
+MOVE GRAPH example:graphA TO GRAPH example:graphB
diff --git a/tests/libtracker-data/graph/data-move.rq b/tests/libtracker-data/graph/data-move.rq
new file mode 100644
index 000000000..7e628ba5e
--- /dev/null
+++ b/tests/libtracker-data/graph/data-move.rq
@@ -0,0 +1,8 @@
+INSERT {
+       GRAPH example:graphA {
+               example:resource a example:A ;
+                       example:p 42
+       }
+}
+
+MOVE GRAPH example:graphA TO GRAPH example:graphB
diff --git a/tests/libtracker-data/graph/drop-all.out b/tests/libtracker-data/graph/drop-all.out
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/libtracker-data/graph/drop-all.rq b/tests/libtracker-data/graph/drop-all.rq
new file mode 100644
index 000000000..4507ec3c0
--- /dev/null
+++ b/tests/libtracker-data/graph/drop-all.rq
@@ -0,0 +1,4 @@
+SELECT ?s WHERE {
+       ?s a example:A
+}
+ORDER BY ?s
diff --git a/tests/libtracker-data/graph/drop-default.out b/tests/libtracker-data/graph/drop-default.out
new file mode 100644
index 000000000..07170b538
--- /dev/null
+++ b/tests/libtracker-data/graph/drop-default.out
@@ -0,0 +1,2 @@
+"http://example/resource2";
+"http://example/resource3";
diff --git a/tests/libtracker-data/graph/drop-default.rq b/tests/libtracker-data/graph/drop-default.rq
new file mode 100644
index 000000000..4507ec3c0
--- /dev/null
+++ b/tests/libtracker-data/graph/drop-default.rq
@@ -0,0 +1,4 @@
+SELECT ?s WHERE {
+       ?s a example:A
+}
+ORDER BY ?s
diff --git a/tests/libtracker-data/graph/drop-named.out b/tests/libtracker-data/graph/drop-named.out
new file mode 100644
index 000000000..d24fcef0c
--- /dev/null
+++ b/tests/libtracker-data/graph/drop-named.out
@@ -0,0 +1 @@
+"http://example/resource1";
diff --git a/tests/libtracker-data/graph/drop-named.rq b/tests/libtracker-data/graph/drop-named.rq
new file mode 100644
index 000000000..4507ec3c0
--- /dev/null
+++ b/tests/libtracker-data/graph/drop-named.rq
@@ -0,0 +1,4 @@
+SELECT ?s WHERE {
+       ?s a example:A
+}
+ORDER BY ?s
diff --git a/tests/libtracker-data/graph/drop-non-existent.out 
b/tests/libtracker-data/graph/drop-non-existent.out
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/libtracker-data/graph/drop-non-existent.rq 
b/tests/libtracker-data/graph/drop-non-existent.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/drop-non-existent.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/drop-silent.out b/tests/libtracker-data/graph/drop-silent.out
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/libtracker-data/graph/drop-silent.rq b/tests/libtracker-data/graph/drop-silent.rq
new file mode 100644
index 000000000..18dfd8ad5
--- /dev/null
+++ b/tests/libtracker-data/graph/drop-silent.rq
@@ -0,0 +1,5 @@
+SELECT * {
+  GRAPH example:graphA {
+    ?s ?p ?u
+  }
+}
diff --git a/tests/libtracker-data/graph/drop.out b/tests/libtracker-data/graph/drop.out
new file mode 100644
index 000000000..cf0a28d0b
--- /dev/null
+++ b/tests/libtracker-data/graph/drop.out
@@ -0,0 +1 @@
+"http://example/graphB";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/drop.rq b/tests/libtracker-data/graph/drop.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/drop.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/graph-6.out b/tests/libtracker-data/graph/graph-6.out
new file mode 100644
index 000000000..b87869c39
--- /dev/null
+++ b/tests/libtracker-data/graph/graph-6.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-6.rq b/tests/libtracker-data/graph/graph-6.rq
new file mode 100644
index 000000000..f0905b6e1
--- /dev/null
+++ b/tests/libtracker-data/graph/graph-6.rq
@@ -0,0 +1,6 @@
+SELECT ?g ?s ?v WHERE {
+       GRAPH ?g {
+               ?s example:p ?v
+       }
+}
+ORDER BY ?g ?s ?v
\ No newline at end of file
diff --git a/tests/libtracker-data/graph/move-from-default.out 
b/tests/libtracker-data/graph/move-from-default.out
new file mode 100644
index 000000000..d24fcef0c
--- /dev/null
+++ b/tests/libtracker-data/graph/move-from-default.out
@@ -0,0 +1 @@
+"http://example/resource1";
diff --git a/tests/libtracker-data/graph/move-from-default.rq 
b/tests/libtracker-data/graph/move-from-default.rq
new file mode 100644
index 000000000..22da1a1c8
--- /dev/null
+++ b/tests/libtracker-data/graph/move-from-default.rq
@@ -0,0 +1,5 @@
+SELECT ?s WHERE {
+       GRAPH example:graphA {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/move-from-non-existent.out 
b/tests/libtracker-data/graph/move-from-non-existent.out
new file mode 100644
index 000000000..0476f7477
--- /dev/null
+++ b/tests/libtracker-data/graph/move-from-non-existent.out
@@ -0,0 +1 @@
+"http://example/graphA";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/move-from-non-existent.rq 
b/tests/libtracker-data/graph/move-from-non-existent.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/move-from-non-existent.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/move-into-self.out b/tests/libtracker-data/graph/move-into-self.out
new file mode 100644
index 000000000..0476f7477
--- /dev/null
+++ b/tests/libtracker-data/graph/move-into-self.out
@@ -0,0 +1 @@
+"http://example/graphA";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/move-into-self.rq b/tests/libtracker-data/graph/move-into-self.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/move-into-self.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/move-to-default.out b/tests/libtracker-data/graph/move-to-default.out
new file mode 100644
index 000000000..e6ab2fcf6
--- /dev/null
+++ b/tests/libtracker-data/graph/move-to-default.out
@@ -0,0 +1 @@
+"http://example/resource2";
diff --git a/tests/libtracker-data/graph/move-to-default.rq b/tests/libtracker-data/graph/move-to-default.rq
new file mode 100644
index 000000000..fcf167ee2
--- /dev/null
+++ b/tests/libtracker-data/graph/move-to-default.rq
@@ -0,0 +1,3 @@
+SELECT DISTINCT ?s WHERE {
+       ?s example:p 42
+}
diff --git a/tests/libtracker-data/graph/move-to-existent.out 
b/tests/libtracker-data/graph/move-to-existent.out
new file mode 100644
index 000000000..194f1e218
--- /dev/null
+++ b/tests/libtracker-data/graph/move-to-existent.out
@@ -0,0 +1 @@
+"http://example/graphB";        "http://example/resource1";      "42"
diff --git a/tests/libtracker-data/graph/move-to-existent.rq b/tests/libtracker-data/graph/move-to-existent.rq
new file mode 100644
index 000000000..cecd2ff71
--- /dev/null
+++ b/tests/libtracker-data/graph/move-to-existent.rq
@@ -0,0 +1,6 @@
+SELECT ?g ?s ?v WHERE {
+       GRAPH ?g {
+               ?s example:p ?v
+       }
+}
+ORDER BY ?g ?s ?v
diff --git a/tests/libtracker-data/graph/move.out b/tests/libtracker-data/graph/move.out
new file mode 100644
index 000000000..cf0a28d0b
--- /dev/null
+++ b/tests/libtracker-data/graph/move.out
@@ -0,0 +1 @@
+"http://example/graphB";        "http://example/resource";
diff --git a/tests/libtracker-data/graph/move.rq b/tests/libtracker-data/graph/move.rq
new file mode 100644
index 000000000..b2464d25a
--- /dev/null
+++ b/tests/libtracker-data/graph/move.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?s WHERE {
+       GRAPH ?g {
+               ?s example:p 42
+       }
+}
diff --git a/tests/libtracker-data/graph/non-existent-1.out b/tests/libtracker-data/graph/non-existent-1.out
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/libtracker-data/graph/non-existent-1.rq b/tests/libtracker-data/graph/non-existent-1.rq
new file mode 100644
index 000000000..03d891030
--- /dev/null
+++ b/tests/libtracker-data/graph/non-existent-1.rq
@@ -0,0 +1,5 @@
+SELECT * {
+  GRAPH <non-existent> {
+    ?s ?p ?u
+  }
+}
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 69dcbeeb3..2cf6cad09 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -113,11 +113,45 @@ const TestInfo tests[] = {
        { "functions/functions-xpath-13", "functions/data-4", FALSE },
        { "functions/functions-xpath-14", "functions/data-4", FALSE },
        { "functions/functions-coalesce-1", "functions/data-1", FALSE },
+       /* Graph semantics and operations */
        { "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 },
        { "graph/graph-5", "graph/data-4", FALSE },
+       { "graph/graph-6", "graph/data-5", FALSE },
+       { "graph/non-existent-1",  "graph/data-1", FALSE },
+       { "graph/drop", "graph/data-drop", FALSE },
+       { "graph/drop-non-existent", "graph/data-drop-non-existent", FALSE, TRUE },
+       { "graph/drop-default", "graph/data-drop-default", FALSE },
+       { "graph/drop-named", "graph/data-drop-named", FALSE },
+       { "graph/drop-all", "graph/data-drop-all", FALSE },
+       { "graph/drop-silent", "graph/data-drop-silent", FALSE },
+       { "graph/clear", "graph/data-clear", FALSE },
+       { "graph/clear-non-existent", "graph/data-clear-non-existent", FALSE, TRUE },
+       { "graph/clear-default", "graph/data-clear-default", FALSE },
+       { "graph/clear-named", "graph/data-clear-named", FALSE },
+       { "graph/clear-all", "graph/data-clear-all", FALSE },
+       { "graph/copy", "graph/data-copy", FALSE },
+       { "graph/copy-to-existent", "graph/data-copy-to-existent", FALSE },
+       { "graph/copy-to-non-existent", "graph/data-copy-to-non-existent", FALSE },
+       { "graph/copy-from-non-existent", "graph/data-copy-from-non-existent", FALSE },
+       { "graph/copy-into-self", "graph/data-copy-into-self", FALSE },
+       { "graph/copy-from-default", "graph/data-copy-from-default", FALSE },
+       { "graph/copy-to-default", "graph/data-copy-to-default", FALSE },
+       { "graph/move", "graph/data-move", FALSE },
+       { "graph/move-to-existent", "graph/data-move-to-existent", FALSE },
+       { "graph/move-from-non-existent", "graph/data-move-from-non-existent", FALSE },
+       { "graph/move-into-self", "graph/data-move-into-self", FALSE },
+       { "graph/move-from-default", "graph/data-move-from-default", FALSE },
+       { "graph/move-to-default", "graph/data-move-to-default", FALSE },
+       { "graph/add", "graph/data-add", FALSE },
+       { "graph/add-to-existent", "graph/data-add-to-existent", FALSE },
+       { "graph/add-to-non-existent", "graph/data-add-to-non-existent", FALSE },
+       { "graph/add-from-non-existent", "graph/data-add-from-non-existent", FALSE },
+       { "graph/add-into-self", "graph/data-add-into-self", FALSE },
+       { "graph/add-from-default", "graph/data-add-from-default", FALSE },
+       { "graph/add-to-default", "graph/data-add-to-default", FALSE },
        { "optional/q-opt-complex-1", "optional/complex-data-1", FALSE },
        { "optional/simple-optional-triple", "optional/simple-optional-triple", FALSE },
        { "regex/regex-query-001", "regex/regex-data-01", FALSE },



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