DBPediaLanguageString { public String language() { int lastIndexOf = languageString.lastIndexOf('@'); if (lastIndexOf > -1) { return languageString.substring(lastIndexOf); } return ""; } DBPediaLanguageString(String languageString);  DBPediaLanguageString(RDFNode rdfNode); String language(); String raw(); @Override String toString();  }
@Test public void canGetLanguage() { assertEquals("@en", new DBPediaLanguageString("test@en").language()); }
@Test public void canGetMissingLanguage() { assertEquals("", new DBPediaLanguageString("test").language()); }