summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-29 04:05:08 +0000
committerDavid Robillard <d@drobilla.net>2011-04-29 04:05:08 +0000
commit94e46eab73854967d643b47a7140c2bcbccc0425 (patch)
treeb871e9b406c34ce23651082c44d9058737c84309 /src/world.c
parent96e8b19074fd34896b3f6441bab391cdd5d3f1f3 (diff)
downloadlilv-94e46eab73854967d643b47a7140c2bcbccc0425.tar.gz
lilv-94e46eab73854967d643b47a7140c2bcbccc0425.tar.bz2
lilv-94e46eab73854967d643b47a7140c2bcbccc0425.zip
Move querying functions up to world level.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3232 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index 03570c0..4fba762 100644
--- a/src/world.c
+++ b/src/world.c
@@ -212,6 +212,26 @@ lilv_world_find_statements(LilvWorld* world,
return sord_find(model, pat);
}
+LilvMatches
+lilv_world_query(LilvWorld* world,
+ LilvNode subject,
+ LilvNode predicate,
+ LilvNode object)
+{
+ return lilv_world_find_statements(world, world->model,
+ subject, predicate, object, NULL);
+}
+
+LilvValues*
+lilv_world_query_values(LilvWorld* world,
+ LilvNode subject,
+ LilvNode predicate,
+ LilvNode object)
+{
+ return lilv_values_from_stream_objects(world,
+ lilv_world_query(world, subject, predicate, object));
+}
+
static SerdNode
lilv_new_uri_relative_to_base(const uint8_t* uri_str,
const uint8_t* base_uri_str)