aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/serd/serd.h')
-rw-r--r--include/serd/serd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 5d0f7290..cec77649 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -1177,6 +1177,20 @@ serd_statement_equals(const SerdStatement* SERD_NULLABLE a,
const SerdStatement* SERD_NULLABLE b);
/**
+ Return true iff the statement matches the given pattern.
+
+ Nodes match if they are equivalent, or if one of them is NULL. The
+ statement matches if every node matches.
+*/
+SERD_PURE_API
+bool
+serd_statement_matches(const SerdStatement* SERD_NONNULL statement,
+ const SerdNode* SERD_NULLABLE subject,
+ const SerdNode* SERD_NULLABLE predicate,
+ const SerdNode* SERD_NULLABLE object,
+ const SerdNode* SERD_NULLABLE graph);
+
+/**
@}
@defgroup serd_world World
@{