final String content = (String) n.f0.accept(this, argu);
Literal literal = null;
final String[] parts = content.split(":");
if (parts[0].equals("")) {
if (baseNamespace == null)
throw new RIFException("Literal " + content
+ " requires Declaration of BASE!");
try {
literal = LiteralFactory.createURILiteralWithoutLazyLiteral("<" + baseNamespace
+ parts[1] + ">");
} catch (final URISyntaxException e) {
throw new RIFException(e.toString());
}
} else {
if (!prefixMap.containsKey(parts[0]))
throw new RIFException("Undeclared Prefix " + parts[0]);
try {
literal = LiteralFactory.createURILiteralWithoutLazyLiteral("<"
+ prefixMap.get(parts[0]) + parts[1] + ">");
} catch (final URISyntaxException e) {
throw new RIFException(e.toString());
}
}
return new Constant(literal, argu);
}