2

次のテストでエラーが発生するのはなぜですか? Redlandのタートル パーサーは、すべての実際の URI が絶対的であっても、ベース URI を主張しますか? ( Apache Jenaはそうではないようです。) また、実際に何が問題だったのか (つまり、どの API 呼び出しがエラーの説明などを返すのか) を調べるにはどうすればよいでしょうか?

librdf_world *world = librdf_new_world();
librdf_world_open(world);

librdf_storage *storage = librdf_new_storage(world, "memory", NULL, NULL);
librdf_model   *model   = librdf_new_model(world, storage, NULL);

librdf_parser* parser = librdf_new_parser(world, NULL, "text/turtle", NULL);

librdf_uri *baseUri = NULL;

const char *turtle = "<http://example.com/SomeSubject> <http://example.com/SomePredicate> <http://example.com/SomeObject> .";

int error = librdf_parser_parse_string_into_model(parser, (const unsigned char *)turtle, baseUri, model);
4

1 に答える 1