rasqal.h | rasqal.h | |||
---|---|---|---|---|
skipping to change at line 38 | skipping to change at line 38 | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/** | /** | |||
* RASQAL_VERSION: | * RASQAL_VERSION: | |||
* | * | |||
* Rasqal library version number | * Rasqal library version number | |||
* | * | |||
* Format: major * 10000 + minor * 100 + release | * Format: major * 10000 + minor * 100 + release | |||
*/ | */ | |||
#define RASQAL_VERSION 924 | #define RASQAL_VERSION 925 | |||
/** | /** | |||
* RASQAL_VERSION_STRING: | * RASQAL_VERSION_STRING: | |||
* | * | |||
* Rasqal library version string | * Rasqal library version string | |||
*/ | */ | |||
#define RASQAL_VERSION_STRING "0.9.24" | #define RASQAL_VERSION_STRING "0.9.25" | |||
/** | /** | |||
* RASQAL_VERSION_MAJOR: | * RASQAL_VERSION_MAJOR: | |||
* | * | |||
* Rasqal library major version | * Rasqal library major version | |||
*/ | */ | |||
#define RASQAL_VERSION_MAJOR 0 | #define RASQAL_VERSION_MAJOR 0 | |||
/** | /** | |||
* RASQAL_VERSION_MINOR: | * RASQAL_VERSION_MINOR: | |||
* | * | |||
* Rasqal library minor version | * Rasqal library minor version | |||
*/ | */ | |||
#define RASQAL_VERSION_MINOR 9 | #define RASQAL_VERSION_MINOR 9 | |||
/** | /** | |||
* RASQAL_VERSION_RELEASE: | * RASQAL_VERSION_RELEASE: | |||
* | * | |||
* Rasqal library release | * Rasqal library release | |||
*/ | */ | |||
#define RASQAL_VERSION_RELEASE 24 | #define RASQAL_VERSION_RELEASE 25 | |||
/** | /** | |||
* RASQAL_API: | * RASQAL_API: | |||
* | * | |||
* Macro for wrapping API function call declarations. | * Macro for wrapping API function call declarations. | |||
* | * | |||
*/ | */ | |||
#ifndef RASQAL_API | #ifndef RASQAL_API | |||
# ifdef WIN32 | # ifdef WIN32 | |||
# ifdef __GNUC__ | # ifdef __GNUC__ | |||
skipping to change at line 198 | skipping to change at line 198 | |||
/** | /** | |||
* rasqal_variables_table: | * rasqal_variables_table: | |||
* | * | |||
* Rasqal variables table class. | * Rasqal variables table class. | |||
*/ | */ | |||
typedef struct rasqal_variables_table_s rasqal_variables_table; | typedef struct rasqal_variables_table_s rasqal_variables_table; | |||
/** | /** | |||
* rasqal_feature: | * rasqal_feature: | |||
* @RASQAL_FEATURE_NO_NET: Deny network requests. | * @RASQAL_FEATURE_NO_NET: Deny network requests. | |||
* @RASQAL_FEATURE_RAND_SEED: Set rand() / rand_r() seed | ||||
* @RASQAL_FEATURE_LAST: Internal. | * @RASQAL_FEATURE_LAST: Internal. | |||
* | * | |||
* Query features. | * Query features. | |||
* | * | |||
* None currently defined. | * None currently defined. | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
RASQAL_FEATURE_NO_NET, | RASQAL_FEATURE_NO_NET, | |||
RASQAL_FEATURE_LAST = RASQAL_FEATURE_NO_NET | RASQAL_FEATURE_RAND_SEED, | |||
RASQAL_FEATURE_LAST = RASQAL_FEATURE_RAND_SEED | ||||
} rasqal_feature; | } rasqal_feature; | |||
/** | /** | |||
* rasqal_prefix: | * rasqal_prefix: | |||
* @world: rasqal_world object | * @world: rasqal_world object | |||
* @prefix: short prefix string | * @prefix: short prefix string | |||
* @uri: URI associated with the prefix. | * @uri: URI associated with the prefix. | |||
* @declared: Internal flag. | * @declared: Internal flag. | |||
* @depth: Internal flag. | * @depth: Internal flag. | |||
* | * | |||
skipping to change at line 558 | skipping to change at line 560 | |||
* @RASQAL_EXPR_SUM: Expression for LAQRS select SUM() aggregate function | * @RASQAL_EXPR_SUM: Expression for LAQRS select SUM() aggregate function | |||
* @RASQAL_EXPR_AVG: Expression for LAQRS select AVG() aggregate function | * @RASQAL_EXPR_AVG: Expression for LAQRS select AVG() aggregate function | |||
* @RASQAL_EXPR_MIN: Expression for LAQRS select MIN() aggregate function | * @RASQAL_EXPR_MIN: Expression for LAQRS select MIN() aggregate function | |||
* @RASQAL_EXPR_MAX: Expression for LAQRS select MAX() aggregate function | * @RASQAL_EXPR_MAX: Expression for LAQRS select MAX() aggregate function | |||
* @RASQAL_EXPR_COALESCE: Expression for LAQRS COALESCE(Expr+) | * @RASQAL_EXPR_COALESCE: Expression for LAQRS COALESCE(Expr+) | |||
* @RASQAL_EXPR_IF: Expression for LAQRS IF(expr, expr, expr) | * @RASQAL_EXPR_IF: Expression for LAQRS IF(expr, expr, expr) | |||
* @RASQAL_EXPR_URI: Expression for LAQRS URI(expr) | * @RASQAL_EXPR_URI: Expression for LAQRS URI(expr) | |||
* @RASQAL_EXPR_IRI: Expression for LAQRS IRI(expr) | * @RASQAL_EXPR_IRI: Expression for LAQRS IRI(expr) | |||
* @RASQAL_EXPR_STRLANG: Expression for LAQRS STRLANG(expr, expr) | * @RASQAL_EXPR_STRLANG: Expression for LAQRS STRLANG(expr, expr) | |||
* @RASQAL_EXPR_STRDT: Expression for LAQRS STRDT(expr, expr) | * @RASQAL_EXPR_STRDT: Expression for LAQRS STRDT(expr, expr) | |||
* @RASQAL_EXPR_BNODE: Expression for LAQRS BNODE(expr) | * @RASQAL_EXPR_BNODE: Expression for LAQRS BNODE() and BNODE(expr) | |||
* @RASQAL_EXPR_GROUP_CONCAT: Expression for LAQRS GROUP_CONCAT(arglist) ag gregate function | * @RASQAL_EXPR_GROUP_CONCAT: Expression for LAQRS GROUP_CONCAT(arglist) ag gregate function | |||
* @RASQAL_EXPR_SAMPLE: Expression for LAQRS SAMPLE(expr) aggregate functio n | * @RASQAL_EXPR_SAMPLE: Expression for LAQRS SAMPLE(expr) aggregate functio n | |||
* @RASQAL_EXPR_IN: Expression for LAQRS expr IN ( list of expr ) | * @RASQAL_EXPR_IN: Expression for LAQRS expr IN ( list of expr ) | |||
* @RASQAL_EXPR_NOT_IN: Expression for LAQRS expr NOT IN ( list of expr ) | * @RASQAL_EXPR_NOT_IN: Expression for LAQRS expr NOT IN ( list of expr ) | |||
* @RASQAL_EXPR_ISNUMERIC: Expression for SPARQL 1.1 isNUMERIC(expr) | * @RASQAL_EXPR_ISNUMERIC: Expression for SPARQL 1.1 isNUMERIC(expr) | |||
* @RASQAL_EXPR_YEAR: Expression for SPARQL 1.1 YEAR(datetime) | * @RASQAL_EXPR_YEAR: Expression for SPARQL 1.1 YEAR(datetime) | |||
* @RASQAL_EXPR_MONTH: Expression for SPARQL 1.1 MONTH(datetime) | * @RASQAL_EXPR_MONTH: Expression for SPARQL 1.1 MONTH(datetime) | |||
* @RASQAL_EXPR_DAY: Expression for SPARQL 1.1 DAY(datetime) | * @RASQAL_EXPR_DAY: Expression for SPARQL 1.1 DAY(datetime) | |||
* @RASQAL_EXPR_HOURS: Expression for SPARQL 1.1 HOURS(datetime) | * @RASQAL_EXPR_HOURS: Expression for SPARQL 1.1 HOURS(datetime) | |||
* @RASQAL_EXPR_MINUTES: Expression for SPARQL 1.1 MINUTES(datetime) | * @RASQAL_EXPR_MINUTES: Expression for SPARQL 1.1 MINUTES(datetime) | |||
skipping to change at line 584 | skipping to change at line 586 | |||
* @RASQAL_EXPR_TO_UNIXTIME: Expression for LAQRS TO_UNIXTIME(datetime) | * @RASQAL_EXPR_TO_UNIXTIME: Expression for LAQRS TO_UNIXTIME(datetime) | |||
* @RASQAL_EXPR_CONCAT: Expression for SPARQL 1.1 CONCAT(strings) | * @RASQAL_EXPR_CONCAT: Expression for SPARQL 1.1 CONCAT(strings) | |||
* @RASQAL_EXPR_STRLEN: Expression for SPARQL 1.1 STRLEN(str) | * @RASQAL_EXPR_STRLEN: Expression for SPARQL 1.1 STRLEN(str) | |||
* @RASQAL_EXPR_SUBSTR: Expression for SPARQL 1.1 SUBSTR(str, start[,offset ]) | * @RASQAL_EXPR_SUBSTR: Expression for SPARQL 1.1 SUBSTR(str, start[,offset ]) | |||
* @RASQAL_EXPR_UCASE: Expression for SPARQL 1.1 UCASE(str) | * @RASQAL_EXPR_UCASE: Expression for SPARQL 1.1 UCASE(str) | |||
* @RASQAL_EXPR_LCASE: Expression for SPARQL 1.1 LCASE(str) | * @RASQAL_EXPR_LCASE: Expression for SPARQL 1.1 LCASE(str) | |||
* @RASQAL_EXPR_STRSTARTS: Expression for SPARQL 1.1 STRSTARTS(str, str) | * @RASQAL_EXPR_STRSTARTS: Expression for SPARQL 1.1 STRSTARTS(str, str) | |||
* @RASQAL_EXPR_STRENDS: Expression for SPARQL 1.1 STRENDS(str, str) | * @RASQAL_EXPR_STRENDS: Expression for SPARQL 1.1 STRENDS(str, str) | |||
* @RASQAL_EXPR_CONTAINS: Expression for SPARQL 1.1 CONTAINS(str, str) | * @RASQAL_EXPR_CONTAINS: Expression for SPARQL 1.1 CONTAINS(str, str) | |||
* @RASQAL_EXPR_ENCODE_FOR_URI: Expression for SPARQL 1.1 ENCODE_FOR_URI(st r) | * @RASQAL_EXPR_ENCODE_FOR_URI: Expression for SPARQL 1.1 ENCODE_FOR_URI(st r) | |||
* @RASQAL_EXPR_TZ: Expression for SPARQL 1.1 TZ() | ||||
* @RASQAL_EXPR_UNKNOWN: Internal | * @RASQAL_EXPR_UNKNOWN: Internal | |||
* @RASQAL_EXPR_RAND: Expression for SPARQL 1.1 RAND() | ||||
* @RASQAL_EXPR_ABS: Expression for SPARQL 1.1 ABS() | ||||
* @RASQAL_EXPR_ROUND: Expression for SPARQL 1.1 ROUND() | ||||
* @RASQAL_EXPR_CEIL: Expression for SPARQL 1.1 CEIL() | ||||
* @RASQAL_EXPR_FLOOR: Expression for SPARQL 1.1 FLOOR() | ||||
* @RASQAL_EXPR_LAST: Internal | * @RASQAL_EXPR_LAST: Internal | |||
* | * | |||
* Rasqal expression operators. A mixture of unary, binary and | * Rasqal expression operators. A mixture of unary, binary and | |||
* tertiary operators (string matches). Also includes casting and | * tertiary operators (string matches). Also includes casting and | |||
* two ordering operators from ORDER BY in SPARQL. | * two ordering operators from ORDER BY in SPARQL. | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
/* internal */ | /* internal */ | |||
RASQAL_EXPR_UNKNOWN, | RASQAL_EXPR_UNKNOWN, | |||
RASQAL_EXPR_AND, | RASQAL_EXPR_AND, | |||
skipping to change at line 669 | skipping to change at line 677 | |||
RASQAL_EXPR_TO_UNIXTIME, | RASQAL_EXPR_TO_UNIXTIME, | |||
RASQAL_EXPR_CONCAT, | RASQAL_EXPR_CONCAT, | |||
RASQAL_EXPR_STRLEN, | RASQAL_EXPR_STRLEN, | |||
RASQAL_EXPR_SUBSTR, | RASQAL_EXPR_SUBSTR, | |||
RASQAL_EXPR_UCASE, | RASQAL_EXPR_UCASE, | |||
RASQAL_EXPR_LCASE, | RASQAL_EXPR_LCASE, | |||
RASQAL_EXPR_STRSTARTS, | RASQAL_EXPR_STRSTARTS, | |||
RASQAL_EXPR_STRENDS, | RASQAL_EXPR_STRENDS, | |||
RASQAL_EXPR_CONTAINS, | RASQAL_EXPR_CONTAINS, | |||
RASQAL_EXPR_ENCODE_FOR_URI, | RASQAL_EXPR_ENCODE_FOR_URI, | |||
RASQAL_EXPR_TZ, | ||||
RASQAL_EXPR_RAND, | ||||
RASQAL_EXPR_ABS, | ||||
RASQAL_EXPR_ROUND, | ||||
RASQAL_EXPR_CEIL, | ||||
RASQAL_EXPR_FLOOR, | ||||
/* internal */ | /* internal */ | |||
RASQAL_EXPR_LAST = RASQAL_EXPR_ENCODE_FOR_URI | RASQAL_EXPR_LAST = RASQAL_EXPR_FLOOR | |||
} rasqal_op; | } rasqal_op; | |||
/** | /** | |||
* rasqal_expression_flags: | * rasqal_expression_flags: | |||
* @RASQAL_EXPR_FLAG_DISTINCT: Distinct | * @RASQAL_EXPR_FLAG_DISTINCT: Distinct | |||
* @RASQAL_EXPR_FLAG_AGGREGATE: Aggregate function expression | * @RASQAL_EXPR_FLAG_AGGREGATE: Aggregate function expression | |||
* | * | |||
* Flags for expressions. | * Flags for expressions. | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
skipping to change at line 1007 | skipping to change at line 1021 | |||
RASQAL_API | RASQAL_API | |||
int rasqal_features_enumerate(rasqal_world* world, const rasqal_feature fea ture, const char **name, raptor_uri **uri, const char **label); | int rasqal_features_enumerate(rasqal_world* world, const rasqal_feature fea ture, const char **name, raptor_uri **uri, const char **label); | |||
RASQAL_API | RASQAL_API | |||
unsigned int rasqal_get_feature_count(void); | unsigned int rasqal_get_feature_count(void); | |||
RASQAL_API | RASQAL_API | |||
rasqal_feature rasqal_feature_from_uri(rasqal_world* world, raptor_uri *uri ); | rasqal_feature rasqal_feature_from_uri(rasqal_world* world, raptor_uri *uri ); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_feature_value_type(const rasqal_feature feature); | int rasqal_feature_value_type(const rasqal_feature feature); | |||
RASQAL_API | RASQAL_API | |||
const raptor_syntax_description* rasqal_world_get_query_language_descriptio | ||||
n(rasqal_world* world, unsigned int counter); | ||||
RASQAL_API RASQAL_DEPRECATED | ||||
int rasqal_languages_enumerate(rasqal_world* world, unsigned int counter, c onst char **name, const char **label, const unsigned char **uri_string); | int rasqal_languages_enumerate(rasqal_world* world, unsigned int counter, c onst char **name, const char **label, const unsigned char **uri_string); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_language_name_check(rasqal_world* world, const char *name); | int rasqal_language_name_check(rasqal_world* world, const char *name); | |||
/* Query class */ | /* Query class */ | |||
/* Create */ | /* Create */ | |||
RASQAL_API | RASQAL_API | |||
rasqal_query* rasqal_new_query(rasqal_world* world, const char *name, const unsigned char *uri); | rasqal_query* rasqal_new_query(rasqal_world* world, const char *name, const unsigned char *uri); | |||
skipping to change at line 1317 | skipping to change at line 1334 | |||
* rasqal_literal_as_string_flags() | * rasqal_literal_as_string_flags() | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
RASQAL_COMPARE_NOCASE = 1, | RASQAL_COMPARE_NOCASE = 1, | |||
RASQAL_COMPARE_XQUERY = 2, | RASQAL_COMPARE_XQUERY = 2, | |||
RASQAL_COMPARE_RDF = 4, | RASQAL_COMPARE_RDF = 4, | |||
RASQAL_COMPARE_URI = 8, | RASQAL_COMPARE_URI = 8, | |||
RASQAL_COMPARE_SAMETERM = 16 | RASQAL_COMPARE_SAMETERM = 16 | |||
} rasqal_compare_flags; | } rasqal_compare_flags; | |||
/** | ||||
* rasqal_evaluation_context: | ||||
* @world: rasqal world | ||||
* @base_uri: base URI of expression context (or NULL) | ||||
* @locator: locator or NULL | ||||
* @seed: used for rand_r() (if available) or srand() | ||||
* @flags: expression comparison flags | ||||
* | ||||
* A context for evaluating an expression such as with | ||||
* rasqal_expression_evaluate2() | ||||
*/ | ||||
typedef struct { | ||||
rasqal_world *world; | ||||
raptor_uri* base_uri; | ||||
raptor_locator *locator; | ||||
int flags; | ||||
unsigned int seed; | ||||
} rasqal_evaluation_context; | ||||
/* Expression class */ | /* Expression class */ | |||
RASQAL_API | RASQAL_API | |||
rasqal_expression* rasqal_new_0op_expression(rasqal_world* world, rasqal_op op); | rasqal_expression* rasqal_new_0op_expression(rasqal_world* world, rasqal_op op); | |||
RASQAL_API | RASQAL_API | |||
rasqal_expression* rasqal_new_1op_expression(rasqal_world* world, rasqal_op op, rasqal_expression* arg); | rasqal_expression* rasqal_new_1op_expression(rasqal_world* world, rasqal_op op, rasqal_expression* arg); | |||
RASQAL_API | RASQAL_API | |||
rasqal_expression* rasqal_new_2op_expression(rasqal_world* world, rasqal_op op, rasqal_expression* arg1, rasqal_expression* arg2); | rasqal_expression* rasqal_new_2op_expression(rasqal_world* world, rasqal_op op, rasqal_expression* arg1, rasqal_expression* arg2); | |||
RASQAL_API | RASQAL_API | |||
rasqal_expression* rasqal_new_3op_expression(rasqal_world* world, rasqal_op op, rasqal_expression* arg1, rasqal_expression* arg2, rasqal_expression* arg3); | rasqal_expression* rasqal_new_3op_expression(rasqal_world* world, rasqal_op op, rasqal_expression* arg1, rasqal_expression* arg2, rasqal_expression* arg3); | |||
RASQAL_API | RASQAL_API | |||
skipping to change at line 1351 | skipping to change at line 1387 | |||
rasqal_expression* rasqal_new_group_concat_expression(rasqal_world* world, int flags, raptor_sequence* args, rasqal_literal* separator); | rasqal_expression* rasqal_new_group_concat_expression(rasqal_world* world, int flags, raptor_sequence* args, rasqal_literal* separator); | |||
RASQAL_API | RASQAL_API | |||
rasqal_expression* rasqal_new_expression_from_expression(rasqal_expression* e); | rasqal_expression* rasqal_new_expression_from_expression(rasqal_expression* e); | |||
RASQAL_API | RASQAL_API | |||
void rasqal_free_expression(rasqal_expression* e); | void rasqal_free_expression(rasqal_expression* e); | |||
RASQAL_API | RASQAL_API | |||
void rasqal_expression_print_op(rasqal_expression* e, FILE* fh); | void rasqal_expression_print_op(rasqal_expression* e, FILE* fh); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_expression_print(rasqal_expression* e, FILE* fh); | int rasqal_expression_print(rasqal_expression* e, FILE* fh); | |||
RASQAL_API | RASQAL_API RASQAL_DEPRECATED | |||
rasqal_literal* rasqal_expression_evaluate(rasqal_world *world, raptor_loca tor *locator, rasqal_expression* e, int flags); | rasqal_literal* rasqal_expression_evaluate(rasqal_world *world, raptor_loca tor *locator, rasqal_expression* e, int flags); | |||
RASQAL_API | RASQAL_API | |||
rasqal_literal* rasqal_expression_evaluate2(rasqal_expression *e, rasqal_ev | ||||
aluation_context* eval_context, int *error_p); | ||||
RASQAL_API | ||||
const char* rasqal_expression_op_label(rasqal_op op); | const char* rasqal_expression_op_label(rasqal_op op); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_expression_compare(rasqal_expression* e1, rasqal_expression* e2, int flags, int* error_p); | int rasqal_expression_compare(rasqal_expression* e1, rasqal_expression* e2, int flags, int* error_p); | |||
/** | /** | |||
* rasqal_expression_visit_fn: | * rasqal_expression_visit_fn: | |||
* @user_data: user data passed in with rasqal_expression_visit() | * @user_data: user data passed in with rasqal_expression_visit() | |||
* @e: current expression | * @e: current expression | |||
* | * | |||
* User function to visit an expression and operate on it with | * User function to visit an expression and operate on it with | |||
* rasqal_expression_visit() | * rasqal_expression_visit() | |||
* | * | |||
* Return value: non-0 to truncate the visit | * Return value: non-0 to truncate the visit | |||
*/ | */ | |||
typedef int (*rasqal_expression_visit_fn)(void *user_data, rasqal_expressio n *e); | typedef int (*rasqal_expression_visit_fn)(void *user_data, rasqal_expressio n *e); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_expression_visit(rasqal_expression* e, rasqal_expression_visit_f n fn, void *user_data); | int rasqal_expression_visit(rasqal_expression* e, rasqal_expression_visit_f n fn, void *user_data); | |||
RASQAL_API | ||||
rasqal_evaluation_context* rasqal_new_evaluation_context(rasqal_world* worl | ||||
d, raptor_locator* locator, int flags); | ||||
RASQAL_API | ||||
void rasqal_free_evaluation_context(rasqal_evaluation_context* eval_context | ||||
); | ||||
RASQAL_API | ||||
int rasqal_evaluation_context_set_base_uri(rasqal_evaluation_context* eval_ | ||||
context, raptor_uri *base_uri); | ||||
RASQAL_API | ||||
int rasqal_evaluation_context_set_rand_seed(rasqal_evaluation_context* eval | ||||
_context, unsigned int seed); | ||||
/* Literal class */ | /* Literal class */ | |||
RASQAL_API | RASQAL_API | |||
rasqal_literal* rasqal_new_integer_literal(rasqal_world* world, rasqal_lite ral_type type, int integer); | rasqal_literal* rasqal_new_integer_literal(rasqal_world* world, rasqal_lite ral_type type, int integer); | |||
RASQAL_API | RASQAL_API | |||
rasqal_literal* rasqal_new_typed_literal(rasqal_world* world, rasqal_litera l_type type, const unsigned char* string); | rasqal_literal* rasqal_new_typed_literal(rasqal_world* world, rasqal_litera l_type type, const unsigned char* string); | |||
RASQAL_API | RASQAL_API | |||
rasqal_literal* rasqal_new_double_literal(rasqal_world* world, double d); | rasqal_literal* rasqal_new_double_literal(rasqal_world* world, double d); | |||
RASQAL_API | RASQAL_API | |||
rasqal_literal* rasqal_new_float_literal(rasqal_world* world, float f); | rasqal_literal* rasqal_new_float_literal(rasqal_world* world, float f); | |||
RASQAL_API | RASQAL_API | |||
skipping to change at line 1413 | skipping to change at line 1460 | |||
void rasqal_free_literal(rasqal_literal* l); | void rasqal_free_literal(rasqal_literal* l); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_literal_print(rasqal_literal* l, FILE* fh); | int rasqal_literal_print(rasqal_literal* l, FILE* fh); | |||
RASQAL_API | RASQAL_API | |||
const char* rasqal_literal_type_label(rasqal_literal_type type); | const char* rasqal_literal_type_label(rasqal_literal_type type); | |||
RASQAL_API | RASQAL_API | |||
void rasqal_literal_print_type(rasqal_literal* l, FILE* fh); | void rasqal_literal_print_type(rasqal_literal* l, FILE* fh); | |||
RASQAL_API | RASQAL_API | |||
rasqal_variable* rasqal_literal_as_variable(rasqal_literal* l); | rasqal_variable* rasqal_literal_as_variable(rasqal_literal* l); | |||
RASQAL_API | RASQAL_API | |||
const unsigned char* rasqal_literal_as_counted_string(rasqal_literal* l, si ze_t *len_p, int flags, int *error); | const unsigned char* rasqal_literal_as_counted_string(rasqal_literal* l, si ze_t *len_p, int flags, int *error_p); | |||
RASQAL_API | RASQAL_API | |||
const unsigned char* rasqal_literal_as_string(rasqal_literal* l); | const unsigned char* rasqal_literal_as_string(rasqal_literal* l); | |||
RASQAL_API | RASQAL_API | |||
const unsigned char* rasqal_literal_as_string_flags(rasqal_literal* l, int flags, int *error); | const unsigned char* rasqal_literal_as_string_flags(rasqal_literal* l, int flags, int *error_p); | |||
RASQAL_API | RASQAL_API | |||
rasqal_literal* rasqal_literal_as_node(rasqal_literal* l); | rasqal_literal* rasqal_literal_as_node(rasqal_literal* l); | |||
RASQAL_API | RASQAL_API | |||
raptor_uri* rasqal_literal_datatype(rasqal_literal* l); | raptor_uri* rasqal_literal_datatype(rasqal_literal* l); | |||
RASQAL_API | RASQAL_API | |||
rasqal_literal* rasqal_literal_value(rasqal_literal* l); | rasqal_literal* rasqal_literal_value(rasqal_literal* l); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_literal_compare(rasqal_literal* l1, rasqal_literal* l2, int flag s, int *error); | int rasqal_literal_compare(rasqal_literal* l1, rasqal_literal* l2, int flag s, int *error_p); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_literal_equals(rasqal_literal* l1, rasqal_literal* l2); | int rasqal_literal_equals(rasqal_literal* l1, rasqal_literal* l2); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_literal_same_term(rasqal_literal* l1, rasqal_literal* l2); | int rasqal_literal_same_term(rasqal_literal* l1, rasqal_literal* l2); | |||
RASQAL_API | RASQAL_API | |||
rasqal_literal_type rasqal_literal_get_rdf_term_type(rasqal_literal* l); | rasqal_literal_type rasqal_literal_get_rdf_term_type(rasqal_literal* l); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_literal_is_rdf_literal(rasqal_literal* l); | int rasqal_literal_is_rdf_literal(rasqal_literal* l); | |||
RASQAL_API | RASQAL_API | |||
skipping to change at line 1523 | skipping to change at line 1570 | |||
RASQAL_API | RASQAL_API | |||
int rasqal_xsd_decimal_divide(rasqal_xsd_decimal* result, rasqal_xsd_decima l* a, rasqal_xsd_decimal* b); | int rasqal_xsd_decimal_divide(rasqal_xsd_decimal* result, rasqal_xsd_decima l* a, rasqal_xsd_decimal* b); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_xsd_decimal_negate(rasqal_xsd_decimal* result, rasqal_xsd_decima l* a); | int rasqal_xsd_decimal_negate(rasqal_xsd_decimal* result, rasqal_xsd_decima l* a); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_xsd_decimal_compare(rasqal_xsd_decimal* a, rasqal_xsd_decimal* b ); | int rasqal_xsd_decimal_compare(rasqal_xsd_decimal* a, rasqal_xsd_decimal* b ); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_xsd_decimal_equals(rasqal_xsd_decimal* a, rasqal_xsd_decimal* b) ; | int rasqal_xsd_decimal_equals(rasqal_xsd_decimal* a, rasqal_xsd_decimal* b) ; | |||
RASQAL_API | RASQAL_API | |||
int rasqal_xsd_decimal_is_zero(rasqal_xsd_decimal* d); | int rasqal_xsd_decimal_is_zero(rasqal_xsd_decimal* d); | |||
RASQAL_API | ||||
int rasqal_xsd_decimal_abs(rasqal_xsd_decimal* result, rasqal_xsd_decimal* | ||||
a); | ||||
RASQAL_API | ||||
int rasqal_xsd_decimal_round(rasqal_xsd_decimal* result, rasqal_xsd_decimal | ||||
* a); | ||||
RASQAL_API | ||||
int rasqal_xsd_decimal_ceil(rasqal_xsd_decimal* result, rasqal_xsd_decimal* | ||||
a); | ||||
RASQAL_API | ||||
int rasqal_xsd_decimal_floor(rasqal_xsd_decimal* result, rasqal_xsd_decimal | ||||
* a); | ||||
/* datetime functions */ | /* datetime functions */ | |||
RASQAL_API | RASQAL_API | |||
rasqal_xsd_datetime* rasqal_new_xsd_datetime(rasqal_world* world, const cha r *datetime_string); | rasqal_xsd_datetime* rasqal_new_xsd_datetime(rasqal_world* world, const cha r *datetime_string); | |||
RASQAL_API | RASQAL_API | |||
rasqal_xsd_datetime* rasqal_new_xsd_datetime_from_unixtime(rasqal_world* wo rld, time_t secs); | rasqal_xsd_datetime* rasqal_new_xsd_datetime_from_unixtime(rasqal_world* wo rld, time_t secs); | |||
RASQAL_API | RASQAL_API | |||
rasqal_xsd_datetime* rasqal_new_xsd_datetime_from_timeval(rasqal_world* wor ld, struct timeval *tv); | rasqal_xsd_datetime* rasqal_new_xsd_datetime_from_timeval(rasqal_world* wor ld, struct timeval *tv); | |||
RASQAL_API | RASQAL_API | |||
void rasqal_free_xsd_datetime(rasqal_xsd_datetime* dt); | void rasqal_free_xsd_datetime(rasqal_xsd_datetime* dt); | |||
skipping to change at line 1553 | skipping to change at line 1608 | |||
RASQAL_API | RASQAL_API | |||
int rasqal_xsd_datetime_set_from_timeval(rasqal_xsd_datetime *dt, struct ti meval *tv); | int rasqal_xsd_datetime_set_from_timeval(rasqal_xsd_datetime *dt, struct ti meval *tv); | |||
RASQAL_API | RASQAL_API | |||
int rasqal_xsd_datetime_set_from_unixtime(rasqal_xsd_datetime* dt, time_t c lock); | int rasqal_xsd_datetime_set_from_unixtime(rasqal_xsd_datetime* dt, time_t c lock); | |||
RASQAL_API | RASQAL_API | |||
time_t rasqal_xsd_datetime_get_as_unixtime(rasqal_xsd_datetime* dt); | time_t rasqal_xsd_datetime_get_as_unixtime(rasqal_xsd_datetime* dt); | |||
RASQAL_API | RASQAL_API | |||
struct timeval* rasqal_xsd_datetime_get_as_timeval(rasqal_xsd_datetime *dt) ; | struct timeval* rasqal_xsd_datetime_get_as_timeval(rasqal_xsd_datetime *dt) ; | |||
RASQAL_API | RASQAL_API | |||
char* rasqal_xsd_datetime_get_timezone_as_counted_string(rasqal_xsd_datetim e *dt, size_t *len_p); | char* rasqal_xsd_datetime_get_timezone_as_counted_string(rasqal_xsd_datetim e *dt, size_t *len_p); | |||
RASQAL_API | ||||
char* rasqal_xsd_datetime_get_tz_as_counted_string(rasqal_xsd_datetime* dt, | ||||
size_t *len_p); | ||||
/** | /** | |||
* rasqal_service: | * rasqal_service: | |||
* | * | |||
* Rasqal SPARQL Protocol Service | * Rasqal SPARQL Protocol Service | |||
*/ | */ | |||
typedef struct rasqal_service_s rasqal_service; | typedef struct rasqal_service_s rasqal_service; | |||
RASQAL_API | RASQAL_API | |||
rasqal_service* rasqal_new_service(rasqal_world* world, raptor_uri* service _uri, const char* query_string, raptor_sequence* data_graphs); | rasqal_service* rasqal_new_service(rasqal_world* world, raptor_uri* service _uri, const char* query_string, raptor_sequence* data_graphs); | |||
End of changes. 20 change blocks. | ||||
10 lines changed or deleted | 78 lines changed or added | |||