| Top |
| typedef | librdf_parser |
| typedef | librdf_parser_factory |
| #define | LIBRDF_PARSER_FEATURE_ERROR_COUNT |
| #define | LIBRDF_PARSER_FEATURE_WARNING_COUNT |
int librdf_parser_check_name (librdf_world *world,const char *name);
Check if a parser name is known
const raptor_syntax_description * librdf_parser_get_description (librdf_world *world,unsigned int counter);
Get parser descriptive syntax information
int librdf_parser_enumerate (librdf_world *world,const unsigned int counter,const char **name,const char **label);
librdf_parser_enumerate is deprecated and should not be used in newly-written code.
Get information on parsers.
Deprecated
: use librdf_parser_get_description() to return more information in a static structure.
const char * librdf_parser_guess_name (const char *mime_type,const unsigned char *buffer,const unsigned char *identifier);
librdf_parser_guess_name is deprecated and should not be used in newly-written code.
Get a parser name for content with type or identifier
const char * librdf_parser_guess_name2 (librdf_world *world,const char *mime_type,const unsigned char *buffer,const unsigned char *identifier);
Get a parser name for content with type or identifier
void librdf_parser_register_factory (librdf_world *world,const char *name,const char *label,const char *mime_type,const unsigned char *uri_string,void (*factory) (librdf_parser_factory*));
Register a parser factory .
librdf_parser * librdf_new_parser (librdf_world *world,const char *name,const char *mime_type,librdf_uri *type_uri);
Constructor - create a new librdf_parser object.
If all fields are NULL, this means any parser supporting MIME Type "application/rdf+xml"
librdf_parser * librdf_new_parser_from_factory (librdf_world *world,librdf_parser_factory *factory);
Constructor - create a new librdf_parser object.
void
librdf_free_parser (librdf_parser *parser);
Destructor - destroys a librdf_parser object.
librdf_stream * librdf_parser_parse_as_stream (librdf_parser *parser,librdf_uri *uri,librdf_uri *base_uri);
Parse a URI to a librdf_stream of statements.
int librdf_parser_parse_into_model (librdf_parser *parser,librdf_uri *uri,librdf_uri *base_uri,librdf_model *model);
Parse a URI of content into an librdf_model.
librdf_stream * librdf_parser_parse_file_handle_as_stream (librdf_parser *parser,FILE *fh,int close_fh,librdf_uri *base_uri);
Parse a FILE* handle of content to a librdf_stream of statements.
int librdf_parser_parse_file_handle_into_model (librdf_parser *parser,FILE *fh,int close_fh,librdf_uri *base_uri,librdf_model *model);
Parse a FILE* handle of content into an librdf_model.
librdf_stream * librdf_parser_parse_string_as_stream (librdf_parser *parser,const unsigned char *string,librdf_uri *base_uri);
Parse a string of content to a librdf_stream of statements.
int librdf_parser_parse_string_into_model (librdf_parser *parser,const unsigned char *string,librdf_uri *base_uri,librdf_model *model);
Parse a string of content into an librdf_model.
void librdf_parser_set_error (librdf_parser *parser,void *user_data,void (*error_fn) (void *user_data, const char *msg, ...));
librdf_parser_set_error is deprecated and should not be used in newly-written code.
Deprecated
: Does nothing
Set the parser error handling function.
void librdf_parser_set_warning (librdf_parser *parser,void *user_data,void (*warning_fn) (void *user_data, const char *msg, ...));
librdf_parser_set_warning is deprecated and should not be used in newly-written code.
Deprecated
: Does nothing.
Set the parser warning handling function.
librdf_stream * librdf_parser_parse_counted_string_as_stream (librdf_parser *parser,const unsigned char *string,size_t length,librdf_uri *base_uri);
Parse a counted string of content to a librdf_stream of statements.
int librdf_parser_parse_counted_string_into_model (librdf_parser *parser,const unsigned char *string,size_t length,librdf_uri *base_uri,librdf_model *model);
Parse a counted string of content into an librdf_model.
librdf_stream * librdf_parser_parse_iostream_as_stream (librdf_parser *parser,raptor_iostream *iostream,librdf_uri *base_uri);
Parse an iostream of content to a librdf_stream of statements.
int librdf_parser_parse_iostream_into_model (librdf_parser *parser,raptor_iostream *iostream,librdf_uri *base_uri,librdf_model *model);
Parse a iostream of content into an librdf_model.
librdf_node * librdf_parser_get_feature (librdf_parser *parser,librdf_uri *feature);
Get the value of a parser feature.
int librdf_parser_set_feature (librdf_parser *parser,librdf_uri *feature,librdf_node *value);
Set the value of a parser feature.
parser |
librdf_parser object |
|
feature |
librdf_uri feature property |
|
value |
librdf_node feature property value |
char *
librdf_parser_get_accept_header (librdf_parser *parser);
Get an HTTP Accept value for the parser.
The returned string must be freed by the caller using
librdf_free_memory().
int
librdf_parser_get_namespaces_seen_count
(librdf_parser *parser);
Get the number of namespaces seen during parsing
const char * librdf_parser_get_namespaces_seen_prefix (librdf_parser *parser,int offset);
Get the prefix of namespaces seen during parsing
librdf_uri * librdf_parser_get_namespaces_seen_uri (librdf_parser *parser,int offset);
Get the uri of namespaces seen during parsing
librdf_uri_filter_func librdf_parser_get_uri_filter (librdf_parser *parser,void **user_data_p);
Get the current URI filter function for retrieval during parsing.
void librdf_parser_set_uri_filter (librdf_parser *parser,librdf_uri_filter_func filter,void *user_data);
Set URI filter function for retrieval during parsing.
parser |
librdf_parser object |
|
filter |
URI filter function |
|
user_data |
User data to pass to filter function |
typedef struct librdf_parser_factory_s librdf_parser_factory;
Redland parser factory class.
#define LIBRDF_PARSER_FEATURE_ERROR_COUNT "http://feature.librdf.org/parser-error-count"
Parser feature URI string for getting the error count of the last parse.