{
String lang = stringOrNull(term, kXmlLang) ;
String dtStr = stringOrNull(term, kDatatype) ;
if ( lang != null && dtStr != null )
throw new ResultSetException("Both language and datatype defined: "+term) ;
RDFDatatype dt = TypeMapper.getInstance().getSafeTypeByName(dtStr) ;
return NodeFactory.createLiteral(v, lang, dt) ;
}
if ( kBnode.equals(type) )
return labelMap.get(null, v) ;