diff options
-rw-r--r-- | src/env.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -227,7 +227,18 @@ serd_env_expand_node(const SerdEnv* env, { switch (node->type) { case SERD_LITERAL: - break; + if (serd_node_datatype(node)) { + SerdNode* datatype = serd_env_expand_node( + env, serd_node_datatype(node)); + if (datatype) { + SerdNode* ret = serd_node_new_literal(serd_node_string(node), + datatype, + NULL); + serd_node_free(datatype); + return ret; + } + } + return NULL; case SERD_URI: return serd_node_new_resolved_uri_i( serd_node_string(node), &env->base_uri); |