GoMySQLDatabaseDumper extends DatabaseDumper { public void dump() throws IOException, ReferentialIntegrityException { dumpGraphModule(); dumpMetaModule(); dumpAssociationModule(); dumpOptModule(); dumpDbxrefTable(); showStats(); cleanup(); } GoMySQLDatabaseDumper(OWLGraphWrapper g); void dump(); void dumpGraphModule(); void dumpTermTable(); void dumpTermSubsetTable(); void dumpTerm2TermTable(); void dumpMetaModule(); void dumpDbxrefTable(); void dumpOptModule(); void dumpGraphPathTable(); void dumpAssociationModule(); void dumpSpeciesTable(); void dumpSpeciesRow(PrintStream s, String taxId); void dumpAssociationTable(); void dumpAssociationRowsForGaf(PrintStream s, GafDocument gafdoc); void dumpGeneProductRowsForGaf(PrintStream s, GafDocument gafdoc);  }
@Test public void testDump() throws OWLOntologyCreationException, OBOFormatParserException, IOException, ReferentialIntegrityException { load(); GoMySQLDatabaseDumper dumper = new GoMySQLDatabaseDumper(g); dumper.setGafdocs(gafdocs); dumper.setTargetDirectory("target/godb"); dumper.dump(); dumper.reportProblems(); }
@Test public void testDumpLarge() throws OWLOntologyCreationException, OBOFormatParserException, IOException, ReferentialIntegrityException, URISyntaxException { ParserWrapper pw = new ParserWrapper(); g = pw.parseToOWLGraph(getResourceIRIString("mgi-go.obo")); g.addSupportOntology(pw.parseOBO(getResourceIRIString("taxon.obo"))); GafObjectsBuilder b = new GafObjectsBuilder(); GafDocument gafdoc = b.buildDocument("src/test/resources/gene-associations/gene_association.mgi.gz"); gafdocs.add( gafdoc ); GoMySQLDatabaseDumper dumper = new GoMySQLDatabaseDumper(g); dumper.setGafdocs(gafdocs); dumper.setTargetDirectory("target/godb3"); dumper.dump(); }