summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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*