if (st.getObject() instanceof Resource) {
logger.trace("statement with resource value");
statementWithResourceValue(subjectString, st.getPredicate()
.stringValue(), objectString);
} else {
final Literal literalObject = (Literal) st.getObject();
String literalDatatype = null;
final String literalLanguage = literalObject.getLanguage();
// TODO: When updating to Sesame-2.8 with RDF-1.1 support, the
// following if condition will always be true
if (literalObject.getDatatype() != null) {
literalDatatype = literalObject.getDatatype().stringValue();
}
logger.trace("statement with literal value");
statementWithLiteralValue(subjectString, st.getPredicate()
.stringValue(), objectString, literalLanguage,
literalDatatype);