From 842e254ee7446fe117fcfbd65ad23fc8b977c2ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Mar 2015 01:33:05 +0000 Subject: Fix lilv_world_ask() to work with wildcards. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5645 a436a847-0d15-0410-975c-d299462d15a1 --- NEWS | 3 ++- src/world.c | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 2ed7018..2d507b3 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ lilv (0.21.3) unstable; * Add lilv_state_emit_port_values() for special port value handling * Add lilv_state_get_uri() * Add lilv_state_delete() for deleting user saved presets + * Fix lilv_world_ask() to work with wildcards * Fix creation of duplicate manifest entries when saving state * Load discovered owl ontologies as specifications * Expose lilv_world_load_specifications() and @@ -17,7 +18,7 @@ lilv (0.21.3) unstable; * Windows fixes (thanks John Emmas) * Minor documentation improvements - -- David Robillard Mon, 16 Mar 2015 00:06:31 -0400 + -- David Robillard Mon, 16 Mar 2015 03:24:05 -0400 lilv (0.20.0) stable; diff --git a/src/world.c b/src/world.c index a25d810..02dbeec 100644 --- a/src/world.c +++ b/src/world.c @@ -235,8 +235,11 @@ lilv_world_ask(LilvWorld* world, const LilvNode* predicate, const LilvNode* object) { - return sord_ask( - world->model, subject->node, predicate->node, object->node, NULL); + return sord_ask(world->model, + subject ? subject->node : NULL, + predicate ? predicate->node : NULL, + object ? object->node : NULL, + NULL); } SordModel* -- cgit v1.2.1