/** * Function * * registerDatabase() * * Check and setup okw_ontology, okw_object_property and okw_annotation_property exists in MediaWiki database. */ private function registerDatabase() { $sql = new SQLStore(wfGetDB(DB_MASTER)); if (!$sql->isSetUp()) { wfDebugLog('OntoKiWi', 'Database: setting up OntoKiWi MySQL tables'); $sql->setup(); } }