raptor.h | raptor.h | |||
---|---|---|---|---|
/* -*- Mode: c; c-basic-offset: 2 -*- | /* -*- Mode: c; c-basic-offset: 2 -*- | |||
* | * | |||
* raptor.h - Redland Parser Toolkit for RDF (Raptor) interfaces and defini tion | * raptor.h - Redland Parser Toolkit for RDF (Raptor) interfaces and defini tion | |||
* | * | |||
* $Id: raptor.h,v 1.120 2004/05/30 21:37:07 cmdjb Exp $ | * $Id: raptor.h,v 1.122 2004/07/09 14:45:39 cmdjb Exp $ | |||
* | * | |||
* Copyright (C) 2000-2004 David Beckett - http://purl.org/net/dajobe/ | * Copyright (C) 2000-2004 David Beckett - http://purl.org/net/dajobe/ | |||
* Institute for Learning and Research Technology - http://www.ilrt.bris.ac .uk/ | * Institute for Learning and Research Technology - http://www.ilrt.bris.ac .uk/ | |||
* University of Bristol - http://www.bristol.ac.uk/ | * University of Bristol - http://www.bristol.ac.uk/ | |||
* | * | |||
* This package is Free Software or Open Source available under the | * This package is Free Software or Open Source available under the | |||
* following licenses (these are alternatives): | * following licenses (these are alternatives): | |||
* 1. GNU Lesser General Public License (LGPL) | * 1. GNU Lesser General Public License (LGPL) | |||
* 2. GNU General Public License (GPL) | * 2. GNU General Public License (GPL) | |||
* 3. Mozilla Public License (MPL) | * 3. Mozilla Public License (MPL) | |||
skipping to change at line 236 | skipping to change at line 236 | |||
RAPTOR_API int raptor_parse_chunk(raptor_parser* rdf_parser, const unsigned char *buffer, size_t len, int is_end); | RAPTOR_API int raptor_parse_chunk(raptor_parser* rdf_parser, const unsigned char *buffer, size_t len, int is_end); | |||
RAPTOR_API int raptor_parse_file_stream(raptor_parser* rdf_parser, FILE *st ream, const char *filename, raptor_uri *base_uri); | RAPTOR_API int raptor_parse_file_stream(raptor_parser* rdf_parser, FILE *st ream, const char *filename, raptor_uri *base_uri); | |||
RAPTOR_API int raptor_parse_file(raptor_parser* rdf_parser, raptor_uri *uri , raptor_uri *base_uri); | RAPTOR_API int raptor_parse_file(raptor_parser* rdf_parser, raptor_uri *uri , raptor_uri *base_uri); | |||
RAPTOR_API int raptor_parse_uri(raptor_parser* rdf_parser, raptor_uri *uri, raptor_uri *base_uri); | RAPTOR_API int raptor_parse_uri(raptor_parser* rdf_parser, raptor_uri *uri, raptor_uri *base_uri); | |||
RAPTOR_API int raptor_parse_uri_with_connection(raptor_parser* rdf_parser, raptor_uri *uri, raptor_uri *base_uri, void *connection); | RAPTOR_API int raptor_parse_uri_with_connection(raptor_parser* rdf_parser, raptor_uri *uri, raptor_uri *base_uri, void *connection); | |||
RAPTOR_API void raptor_parse_abort(raptor_parser* rdf_parser); | RAPTOR_API void raptor_parse_abort(raptor_parser* rdf_parser); | |||
/* Utility functions */ | /* Utility functions */ | |||
RAPTOR_API void raptor_print_locator(FILE *stream, raptor_locator* locator) ; | RAPTOR_API void raptor_print_locator(FILE *stream, raptor_locator* locator) ; | |||
RAPTOR_API int raptor_format_locator(char *buffer, size_t length, raptor_lo cator* locator); | RAPTOR_API int raptor_format_locator(char *buffer, size_t length, raptor_lo cator* locator); | |||
RAPTOR_API int raptor_locator_line(raptor_locator *locator); | ||||
RAPTOR_API int raptor_locator_column(raptor_locator *locator); | ||||
RAPTOR_API int raptor_locator_byte(raptor_locator *locator); | ||||
RAPTOR_API const char * raptor_locator_file(raptor_locator *locator); | ||||
RAPTOR_API const char * raptor_locator_uri(raptor_locator *locator); | ||||
RAPTOR_API const char* raptor_get_name(raptor_parser *rdf_parser); | RAPTOR_API const char* raptor_get_name(raptor_parser *rdf_parser); | |||
RAPTOR_API const char* raptor_get_label(raptor_parser *rdf_parser); | RAPTOR_API const char* raptor_get_label(raptor_parser *rdf_parser); | |||
RAPTOR_API const char* raptor_get_mime_type(raptor_parser *rdf_parser); | RAPTOR_API const char* raptor_get_mime_type(raptor_parser *rdf_parser); | |||
RAPTOR_API int raptor_features_enumerate(const raptor_feature feature, cons t char **name, raptor_uri **uri, const char **label); | RAPTOR_API int raptor_features_enumerate(const raptor_feature feature, cons t char **name, raptor_uri **uri, const char **label); | |||
RAPTOR_API int raptor_set_feature(raptor_parser *parser, raptor_feature fea ture, int value); | RAPTOR_API int raptor_set_feature(raptor_parser *parser, raptor_feature fea ture, int value); | |||
RAPTOR_API int raptor_get_feature(raptor_parser *parser, raptor_feature fea ture); | RAPTOR_API int raptor_get_feature(raptor_parser *parser, raptor_feature fea ture); | |||
RAPTOR_API raptor_feature raptor_feature_from_uri(raptor_uri *uri); | RAPTOR_API raptor_feature raptor_feature_from_uri(raptor_uri *uri); | |||
RAPTOR_API void raptor_set_parser_strict(raptor_parser* rdf_parser, int is_ strict); | RAPTOR_API void raptor_set_parser_strict(raptor_parser* rdf_parser, int is_ strict); | |||
/* memory functions */ | /* memory functions */ | |||
RAPTOR_API void raptor_free_memory(void *ptr); | RAPTOR_API void raptor_free_memory(void *ptr); | |||
RAPTOR_API void* raptor_alloc_memory(size_t size); | ||||
/* URI functions */ | /* URI functions */ | |||
RAPTOR_API raptor_uri* raptor_new_uri(const unsigned char *uri_string); | RAPTOR_API raptor_uri* raptor_new_uri(const unsigned char *uri_string); | |||
RAPTOR_API raptor_uri* raptor_new_uri_from_uri_local_name(raptor_uri *uri, const unsigned char *local_name); | RAPTOR_API raptor_uri* raptor_new_uri_from_uri_local_name(raptor_uri *uri, const unsigned char *local_name); | |||
RAPTOR_API raptor_uri* raptor_new_uri_relative_to_base(raptor_uri *base_uri , const unsigned char *uri_string); | RAPTOR_API raptor_uri* raptor_new_uri_relative_to_base(raptor_uri *base_uri , const unsigned char *uri_string); | |||
RAPTOR_API raptor_uri* raptor_new_uri_from_id(raptor_uri *base_uri, const u nsigned char *id); | RAPTOR_API raptor_uri* raptor_new_uri_from_id(raptor_uri *base_uri, const u nsigned char *id); | |||
RAPTOR_API raptor_uri* raptor_new_uri_for_rdf_concept(const char *name); | RAPTOR_API raptor_uri* raptor_new_uri_for_rdf_concept(const char *name); | |||
RAPTOR_API void raptor_free_uri(raptor_uri *uri); | RAPTOR_API void raptor_free_uri(raptor_uri *uri); | |||
RAPTOR_API int raptor_uri_equals(raptor_uri* uri1, raptor_uri* uri2); | RAPTOR_API int raptor_uri_equals(raptor_uri* uri1, raptor_uri* uri2); | |||
RAPTOR_API raptor_uri* raptor_uri_copy(raptor_uri *uri); | RAPTOR_API raptor_uri* raptor_uri_copy(raptor_uri *uri); | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 7 lines changed or added | |||