diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 10:43:00 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-05-25 11:15:50 +0200 |
commit | 6a749755545dfa24d219a109d9df430095bc2a6f (patch) | |
tree | 62ff071faf19d87ea65c884fb933f2eb97a462dc /serd | |
parent | 400cf91b9c41c9f1e921fec11fa0f1bf3d9ce4c7 (diff) | |
download | serd-6a749755545dfa24d219a109d9df430095bc2a6f.tar.gz serd-6a749755545dfa24d219a109d9df430095bc2a6f.tar.bz2 serd-6a749755545dfa24d219a109d9df430095bc2a6f.zip |
Add support for terms with datatypes to SerdEnv
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h index b88cb8f8..9eb4dda2 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -718,6 +718,16 @@ serd_env_set_prefix_from_strings(SerdEnv* env, 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. */ SERD_API @@ -751,6 +761,17 @@ 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`. */ SERD_API |