From: Christian W. <cw...@cw...> - 2007-05-12 10:29:35
|
Richard, > SparqlDbTests > Table 'raptest.models' doesn't existTable 'raptest.models' doesn't exis= t > Fatal error: Call to a member function load() on a non-object in > /Users/richard/rap/htdocs/rap-cvs/test/unit/Sparql/SparqlDbTests_test.p= hp > on line 58 Sorry for the late answer - I've been on vacation for a week. The database tables don't exist. Use this script in test/ <?php echo "Table creation script\n"; require_once 'config.php'; require_once RDFAPI_INCLUDE_DIR . 'RdfAPI.php'; //create database tables echo " Trying to connect to database\n"; $database =3D ModelFactory::getDbStore( $GLOBALS['dbConf']['type'], $GLOBALS['dbConf']['host'], $GLOBALS['dbConf']['database'], $GLOBALS['dbConf']['user'], $GLOBALS['dbConf']['password'] ); echo " Checking if tables already exist.."; if ($database->isSetup($GLOBALS['dbConf']['type'])) { echo "yes\n"; } else { echo "no\n"; echo " Creating tables\n"; $database->createTables($GLOBALS['dbConf']['type']); } echo " done\n"; ?> --=20 Regards/Mit freundlichen Gr=FC=DFen Christian Weiske |