From 6a749755545dfa24d219a109d9df430095bc2a6f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 10:43:00 -0500 Subject: Add support for terms with datatypes to SerdEnv --- serd/serd.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'serd') diff --git a/serd/serd.h b/serd/serd.h index b88cb8f8..9eb4dda2 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -717,6 +717,16 @@ serd_env_set_prefix_from_strings(SerdEnv* env, const uint8_t* name, const uint8_t* uri); +/** + Set a term. +*/ +SERD_API +SerdStatus +serd_env_set_term(SerdEnv* env, + const SerdNode* name, + const SerdNode* uri, + const SerdNode* datatype); + /** Qualify `uri` into a CURIE if possible. */ @@ -750,6 +760,17 @@ SerdNode serd_env_expand_node(const SerdEnv* env, const SerdNode* node); +/** + Expand `node`. +*/ +SERD_API +SerdStatus +serd_env_expand_term(const SerdEnv* env, + const SerdNode* term, + SerdChunk* uri_prefix, + SerdChunk* uri_suffix, + const SerdNode** datatype); + /** Call `func` for each prefix defined in `env`. */ -- cgit v1.2.1