为什么以下测试会产生错误?即使所有实际的 URI 都是绝对的,Redland的海龟解析器是否坚持使用基本 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);