diff options
author | David Robillard <d@drobilla.net> | 2012-11-23 06:14:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-11-23 06:14:56 +0000 |
commit | d457446041b634e650d95539ad44f553c1eee6e1 (patch) | |
tree | 50a53592f935258a67116b258dda8a495b9df57f /src | |
parent | 897d87d03ff35a9b6846364cd1a1cbf6104db6f1 (diff) | |
download | lilv-d457446041b634e650d95539ad44f553c1eee6e1.tar.gz lilv-d457446041b634e650d95539ad44f553c1eee6e1.tar.bz2 lilv-d457446041b634e650d95539ad44f553c1eee6e1.zip |
Add lilv_world_ask() for simply checking if a statement exists.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4862 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/world.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c index 773a864..a3f59ed 100644 --- a/src/world.c +++ b/src/world.c @@ -219,6 +219,17 @@ lilv_world_ask_internal(LilvWorld* world, return sord_ask(world->model, subject, predicate, object, NULL); } +LILV_API +bool +lilv_world_ask(LilvWorld* world, + const LilvNode* subject, + const LilvNode* predicate, + const LilvNode* object) +{ + return sord_ask( + world->model, subject->node, predicate->node, object->node, NULL); +} + LilvNodes* lilv_world_find_nodes_internal(LilvWorld* world, const SordNode* subject, |