librdf_model_load

Name

librdf_model_load --  Load content from a URI into the model

Synopsis

int librdf_model_load (librdf_model* model, librdf_uri * uri, const char * name, const char * mime_type, librdf_uri * type_uri);

Arguments

model

librdf_model object

uri

the URI to read the content

name

the name of the parser (or NULL)

mime_type

the MIME type of the syntax (NULL if not used)

type_uri

URI identifying the syntax (NULL if not used)

Description

If the name field is NULL, the library will try to guess the parser to use from the uri, mime_type and type_uri fields. This is done via the raptor_guess_parser_name function.

Return value

non 0 on failure