NCBI2OWL extends NCBIConverter { static List<String> splitDmpLine(String line) { List<String> list = new ArrayList<String>(); int start = 0; for (int i = 0; i < line.length(); i++) { char c= line.charAt(i); if ('|' == c) { String field = line.substring(start, i); field = field.trim(); final int length = field.length(); if (length == 0 || (length == 1 && Character.isWhitespace(field.charAt(0)))) { field = null; } list.add(field); start = i + 1; } } return list; }  static void main(String[] args); static void error(String msg); static OWLOntology convertToOWL(String inputPath, Map<String, String> uniqueNames); static OWLOntology convertToOWL(String inputPath,
			String outputPath,
			Map<String, String> uniqueNames); static OWLOntology convertToOWL(String inputPath,
			String outputPath, InputStream mergeInfo,
			InputStream citationInfo,
			Map<String, String> uniqueNames); static String[] parseLine(String line, int lineNumber); static void checkAxioms(String inputPath, String outputPath); static void printAxioms(OWLOntology ontology, String outputPath);  }
@Test public void testSplitDmpLine() { assertSplitDmpLine("", Collections.<String>emptyList()); assertSplitDmpLine("|", Collections.<String>singletonList(null)); assertSplitDmpLine("5658 | Leishmania | Leishmania <genus> | scientific name |", Arrays.asList("5658", "Leishmania", "Leishmania <genus>", "scientific name")); assertSplitDmpLine("5659 | Leishmania (Leishmania) amazonensis | | synonym |", Arrays.asList("5659", "Leishmania (Leishmania) amazonensis", null, "synonym")); }