return createTypedLiteral(str, XSDDatatype.XSDdouble, line, col) ;
case INTEGER:
return createTypedLiteral(str, XSDDatatype.XSDinteger, line, col) ;
case LITERAL_DT :
{
Token tokenDT = token.getSubToken2() ;
String uriStr ;
switch(tokenDT.getType())
{
case IRI: uriStr = tokenDT.getImage() ; break ;
case PREFIXED_NAME:
{
String prefix = tokenDT.getImage() ;
String suffix = tokenDT.getImage2() ;
uriStr = expandPrefixedName(prefix, suffix, tokenDT) ;
break ;
}
default:
throw new RiotException("Expected IRI for datatype: "+token) ;
}
uriStr = resolveIRI(uriStr, tokenDT.getLine(), tokenDT.getColumn()) ;
RDFDatatype dt = NodeFactory.getType(uriStr) ;
return createTypedLiteral(str, dt, line, col) ;
}
case LITERAL_LANG :