Changeset 2110

Show
Ignore:
Timestamp:
06/14/09 16:42:17 (15 months ago)
Author:
drobilla
Message:

Parse dynamic manifest with correct base URI.

Location:
trunk/slv2/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/slv2/src/plugin.c

    r2107 r2110  
    247247                        rewind(fd); 
    248248                        librdf_parser_parse_file_handle_into_model(p->world->parser, 
    249                                         fd, 0, slv2_value_as_librdf_uri(p->plugin_uri), p->rdf); 
     249                                        fd, 0, slv2_value_as_librdf_uri(p->bundle_uri), p->rdf); 
    250250                        fclose(fd); 
    251251                } 
  • trunk/slv2/src/world.c

    r2106 r2110  
    256256                rewind(fd); 
    257257                librdf_parser_parse_file_handle_into_model(world->parser, 
    258                                 fd, 0, librdf_node_get_uri(binary_node), dyn_manifest_model); 
     258                                fd, 0, bundle_uri->val.uri_val, dyn_manifest_model); 
    259259                fclose(fd); 
    260260 
     
    275275                                        (const unsigned char*)(SLV2_NS_RDFS "seeAlso")); 
    276276                        librdf_node* object = librdf_new_node_from_node(binary_node); 
    277                         librdf_model_add(dyn_manifest_model, plugin, predicate, object); 
     277                        librdf_model_add(manifest_model, plugin, predicate, object); 
    278278                } 
    279279                librdf_free_query_results(r); 
    280280                librdf_free_query(dyn_query); 
    281  
    282                 /*printf("*************************************************\n"); 
    283                 librdf_model_print(dyn_manifest_model, stdout); 
    284                 printf("*************************************************\n");*/ 
    285281 
    286282                // Merge dynamic model into main manifest model