@Test public void test() { String[] args = new String[]{"-out", "/tmp", "1Y27"}; Pdb2Rdf.main(args); }
public static void main(String[] args) { Options options = createOptions(); CommandLineParser parser = createCliParser(); try { CommandLine cmd = parser.parse(options, args); if (cmd.hasOption("help")) { printUsage(); } Map<String, Double> stats = null; if (cmd.hasOption("stats")) { stats = new HashMap<String, Double>(); } if (cmd.hasOption("statsFromRDF")) { generateStatsFromRDF(cmd); } else if (cmd.hasOption("load")) { load(cmd, stats); } else if (cmd.hasOption("ontology")) { printOntology(); } else { printRdf(cmd, stats); } if (stats != null) { try { outputStats(cmd, stats); } catch (FileNotFoundException e) { LOG.warn("Unable to write statistics file", e); } } } catch (ParseException e) { LOG.fatal("Unable understand your command."); printUsage(); System.exit(1); } }
Pdb2Rdf { public static void main(String[] args) { Options options = createOptions(); CommandLineParser parser = createCliParser(); try { CommandLine cmd = parser.parse(options, args); if (cmd.hasOption("help")) { printUsage(); } Map<String, Double> stats = null; if (cmd.hasOption("stats")) { stats = new HashMap<String, Double>(); } if (cmd.hasOption("statsFromRDF")) { generateStatsFromRDF(cmd); } else if (cmd.hasOption("load")) { load(cmd, stats); } else if (cmd.hasOption("ontology")) { printOntology(); } else { printRdf(cmd, stats); } if (stats != null) { try { outputStats(cmd, stats); } catch (FileNotFoundException e) { LOG.warn("Unable to write statistics file", e); } } } catch (ParseException e) { LOG.fatal("Unable understand your command."); printUsage(); System.exit(1); } } }
Pdb2Rdf { public static void main(String[] args) { Options options = createOptions(); CommandLineParser parser = createCliParser(); try { CommandLine cmd = parser.parse(options, args); if (cmd.hasOption("help")) { printUsage(); } Map<String, Double> stats = null; if (cmd.hasOption("stats")) { stats = new HashMap<String, Double>(); } if (cmd.hasOption("statsFromRDF")) { generateStatsFromRDF(cmd); } else if (cmd.hasOption("load")) { load(cmd, stats); } else if (cmd.hasOption("ontology")) { printOntology(); } else { printRdf(cmd, stats); } if (stats != null) { try { outputStats(cmd, stats); } catch (FileNotFoundException e) { LOG.warn("Unable to write statistics file", e); } } } catch (ParseException e) { LOG.fatal("Unable understand your command."); printUsage(); System.exit(1); } }  }
Pdb2Rdf { public static void main(String[] args) { Options options = createOptions(); CommandLineParser parser = createCliParser(); try { CommandLine cmd = parser.parse(options, args); if (cmd.hasOption("help")) { printUsage(); } Map<String, Double> stats = null; if (cmd.hasOption("stats")) { stats = new HashMap<String, Double>(); } if (cmd.hasOption("statsFromRDF")) { generateStatsFromRDF(cmd); } else if (cmd.hasOption("load")) { load(cmd, stats); } else if (cmd.hasOption("ontology")) { printOntology(); } else { printRdf(cmd, stats); } if (stats != null) { try { outputStats(cmd, stats); } catch (FileNotFoundException e) { LOG.warn("Unable to write statistics file", e); } } } catch (ParseException e) { LOG.fatal("Unable understand your command."); printUsage(); System.exit(1); } }  static void main(String[] args); }
Pdb2Rdf { public static void main(String[] args) { Options options = createOptions(); CommandLineParser parser = createCliParser(); try { CommandLine cmd = parser.parse(options, args); if (cmd.hasOption("help")) { printUsage(); } Map<String, Double> stats = null; if (cmd.hasOption("stats")) { stats = new HashMap<String, Double>(); } if (cmd.hasOption("statsFromRDF")) { generateStatsFromRDF(cmd); } else if (cmd.hasOption("load")) { load(cmd, stats); } else if (cmd.hasOption("ontology")) { printOntology(); } else { printRdf(cmd, stats); } if (stats != null) { try { outputStats(cmd, stats); } catch (FileNotFoundException e) { LOG.warn("Unable to write statistics file", e); } } } catch (ParseException e) { LOG.fatal("Unable understand your command."); printUsage(); System.exit(1); } }  static void main(String[] args);  }