From 2e52630e15faf3cfbf06583fa66c82dcd172627f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 7 Nov 2010 06:35:31 +0000 Subject: Use librdf_model_find_statements instead of SPARQL for (most) simple 1-variable queries. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2667 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index 130dc94..b54ce65 100644 --- a/src/world.c +++ b/src/world.c @@ -61,6 +61,9 @@ slv2_world_new_internal(SLV2World world) world->lv2_plugin_node = librdf_new_node_from_uri_string(world->world, (const unsigned char*)"http://lv2plug.in/ns/lv2core#Plugin"); + world->lv2_binary_node = librdf_new_node_from_uri_string(world->world, + (const unsigned char*)"http://lv2plug.in/ns/lv2core#binary"); + world->rdf_a_node = librdf_new_node_from_uri_string(world->world, (const unsigned char*)"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"); @@ -144,6 +147,7 @@ slv2_world_free(SLV2World world) librdf_free_node(world->lv2_specification_node); librdf_free_node(world->lv2_plugin_node); + librdf_free_node(world->lv2_binary_node); librdf_free_node(world->rdf_a_node); librdf_free_node(world->xsd_integer_node); librdf_free_node(world->xsd_decimal_node); -- cgit v1.2.1