C Example - 10 LoC

  librdf_world_open(world=librdf_new_world());

  uri=librdf_new_uri(world, "http://planetrdf.com/index.rdf");
  storage=librdf_new_storage(world, "memory", NULL, NULL);
  model=librdf_new_model(world, storage, NULL);
  librdf_model_load(model, uri, "rdfxml", NULL, NULL);

  librdf_model_print(model, stdout);

  librdf_free_model(model);
  librdf_free_storage(storage);
  librdf_free_uri(uri);
  librdf_free_world(world);

example1.c