diff options
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h index d108e120..009540b2 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -937,6 +937,64 @@ serd_env_foreach(const SerdEnv* env, /** @} + @name Sink + @{ +*/ + +/** + Set the base URI. + + Simple wrapper for the `SerdBaseSink` of `sink`. +*/ +SERD_API +SerdStatus +serd_sink_set_base(SerdSink* sink, const SerdNode* uri); + +/** + Set a namespace prefix. + + Simple wrapper for the `SerdPrefixSink` of `sink`. +*/ +SERD_API +SerdStatus +serd_sink_set_prefix(SerdSink* sink, const SerdNode* name, const SerdNode* uri); + +/** + Write a statement. + + Simple wrapper for the `SerdStatementSink` of `sink`. +*/ +SERD_API +SerdStatus +serd_sink_write_statement(SerdSink* sink, + SerdStatementFlags flags, + const SerdStatement* statement); + +/** + Write a statement from individual nodes. + + Simple wrapper for the `SerdStatementSink` of `sink`. +*/ +SERD_API +SerdStatus +serd_sink_write(SerdSink* sink, + SerdStatementFlags flags, + const SerdNode* subject, + const SerdNode* predicate, + const SerdNode* object, + const SerdNode* graph); + +/** + Mark the end of an anonymous node. + + Simple wrapper for the `SerdEndSink` of `sink`. +*/ +SERD_API +SerdStatus +serd_sink_end(SerdSink* sink, const SerdNode* node); + +/** + @} @name Reader @{ */ |