summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-03-28 01:33:05 +0000
committerDavid Robillard <d@drobilla.net>2015-03-28 01:33:05 +0000
commit842e254ee7446fe117fcfbd65ad23fc8b977c2ca (patch)
tree90dd3d926cdddf7967f02fc2d4e31e08f6558b39
parent247f986d450cc628725630ed0354f18e40b4e18d (diff)
downloadlilv-842e254ee7446fe117fcfbd65ad23fc8b977c2ca.tar.gz
lilv-842e254ee7446fe117fcfbd65ad23fc8b977c2ca.tar.bz2
lilv-842e254ee7446fe117fcfbd65ad23fc8b977c2ca.zip
Fix lilv_world_ask() to work with wildcards.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5645 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--NEWS3
-rw-r--r--src/world.c7
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 <d@drobilla.net> Mon, 16 Mar 2015 00:06:31 -0400
+ -- David Robillard <d@drobilla.net> 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*