TermUtils { public static List<String> splitIntoTwo(String term) { return splitIntoTwo(term, true); }  static Set<String> getRelevantSchemaTerms(String schemaFile, Set<SchemaURIType> relevantUris); static List<String> split(String term); static List<String> splitIntoTwo(String term); static List<String> splitIntoTwo(String term, boolean hasProtocol); static List<String> splitIntoTwo(String term, boolean hasProtocol, int splitLocation); static boolean equals(String a, String b); static final String HTTP; static final String HTTPS; static final char URI_SEP; static final String URI_SEP_STR; static final Set<SchemaURIType> RDFS_TBOX; }
@Test public void testSplitIntoTwo() { for(String key: URIS.keySet()) { List<String> parts = TermUtils.splitIntoTwo(key, true); System.out.println(key); for(String part: parts) { System.out.print(part + " -------- "); } System.out.println('\n'); } }
@Test public void testSplitIntoTwoFirstSlash() { System.out.println('\n'); for(String key: URIS.keySet()) { System.out.println("\n--------------------------------\n"+key); List<String> parts = TermUtils.splitIntoTwo(key, true, 0); for(String part: parts) { System.out.print(part + " "); } } }
@Test public void testSplitIntoTwoSecondSlash() { System.out.println('\n'); for(String key: URIS.keySet()) { System.out.println("\n--------------------------------\n"+key); List<String> parts = TermUtils.splitIntoTwo(key, true, 1); for(String part: parts) { System.out.print(part + " "); } } }