diff options
Diffstat (limited to 'serd/serd.h')
-rw-r--r-- | serd/serd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h index 794fe285..78a1d0cf 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -1243,6 +1243,22 @@ SerdSink* serd_normaliser_new(const SerdSink* target, const SerdEnv* env); /** + Return a sink that filters out statements that do not match a pattern. + + The returned sink acts like `target` in all respects, except statements that + do not match the pattern are dropped. Only statements where each node is + either equivalent to the corresponding pattern node, or the pattern node is + null, will be passed through to the target sink. +*/ +SERD_API +SerdSink* +serd_filter_new(const SerdSink* target, + const SerdNode* subject, + const SerdNode* predicate, + const SerdNode* object, + const SerdNode* graph); + +/** @} @name Reader @{ |