@Test void testGetObjectLang() { final String lexicalForm = "A literal value"; final String lang = "en"; final Literal literal = rdf.createLiteral(lexicalForm, lang); assertEquals(lang, DBUtils.getObjectLang(literal)); assertNull(DBUtils.getObjectLang(rdf.createLiteral(lexicalForm))); assertNull(DBUtils.getObjectLang(rdf.createIRI("http: }
static String getObjectLang(final RDFTerm term) { if (term instanceof Literal) { return ((Literal) term).getLanguageTag().orElse(null); } return null; }
DBUtils { static String getObjectLang(final RDFTerm term) { if (term instanceof Literal) { return ((Literal) term).getLanguageTag().orElse(null); } return null; } }
DBUtils { static String getObjectLang(final RDFTerm term) { if (term instanceof Literal) { return ((Literal) term).getLanguageTag().orElse(null); } return null; } private  DBUtils(); }
DBUtils { static String getObjectLang(final RDFTerm term) { if (term instanceof Literal) { return ((Literal) term).getLanguageTag().orElse(null); } return null; } private  DBUtils();  }
DBUtils { static String getObjectLang(final RDFTerm term) { if (term instanceof Literal) { return ((Literal) term).getLanguageTag().orElse(null); } return null; } private  DBUtils();   }