rasqal.h   rasqal.h 
/* -*- Mode: c; c-basic-offset: 2 -*- /* -*- Mode: c; c-basic-offset: 2 -*-
* *
* rdql.h - Rasqal RDF Query library interfaces and definition * rdql.h - Rasqal RDF Query library interfaces and definition
* *
* $Id: rasqal.h,v 1.52 2004/05/13 22:33:08 cmdjb Exp $ * $Id: rasqal.h,v 1.54 2004/06/01 19:50:47 cmdjb Exp $
* *
* Copyright (C) 2003-2004 David Beckett - http://purl.org/net/dajobe/ * Copyright (C) 2003-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 52 skipping to change at line 52
extern const char * const rasqal_short_copyright_string; extern const char * const rasqal_short_copyright_string;
extern const char * const rasqal_copyright_string; extern const char * const rasqal_copyright_string;
extern const char * const rasqal_version_string; extern const char * const rasqal_version_string;
extern const unsigned int rasqal_version_major; extern const unsigned int rasqal_version_major;
extern const unsigned int rasqal_version_minor; extern const unsigned int rasqal_version_minor;
extern const unsigned int rasqal_version_release; extern const unsigned int rasqal_version_release;
extern const unsigned int rasqal_version_decimal; extern const unsigned int rasqal_version_decimal;
/* Public structure */ /* Public structure */
typedef struct rasqal_query_s rasqal_query; typedef struct rasqal_query_s rasqal_query;
typedef struct rasqal_query_results_s rasqal_query_results;
typedef struct rasqal_literal_s rasqal_literal; typedef struct rasqal_literal_s rasqal_literal;
typedef enum { typedef enum {
RASQAL_FEATURE_LAST RASQAL_FEATURE_LAST
} rasqal_feature; } rasqal_feature;
typedef struct { typedef struct {
const char *prefix; const char *prefix;
raptor_uri* uri; raptor_uri* uri;
} rasqal_prefix ; } rasqal_prefix ;
skipping to change at line 195 skipping to change at line 196
RASQAL_API rasqal_expression* rasqal_query_get_constraint(rasqal_query* que ry, int idx); RASQAL_API rasqal_expression* rasqal_query_get_constraint(rasqal_query* que ry, int idx);
RASQAL_API void rasqal_query_add_prefix(rasqal_query* query, rasqal_prefix* prefix); RASQAL_API void rasqal_query_add_prefix(rasqal_query* query, rasqal_prefix* prefix);
RASQAL_API raptor_sequence* rasqal_query_get_prefix_sequence(rasqal_query* query); RASQAL_API raptor_sequence* rasqal_query_get_prefix_sequence(rasqal_query* query);
RASQAL_API rasqal_prefix* rasqal_query_get_prefix(rasqal_query* query, int idx); RASQAL_API rasqal_prefix* rasqal_query_get_prefix(rasqal_query* query, int idx);
/* Utility methods */ /* Utility methods */
RASQAL_API void rasqal_query_print(rasqal_query* query, FILE *stream); RASQAL_API void rasqal_query_print(rasqal_query* query, FILE *stream);
/* Query */ /* Query */
RASQAL_API int rasqal_query_prepare(rasqal_query* query, const unsigned cha r *query_string, raptor_uri *base_uri); RASQAL_API int rasqal_query_prepare(rasqal_query* query, const unsigned cha r *query_string, raptor_uri *base_uri);
RASQAL_API int rasqal_query_execute(rasqal_query* query); RASQAL_API rasqal_query_results* rasqal_query_execute(rasqal_query* query);
RASQAL_API int rasqal_query_get_result_count(rasqal_query *query);
RASQAL_API int rasqal_query_results_finished(rasqal_query *query);
RASQAL_API int rasqal_query_get_result_bindings(rasqal_query *query, const
char ***names, rasqal_literal ***values);
RASQAL_API rasqal_literal* rasqal_query_get_result_binding_value(rasqal_que
ry *query, int offset);
RASQAL_API const char* rasqal_query_get_result_binding_name(rasqal_query *q
uery, int offset);
RASQAL_API rasqal_literal* rasqal_query_get_result_binding_by_name(rasqal_q
uery *query, const char *name);
RASQAL_API int rasqal_query_next_result(rasqal_query *query);
RASQAL_API int rasqal_query_get_bindings_count(rasqal_query *query);
RASQAL_API void* rasqal_query_get_user_data(rasqal_query *query); RASQAL_API void* rasqal_query_get_user_data(rasqal_query *query);
RASQAL_API void rasqal_query_set_user_data(rasqal_query *query, void *user_ data); RASQAL_API void rasqal_query_set_user_data(rasqal_query *query, void *user_ data);
/* query results */
RASQAL_API void rasqal_free_query_results(rasqal_query_results *query_resul
ts);
RASQAL_API int rasqal_query_results_get_count(rasqal_query_results *query_r
esults);
RASQAL_API int rasqal_query_results_next(rasqal_query_results *query_result
s);
RASQAL_API int rasqal_query_results_finished(rasqal_query_results *query_re
sults);
RASQAL_API int rasqal_query_results_get_bindings(rasqal_query_results *quer
y_results, const char ***names, rasqal_literal ***values);
RASQAL_API rasqal_literal* rasqal_query_results_get_binding_value(rasqal_qu
ery_results *query_results, int offset);
RASQAL_API const char* rasqal_query_results_get_binding_name(rasqal_query_r
esults *query_results, int offset);
RASQAL_API rasqal_literal* rasqal_query_results_get_binding_value_by_name(r
asqal_query_results *query_results, const char *name);
RASQAL_API int rasqal_query_results_get_bindings_count(rasqal_query_results
*query_results);
/* Expression class */ /* Expression class */
RASQAL_API rasqal_expression* rasqal_new_1op_expression(rasqal_op op, rasqa l_expression* arg); RASQAL_API rasqal_expression* rasqal_new_1op_expression(rasqal_op op, rasqa l_expression* arg);
RASQAL_API rasqal_expression* rasqal_new_2op_expression(rasqal_op op, rasqa l_expression* arg1, rasqal_expression* arg2); RASQAL_API rasqal_expression* rasqal_new_2op_expression(rasqal_op op, rasqa l_expression* arg1, rasqal_expression* arg2);
RASQAL_API rasqal_expression* rasqal_new_string_op_expression(rasqal_op op, rasqal_expression* arg1, rasqal_literal* literal); RASQAL_API rasqal_expression* rasqal_new_string_op_expression(rasqal_op op, rasqal_expression* arg1, rasqal_literal* literal);
RASQAL_API rasqal_expression* rasqal_new_literal_expression(rasqal_literal* literal); RASQAL_API rasqal_expression* rasqal_new_literal_expression(rasqal_literal* literal);
RASQAL_API rasqal_expression* rasqal_new_variable_expression(rasqal_variabl e *variable); RASQAL_API rasqal_expression* rasqal_new_variable_expression(rasqal_variabl e *variable);
RASQAL_API void rasqal_free_expression(rasqal_expression* expr); RASQAL_API void rasqal_free_expression(rasqal_expression* expr);
RASQAL_API void rasqal_expression_print_op(rasqal_expression* expr, FILE* f h); RASQAL_API void rasqal_expression_print_op(rasqal_expression* expr, FILE* f h);
RASQAL_API void rasqal_expression_print(rasqal_expression* expr, FILE* fh); RASQAL_API void rasqal_expression_print(rasqal_expression* expr, FILE* fh);
 End of changes. 4 change blocks. 
15 lines changed or deleted 24 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/