summaryrefslogtreecommitdiffstats
path: root/lilv
diff options
context:
space:
mode:
Diffstat (limited to 'lilv')
-rw-r--r--lilv/lilv.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lilv/lilv.h b/lilv/lilv.h
index 1d05883..52e3576 100644
--- a/lilv/lilv.h
+++ b/lilv/lilv.h
@@ -650,6 +650,23 @@ lilv_world_find_nodes(LilvWorld* world,
const LilvNode* object);
/**
+ Return true iff a statement matching a certain pattern exists.
+
+ This is useful for checking if particular statement exists without having to
+ bother with collections and memory management.
+
+ @param subject Subject of statement, or NULL for anything.
+ @param predicate Predicate (key) of statement, or NULL for anything.
+ @param object Object (value) of statement, or NULL for anything.
+*/
+LILV_API
+bool
+lilv_world_ask(LilvWorld* world,
+ const LilvNode* subject,
+ const LilvNode* predicate,
+ const LilvNode* object);
+
+/**
@}
@name Plugin
@{