summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-11-07 06:35:31 +0000
committerDavid Robillard <d@drobilla.net>2010-11-07 06:35:31 +0000
commit2e52630e15faf3cfbf06583fa66c82dcd172627f (patch)
treea3862dafca2bcd8f92d5d701643723755f8ece9a /src/world.c
parent38416afb8e2d7fe432e0f8610a458e2429d17ece (diff)
downloadlilv-2e52630e15faf3cfbf06583fa66c82dcd172627f.tar.gz
lilv-2e52630e15faf3cfbf06583fa66c82dcd172627f.tar.bz2
lilv-2e52630e15faf3cfbf06583fa66c82dcd172627f.zip
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
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c4
1 files changed, 4 insertions, 0 deletions
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);