@@ -19,51 +19,6 @@ public function setUp()
19
19
$ this ->testPref = 'http://www.w3.org/2009/sparql/docs/tests/data-sparql11/drop/manifest# ' ;
20
20
}
21
21
22
- /**
23
- * @param string $graphUri
24
- * @todo Check that $graphUri is a valid URI
25
- * @todo port this functionality to ARC2_Store->query
26
- */
27
- protected function createGraph ($ graphUri )
28
- {
29
- // g2t table
30
- if (isset ($ this ->dbConfig ['db_table_prefix ' ])) {
31
- $ g2t = $ this ->dbConfig ['db_table_prefix ' ] . '_ ' ;
32
- } else {
33
- $ g2t = '' ;
34
- }
35
- if (isset ($ this ->dbConfig ['store_name ' ])) {
36
- $ g2t .= $ this ->dbConfig ['store_name ' ] . '_ ' ;
37
- }
38
- $ g2t .= 'g2t ' ;
39
-
40
- // id2val table
41
- if (isset ($ this ->dbConfig ['db_table_prefix ' ])) {
42
- $ id2val = $ this ->dbConfig ['db_table_prefix ' ] . '_ ' ;
43
- } else {
44
- $ id2val = '' ;
45
- }
46
- if (isset ($ this ->dbConfig ['store_name ' ])) {
47
- $ id2val .= $ this ->dbConfig ['store_name ' ] . '_ ' ;
48
- }
49
- $ id2val .= 'id2val ' ;
50
-
51
- /*
52
- * for id2val table
53
- */
54
- $ query = 'INSERT INTO ' . $ id2val .' (val) VALUES(" ' . $ graphUri .'") ' ;
55
- $ this ->store ->getDBObject ()->simpleQuery ($ query );
56
- $ usedId = $ this ->store ->getDBObject ()->getLastInsertId ();
57
-
58
- /*
59
- * for g2t table
60
- */
61
- $ newIdg2t = 1 + $ this ->getRowCount ($ g2t );
62
- $ query = 'INSERT INTO ' . $ g2t .' (t, g) VALUES( ' . $ newIdg2t .', ' . $ usedId .') ' ;
63
- $ this ->store ->getDBObject ()->simpleQuery ($ query );
64
- $ usedId = $ this ->store ->getDBObject ()->getLastInsertId ();
65
- }
66
-
67
22
/**
68
23
* Helper function to get test query for a given test.
69
24
*
@@ -100,9 +55,6 @@ public function test_delete_graph()
100
55
{
101
56
$ graphUri = 'http://example.org/g1 ' ;
102
57
103
- // create graph
104
- $ this ->createGraph ($ graphUri );
105
-
106
58
$ this ->store ->query ('INSERT INTO < ' .$ graphUri .'> {
107
59
<http://example.org/g1> <http://example.org/name> "G1" ;
108
60
<http://example.org/description> "Graph 1" .
0 commit comments