From 8f84a055c88c2c271abe9cf86e998a3e5d0a4ced Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Jun 2018 12:49:44 +0200 Subject: Expand datatype of literal nodes in serd_env_expand_node --- include/serd/serd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/serd') diff --git a/include/serd/serd.h b/include/serd/serd.h index 375a8c5d..41ee9993 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -834,7 +834,11 @@ serd_env_expand(const SerdEnv* SERD_NONNULL env, SerdStringView* SERD_NONNULL uri_suffix); /** - Expand `node`, which must be a CURIE or URI, to a full URI. + Expand `node`, transforming CURIEs into URIs. + + If `node` is a relative URI reference, it is expanded to a full URI if + possible. If `node` is a literal, its datatype is expanded if necessary. + If `node` is a CURIE, it is expanded to a full URI if possible. Returns null if `node` can not be expanded. */ -- cgit v1.2.1