summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugin.c2
-rw-r--r--src/world.c8
2 files changed, 3 insertions, 7 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 43b3f78..c384801 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -246,7 +246,7 @@ slv2_plugin_load(SLV2Plugin p)
get_data_func(handle, fd, slv2_value_as_string(p->plugin_uri));
rewind(fd);
librdf_parser_parse_file_handle_into_model(p->world->parser,
- fd, 0, slv2_value_as_librdf_uri(p->plugin_uri), p->rdf);
+ fd, 0, slv2_value_as_librdf_uri(p->bundle_uri), p->rdf);
fclose(fd);
}
diff --git a/src/world.c b/src/world.c
index 4d004d9..1844666 100644
--- a/src/world.c
+++ b/src/world.c
@@ -255,7 +255,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri)
get_subjects_func(handle, fd);
rewind(fd);
librdf_parser_parse_file_handle_into_model(world->parser,
- fd, 0, librdf_node_get_uri(binary_node), dyn_manifest_model);
+ fd, 0, bundle_uri->val.uri_val, dyn_manifest_model);
fclose(fd);
// Query plugins from dynamic manifest
@@ -274,15 +274,11 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri)
librdf_node* predicate = librdf_new_node_from_uri_string(world->world,
(const unsigned char*)(SLV2_NS_RDFS "seeAlso"));
librdf_node* object = librdf_new_node_from_node(binary_node);
- librdf_model_add(dyn_manifest_model, plugin, predicate, object);
+ librdf_model_add(manifest_model, plugin, predicate, object);
}
librdf_free_query_results(r);
librdf_free_query(dyn_query);
- /*printf("*************************************************\n");
- librdf_model_print(dyn_manifest_model, stdout);
- printf("*************************************************\n");*/
-
// Merge dynamic model into main manifest model
librdf_stream* dyn_manifest_stream = librdf_model_as_stream(dyn_manifest_model);
librdf_model_add_statements(manifest_model, dyn_manifest_stream);