public class ExporterApp extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
LOGGER |
Modifier | Constructor and Description |
---|---|
protected |
ExporterApp(String dbConfig) |
Modifier and Type | Method and Description |
---|---|
protected void |
exportBiopax(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymeList,
String biopaxFile) |
protected void |
exportKegg(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymes,
String keggFile) |
protected void |
exportSitemap(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymeList,
Map<String,Object> descriptions,
String sitemapFile) |
protected void |
exportXML(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymeList,
Map<String,Object> descriptions,
String toDir)
Exports data in XML format.
|
protected void |
finalize() |
static Map<String,Object> |
getDescriptions(Connection con)
Builds a map of EC numbers (as String) to
EnzymeClass ,
EnzymeSubClass or EnzymeSubSubClass objects
from which to retrieve names and descriptions. |
protected List<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> |
getEnzymeList(String ecString)
Gets the list of enzymes to be exported.
|
static void |
main(String[] args)
Exports IntEnz data in the following formats:
XML (both flavours ASCII and XCHARS), using the
XmlExporter
class.
Site map XML file (sitemap.xml ) to be used in
Google
sitemaps to make every IntEnz entry available to Google
indexing. |
protected ExporterApp(String dbConfig) throws SQLException, IOException, uk.ac.ebi.intenz.domain.exceptions.DomainException
SQLException
IOException
uk.ac.ebi.intenz.domain.exceptions.DomainException
public static void main(String[] args) throws ClassNotFoundException, SQLException, uk.ac.ebi.rhea.mapper.MapperException, IOException, uk.ac.ebi.intenz.domain.exceptions.DomainException
XmlExporter
class.sitemap.xml
) to be used in
Google
sitemaps to make every IntEnz entry available to Google
indexing. Other search engines accept this standard too.args
- uk.ac.ebi.intenz.domain.exceptions.DomainException
IOException
SQLException
uk.ac.ebi.rhea.mapper.MapperException
ClassNotFoundException
protected void finalize() throws Throwable
protected List<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> getEnzymeList(String ecString) throws SQLException, uk.ac.ebi.rhea.mapper.MapperException, uk.ac.ebi.intenz.domain.exceptions.DomainException
ecString
- An EC number. If null
, every exportable
enzyme is included.SQLException
uk.ac.ebi.intenz.domain.exceptions.DomainException
uk.ac.ebi.rhea.mapper.MapperException
public static Map<String,Object> getDescriptions(Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
EnzymeClass
,
EnzymeSubClass
or EnzymeSubSubClass
objects
from which to retrieve names and descriptions.con
- a database connection.EnzymeClass
,
EnzymeSubClass
or EnzymeSubSubClass
objects.SQLException
uk.ac.ebi.intenz.domain.exceptions.DomainException
protected void exportXML(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymeList, Map<String,Object> descriptions, String toDir) throws Exception
enzymeList
- descriptions
- toDir
- destination directory for XML files.Exception
protected void exportSitemap(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymeList, Map<String,Object> descriptions, String sitemapFile) throws IOException, javax.xml.bind.JAXBException, SAXException
protected void exportBiopax(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymeList, String biopaxFile) throws IOException, IllegalAccessException, InvocationTargetException
protected void exportKegg(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymes, String keggFile) throws Exception
Exception
Copyright © 2014 EMBL-EBI. All rights reserved.