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 921 #define RASQAL_VERSION 922
/** /**
* RASQAL_VERSION_STRING: * RASQAL_VERSION_STRING:
* *
* Rasqal library version string * Rasqal library version string
*/ */
#define RASQAL_VERSION_STRING "0.9.21" #define RASQAL_VERSION_STRING "0.9.22"
/** /**
* 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 21 #define RASQAL_VERSION_RELEASE 22
/** /**
* 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 109 skipping to change at line 109
#else #else
#define RASQAL_DEPRECATED #define RASQAL_DEPRECATED
#endif #endif
#ifndef LIBRDF_OBJC_FRAMEWORK #ifndef LIBRDF_OBJC_FRAMEWORK
#include <raptor.h> #include <raptor.h>
#else #else
#include <Redland/raptor.h> #include <Redland/raptor.h>
#endif #endif
#if 1
#include <sys/time.h>
#endif
#if 1
#include <time.h>
#endif
/* Public statics */ /* Public statics */
RASQAL_API RASQAL_API
extern const char * const rasqal_short_copyright_string; extern const char * const rasqal_short_copyright_string;
RASQAL_API RASQAL_API
extern const char * const rasqal_copyright_string; extern const char * const rasqal_copyright_string;
RASQAL_API RASQAL_API
extern const char * const rasqal_version_string; extern const char * const rasqal_version_string;
RASQAL_API RASQAL_API
extern const unsigned int rasqal_version_major; extern const unsigned int rasqal_version_major;
RASQAL_API RASQAL_API
skipping to change at line 134 skipping to change at line 141
RASQAL_API RASQAL_API
extern const char * const rasqal_license_string; extern const char * const rasqal_license_string;
RASQAL_API RASQAL_API
extern const char * const rasqal_home_url_string; extern const char * const rasqal_home_url_string;
/** /**
* RASQAL_RAPTOR_VERSION: * RASQAL_RAPTOR_VERSION:
* *
* Version of Raptor that Rasqal was configured against. * Version of Raptor that Rasqal was configured against.
*/ */
#define RASQAL_RAPTOR_VERSION 10421 #define RASQAL_RAPTOR_VERSION 20002
/* Public structures */ /* Public structures */
#ifndef RASQAL_WORLD_DECLARED #ifndef RASQAL_WORLD_DECLARED
#define RASQAL_WORLD_DECLARED 1 #define RASQAL_WORLD_DECLARED 1
/** /**
* rasqal_world: * rasqal_world:
* *
* Rasqal world class. * Rasqal world class.
*/ */
skipping to change at line 314 skipping to change at line 321
* can be constructed from the graph at URI @uri. * can be constructed from the graph at URI @uri.
* *
* In either case the @name_uri is the graph name as long as @flags * In either case the @name_uri is the graph name as long as @flags
* is %RASQAL_DATA_GRAPH_NAMED * is %RASQAL_DATA_GRAPH_NAMED
*/ */
typedef struct { typedef struct {
rasqal_world* world; rasqal_world* world;
raptor_uri* uri; raptor_uri* uri;
raptor_uri* name_uri; raptor_uri* name_uri;
int flags; int flags;
const char* format_type; char* format_type;
const char* format_name; char* format_name;
raptor_uri* format_uri; raptor_uri* format_uri;
raptor_iostream* iostr; raptor_iostream* iostr;
raptor_uri* base_uri; raptor_uri* base_uri;
int usage; int usage;
} rasqal_data_graph; } rasqal_data_graph;
/** /**
* rasqal_literal_type: * rasqal_literal_type:
* @RASQAL_LITERAL_BLANK: RDF blank node literal (SPARQL r:bNode) * @RASQAL_LITERAL_BLANK: RDF blank node literal (SPARQL r:bNode)
* @RASQAL_LITERAL_URI: RDF URI Literal (SPARQL r:URI) * @RASQAL_LITERAL_URI: RDF URI Literal (SPARQL r:URI)
skipping to change at line 407 skipping to change at line 414
typedef struct rasqal_row_s rasqal_row; typedef struct rasqal_row_s rasqal_row;
/** /**
* rasqal_xsd_decimal: * rasqal_xsd_decimal:
* *
* Rasqal XSD Decimal class. * Rasqal XSD Decimal class.
*/ */
typedef struct rasqal_xsd_decimal_s rasqal_xsd_decimal; typedef struct rasqal_xsd_decimal_s rasqal_xsd_decimal;
/** /**
* RASQAL_XSD_DATETIME_NO_TZ:
*
* Sentinel XSD Decimal timezone value indicating no timezone is present.
*/
#define RASQAL_XSD_DATETIME_NO_TZ (9999)
/**
* rasqal_xsd_datetime:
* @year: year
* @month: month 1-12
* @day: 0-31
* @hour: hour 0-23
* @minute: minute 0-59
* @second: second 0-60 (yes 60 is allowed for leap seconds)
* @microseconds: microseconds
* @timezone_minutes: minutes +/- against UTC or RASQAL_XSD_DATETIME_NO_TZ
if there isno timezone in the dateTime.
*
* XML Schema dateTime datatype (xsd:dateTime)
*
* Signed types are required for normalization process where a value
* can be negative temporarily.
*/
typedef struct {
signed int year;
unsigned char month;
unsigned char day;
/* the following fields are integer values not characters */
signed char hour;
signed char minute;
signed char second;
signed int microseconds;
signed short timezone_minutes;
} rasqal_xsd_datetime;
/**
* rasqal_literal: * rasqal_literal:
* @world: world object pointer * @world: world object pointer
* @usage: Usage count. * @usage: Usage count.
* @type: Type of literal. * @type: Type of literal.
* @string: String form of literal for literal types UTF-8 string, pattern, qname, blank, double, float, decimal, datetime. * @string: String form of literal for literal types UTF-8 string, pattern, qname, blank, double, float, decimal, datetime.
* @string_len: Length of @string. * @string_len: Length of @string.
* @value: Alternate value content. * @value: Alternate value content.
* @language: Language for string literal type. * @language: Language for string literal type.
* @datatype: Datatype for string literal type. * @datatype: Datatype for string literal type.
* @flags: Flags for literal types * @flags: Flags for literal types
skipping to change at line 445 skipping to change at line 487
/* integer and boolean types */ /* integer and boolean types */
int integer; int integer;
/* double and float */ /* double and float */
double floating; double floating;
/* uri (can be temporarily NULL if a qname, see flags below) */ /* uri (can be temporarily NULL if a qname, see flags below) */
raptor_uri* uri; raptor_uri* uri;
/* variable */ /* variable */
rasqal_variable* variable; rasqal_variable* variable;
/* decimal */ /* decimal */
rasqal_xsd_decimal* decimal; rasqal_xsd_decimal* decimal;
/* datetime - does not write anything into value */ /* datetime */
rasqal_xsd_datetime* datetime;
} value; } value;
/* for string */ /* for string */
const char *language; const char *language;
raptor_uri *datatype; raptor_uri *datatype;
/* various flags for literal types: /* various flags for literal types:
* pattern regex flags * pattern regex flags
* string datatype of qname * string datatype of qname
* uri qname of URI not yet expanded (temporary) * uri qname of URI not yet expanded (temporary)
skipping to change at line 521 skipping to change at line 564
* @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(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_MONTH: Expression for SPARQL 1.1 MONTH(datetime)
* @RASQAL_EXPR_DAY: Expression for SPARQL 1.1 DAY(datetime)
* @RASQAL_EXPR_HOURS: Expression for SPARQL 1.1 HOURS(datetime)
* @RASQAL_EXPR_MINUTES: Expression for SPARQL 1.1 MINUTES(datetime)
* @RASQAL_EXPR_SECONDS: Expression for SPARQL 1.1 SECONDS(datetime)
* @RASQAL_EXPR_TIMEZONE: Expression for SPARQL 1.1 TIMEZONE(datetime)
* @RASQAL_EXPR_CURRENT_DATETIME: Expression for LAQRS CURRENT_DATETIME( vo
id )
* @RASQAL_EXPR_NOW: Expression for LAQRS NOW( void )
* @RASQAL_EXPR_FROM_UNIXTIME: Expression for LAQRS FROM_UNIXTIME(int)
* @RASQAL_EXPR_TO_UNIXTIME: Expression for LAQRS TO_UNIXTIME(datetime)
* @RASQAL_EXPR_CONCAT: Expression for SPARQL 1.1 CONCAT(strings)
* @RASQAL_EXPR_STRLEN: Expression for SPARQL 1.1 STRLEN(str)
* @RASQAL_EXPR_SUBSTR: Expression for SPARQL 1.1 SUBSTR(str, start[,offset
])
* @RASQAL_EXPR_UCASE: Expression for SPARQL 1.1 UCASE(str)
* @RASQAL_EXPR_LCASE: Expression for SPARQL 1.1 LCASE(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_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_UNKNOWN: Internal * @RASQAL_EXPR_UNKNOWN: Internal
* @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,
skipping to change at line 586 skipping to change at line 649
RASQAL_EXPR_URI, RASQAL_EXPR_URI,
RASQAL_EXPR_IRI, RASQAL_EXPR_IRI,
RASQAL_EXPR_STRLANG, RASQAL_EXPR_STRLANG,
RASQAL_EXPR_STRDT, RASQAL_EXPR_STRDT,
RASQAL_EXPR_BNODE, RASQAL_EXPR_BNODE,
RASQAL_EXPR_GROUP_CONCAT, RASQAL_EXPR_GROUP_CONCAT,
RASQAL_EXPR_SAMPLE, RASQAL_EXPR_SAMPLE,
RASQAL_EXPR_IN, RASQAL_EXPR_IN,
RASQAL_EXPR_NOT_IN, RASQAL_EXPR_NOT_IN,
RASQAL_EXPR_ISNUMERIC, RASQAL_EXPR_ISNUMERIC,
RASQAL_EXPR_YEAR,
RASQAL_EXPR_MONTH,
RASQAL_EXPR_DAY,
RASQAL_EXPR_HOURS,
RASQAL_EXPR_MINUTES,
RASQAL_EXPR_SECONDS,
RASQAL_EXPR_TIMEZONE,
RASQAL_EXPR_CURRENT_DATETIME,
RASQAL_EXPR_NOW,
RASQAL_EXPR_FROM_UNIXTIME,
RASQAL_EXPR_TO_UNIXTIME,
RASQAL_EXPR_CONCAT,
RASQAL_EXPR_STRLEN,
RASQAL_EXPR_SUBSTR,
RASQAL_EXPR_UCASE,
RASQAL_EXPR_LCASE,
RASQAL_EXPR_STRSTARTS,
RASQAL_EXPR_STRENDS,
RASQAL_EXPR_CONTAINS,
RASQAL_EXPR_ENCODE_FOR_URI,
/* internal */ /* internal */
RASQAL_EXPR_LAST = RASQAL_EXPR_ISNUMERIC RASQAL_EXPR_LAST = RASQAL_EXPR_ENCODE_FOR_URI
} 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 670 skipping to change at line 753
} rasqal_triple; } rasqal_triple;
/** /**
* rasqal_pattern_flags: * rasqal_pattern_flags:
* @RASQAL_PATTERN_FLAGS_OPTIONAL: True when the graph pattern is an option al match. * @RASQAL_PATTERN_FLAGS_OPTIONAL: True when the graph pattern is an option al match.
* @RASQAL_PATTERN_FLAGS_LAST: Internal * @RASQAL_PATTERN_FLAGS_LAST: Internal
* *
* Flags for #rasqal_graph_pattern. * Flags for #rasqal_graph_pattern.
*/ */
typedef enum { typedef enum {
RASQAL_PATTERN_FLAGS_OPTIONAL=1, RASQAL_PATTERN_FLAGS_OPTIONAL = 1,
RASQAL_PATTERN_FLAGS_LAST=RASQAL_PATTERN_FLAGS_OPTIONAL RASQAL_PATTERN_FLAGS_LAST = RASQAL_PATTERN_FLAGS_OPTIONAL
} rasqal_pattern_flags; } rasqal_pattern_flags;
#if !defined(RASQAL_DISABLE_DEPRECATED) /**
typedef unsigned char* (*rasqal_generate_bnodeid_handler)(rasqal_query* que * rasqal_generate_bnodeid_handler:
ry, void *user_data, unsigned char *user_bnodeid); * @world: world arg
#endif * @user_data: user data given to
* @user_bnodeid: user blank node ID string passed in
typedef unsigned char* (*rasqal_generate_bnodeid_handler2)(rasqal_world* wo *
rld, void *user_data, unsigned char *user_bnodeid); * User handler used with rasqal_world_set_generate_bnodeid_handler() to se
t method for generating a blank node ID.
*
* Return value: blank node ID string or NULL on failure.
*/
typedef unsigned char* (*rasqal_generate_bnodeid_handler)(rasqal_world* wor
ld, void *user_data, unsigned char *user_bnodeid);
/** /**
* rasqal_query_verb: * rasqal_query_verb:
* @RASQAL_QUERY_VERB_SELECT: RDQL/SPARQL query select verb. * @RASQAL_QUERY_VERB_SELECT: RDQL/SPARQL query select verb.
* @RASQAL_QUERY_VERB_CONSTRUCT: SPARQL query construct verb. * @RASQAL_QUERY_VERB_CONSTRUCT: SPARQL query construct verb.
* @RASQAL_QUERY_VERB_DESCRIBE: SPARQL query describe verb. * @RASQAL_QUERY_VERB_DESCRIBE: SPARQL query describe verb.
* @RASQAL_QUERY_VERB_ASK: SPARQL query ask verb. * @RASQAL_QUERY_VERB_ASK: SPARQL query ask verb.
* @RASQAL_QUERY_VERB_DELETE: LAQRS query delete verb. * @RASQAL_QUERY_VERB_DELETE: LAQRS query delete verb.
* @RASQAL_QUERY_VERB_INSERT: LAQRS query insert verb. * @RASQAL_QUERY_VERB_INSERT: LAQRS query insert verb.
* @RASQAL_QUERY_VERB_UPDATE: SPARQL 1.1 (draft) update operation * @RASQAL_QUERY_VERB_UPDATE: SPARQL 1.1 (draft) update operation
skipping to change at line 717 skipping to change at line 806
/* internal */ /* internal */
RASQAL_QUERY_VERB_LAST = RASQAL_QUERY_VERB_UPDATE RASQAL_QUERY_VERB_LAST = RASQAL_QUERY_VERB_UPDATE
} rasqal_query_verb; } rasqal_query_verb;
/** /**
* rasqal_query_results_type: * rasqal_query_results_type:
* @RASQAL_QUERY_RESULTS_BINDINGS: variable binding * @RASQAL_QUERY_RESULTS_BINDINGS: variable binding
* @RASQAL_QUERY_RESULTS_BOOLEAN: a single boolean * @RASQAL_QUERY_RESULTS_BOOLEAN: a single boolean
* @RASQAL_QUERY_RESULTS_GRAPH: an RDF graph * @RASQAL_QUERY_RESULTS_GRAPH: an RDF graph
* @RASQAL_QUERY_RESULTS_SYNTAX: a syntax * @RASQAL_QUERY_RESULTS_SYNTAX: a syntax
* @RASQAL_QUERY_RESULTS_UNKNOWN: unknown type
* *
* Query result type. * Query result type.
*/ */
typedef enum { typedef enum {
RASQAL_QUERY_RESULTS_BINDINGS, RASQAL_QUERY_RESULTS_BINDINGS,
RASQAL_QUERY_RESULTS_BOOLEAN, RASQAL_QUERY_RESULTS_BOOLEAN,
RASQAL_QUERY_RESULTS_GRAPH, RASQAL_QUERY_RESULTS_GRAPH,
RASQAL_QUERY_RESULTS_SYNTAX RASQAL_QUERY_RESULTS_SYNTAX,
RASQAL_QUERY_RESULTS_UNKNOWN
} rasqal_query_results_type; } rasqal_query_results_type;
/** /**
* rasqal_update_type: * rasqal_update_type:
* @RASQAL_UPDATE_TYPE_CLEAR: Clear graph. * @RASQAL_UPDATE_TYPE_CLEAR: Clear graph.
* @RASQAL_UPDATE_TYPE_CREATE: Create graph. * @RASQAL_UPDATE_TYPE_CREATE: Create graph.
* @RASQAL_UPDATE_TYPE_DROP: Drop graph. * @RASQAL_UPDATE_TYPE_DROP: Drop graph.
* @RASQAL_UPDATE_TYPE_LOAD: Load graph. * @RASQAL_UPDATE_TYPE_LOAD: Load graph.
* @RASQAL_UPDATE_TYPE_UPDATE: Insert or Delete graph or triples. * @RASQAL_UPDATE_TYPE_UPDATE: Insert or Delete graph or triples.
* @RASQAL_UPDATE_TYPE_UNKNOWN: Internal * @RASQAL_UPDATE_TYPE_UNKNOWN: Internal
skipping to change at line 857 skipping to change at line 948
RASQAL_API RASQAL_API
int rasqal_world_open(rasqal_world* world); int rasqal_world_open(rasqal_world* world);
RASQAL_API RASQAL_API
void rasqal_free_world(rasqal_world* world); void rasqal_free_world(rasqal_world* world);
RASQAL_API RASQAL_API
void rasqal_world_set_raptor(rasqal_world* world, raptor_world* raptor_worl d_ptr); void rasqal_world_set_raptor(rasqal_world* world, raptor_world* raptor_worl d_ptr);
RASQAL_API RASQAL_API
raptor_world *rasqal_world_get_raptor(rasqal_world* world); raptor_world *rasqal_world_get_raptor(rasqal_world* world);
#if 0
RASQAL_API RASQAL_API
void rasqal_world_set_log_handler(rasqal_world* world, void *user_data, rap tor_log_handler handler); void rasqal_world_set_log_handler(rasqal_world* world, void *user_data, rap tor_log_handler handler);
#endif
RASQAL_API RASQAL_API
int rasqal_world_set_default_generate_bnodeid_parameters(rasqal_world* worl d, char *prefix, int base); int rasqal_world_set_default_generate_bnodeid_parameters(rasqal_world* worl d, char *prefix, int base);
RASQAL_API RASQAL_API
int rasqal_world_set_generate_bnodeid_handler(rasqal_world* world, void *us int rasqal_world_set_generate_bnodeid_handler(rasqal_world* world, void *us
er_data, rasqal_generate_bnodeid_handler2 handler); er_data, rasqal_generate_bnodeid_handler handler);
RASQAL_API
const raptor_syntax_description* rasqal_world_get_query_results_format_desc
ription(rasqal_world* world, unsigned int counter);
RASQAL_API
const char* rasqal_world_guess_query_results_format_name(rasqal_world* worl
d, raptor_uri *uri, const char *mime_type, const unsigned char *buffer, siz
e_t len, const unsigned char *identifier);
/* Features */ /* Features */
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);
skipping to change at line 899 skipping to change at line 994
/* Destroy */ /* Destroy */
RASQAL_API RASQAL_API
void rasqal_free_query(rasqal_query* query); void rasqal_free_query(rasqal_query* query);
/* Methods */ /* Methods */
RASQAL_API RASQAL_API
const char* rasqal_query_get_name(rasqal_query* query); const char* rasqal_query_get_name(rasqal_query* query);
RASQAL_API RASQAL_API
const char* rasqal_query_get_label(rasqal_query* query); const char* rasqal_query_get_label(rasqal_query* query);
/* on raptor2: use rasqal_world_set_log_handler() instead of these */
#if 0
typedef void* raptor_message_handler;
#endif
RASQAL_API
void rasqal_query_set_fatal_error_handler(rasqal_query* query, void *user_d
ata, raptor_message_handler handler);
RASQAL_API
void rasqal_query_set_error_handler(rasqal_query* query, void *user_data, r
aptor_message_handler handler);
RASQAL_API
void rasqal_query_set_warning_handler(rasqal_query* query, void *user_data,
raptor_message_handler handler);
RASQAL_API RASQAL_API
int rasqal_query_set_feature(rasqal_query* query, rasqal_feature feature, i nt value); int rasqal_query_set_feature(rasqal_query* query, rasqal_feature feature, i nt value);
RASQAL_API RASQAL_API
int rasqal_query_set_feature_string(rasqal_query *query, rasqal_feature fea ture, const unsigned char *value); int rasqal_query_set_feature_string(rasqal_query *query, rasqal_feature fea ture, const unsigned char *value);
RASQAL_API RASQAL_API
int rasqal_query_get_feature(rasqal_query *query, rasqal_feature feature); int rasqal_query_get_feature(rasqal_query *query, rasqal_feature feature);
RASQAL_API RASQAL_API
const unsigned char* rasqal_query_get_feature_string(rasqal_query *query, r asqal_feature feature); const unsigned char* rasqal_query_get_feature_string(rasqal_query *query, r asqal_feature feature);
#if !defined(RASQAL_DISABLE_DEPRECATED)
RASQAL_API RASQAL_DEPRECATED
void rasqal_query_set_default_generate_bnodeid_parameters(rasqal_query* rdf
_query, char *prefix, int base);
RASQAL_API RASQAL_DEPRECATED
void rasqal_query_set_generate_bnodeid_handler(rasqal_query* query, void *u
ser_data, rasqal_generate_bnodeid_handler handler);
#endif
RASQAL_API RASQAL_API
rasqal_query_verb rasqal_query_get_verb(rasqal_query* query); rasqal_query_verb rasqal_query_get_verb(rasqal_query* query);
RASQAL_API RASQAL_API
int rasqal_query_get_wildcard(rasqal_query* query); int rasqal_query_get_wildcard(rasqal_query* query);
RASQAL_API RASQAL_API
int rasqal_query_get_distinct(rasqal_query* query); int rasqal_query_get_distinct(rasqal_query* query);
RASQAL_API RASQAL_API
void rasqal_query_set_distinct(rasqal_query* query, int distinct_mode); void rasqal_query_set_distinct(rasqal_query* query, int distinct_mode);
RASQAL_API RASQAL_API
skipping to change at line 946 skipping to change at line 1024
void rasqal_query_set_explain(rasqal_query* query, int is_explain); void rasqal_query_set_explain(rasqal_query* query, int is_explain);
RASQAL_API RASQAL_API
int rasqal_query_get_limit(rasqal_query* query); int rasqal_query_get_limit(rasqal_query* query);
RASQAL_API RASQAL_API
void rasqal_query_set_limit(rasqal_query* query, int limit); void rasqal_query_set_limit(rasqal_query* query, int limit);
RASQAL_API RASQAL_API
int rasqal_query_get_offset(rasqal_query* query); int rasqal_query_get_offset(rasqal_query* query);
RASQAL_API RASQAL_API
void rasqal_query_set_offset(rasqal_query* query, int offset); void rasqal_query_set_offset(rasqal_query* query, int offset);
RASQAL_API RASQAL_DEPRECATED
int rasqal_query_add_data_graph(rasqal_query* query, raptor_uri* uri, rapto
r_uri* name_uri, int flags);
RASQAL_API RASQAL_API
int rasqal_query_add_data_graph2(rasqal_query* query, rasqal_data_graph* da ta_graph); int rasqal_query_add_data_graph(rasqal_query* query, rasqal_data_graph* dat a_graph);
RASQAL_API RASQAL_API
int rasqal_query_add_data_graphs(rasqal_query* query, raptor_sequence* data _graphs); int rasqal_query_add_data_graphs(rasqal_query* query, raptor_sequence* data _graphs);
RASQAL_API RASQAL_API
raptor_sequence* rasqal_query_get_data_graph_sequence(rasqal_query* query); raptor_sequence* rasqal_query_get_data_graph_sequence(rasqal_query* query);
RASQAL_API RASQAL_API
rasqal_data_graph* rasqal_query_get_data_graph(rasqal_query* query, int idx ); rasqal_data_graph* rasqal_query_get_data_graph(rasqal_query* query, int idx );
RASQAL_API RASQAL_API
int rasqal_query_dataset_contains_named_graph(rasqal_query* query, raptor_u ri *graph_uri); int rasqal_query_dataset_contains_named_graph(rasqal_query* query, raptor_u ri *graph_uri);
skipping to change at line 1013 skipping to change at line 1089
void rasqal_query_graph_pattern_visit(rasqal_query* query, rasqal_graph_pat tern_visit_fn visit_fn, void* data); void rasqal_query_graph_pattern_visit(rasqal_query* query, rasqal_graph_pat tern_visit_fn visit_fn, void* data);
RASQAL_API RASQAL_API
int rasqal_query_write(raptor_iostream* iostr, rasqal_query* query, raptor_ uri* format_uri, raptor_uri* base_uri); int rasqal_query_write(raptor_iostream* iostr, rasqal_query* query, raptor_ uri* format_uri, raptor_uri* base_uri);
/* update */ /* update */
RASQAL_API RASQAL_API
raptor_sequence* rasqal_query_get_update_operations_sequence(rasqal_query* query); raptor_sequence* rasqal_query_get_update_operations_sequence(rasqal_query* query);
RASQAL_API RASQAL_API
rasqal_update_operation* rasqal_query_get_update_operation(rasqal_query* qu ery, int idx); rasqal_update_operation* rasqal_query_get_update_operation(rasqal_query* qu ery, int idx);
/* results */
int rasqal_query_set_store_results(rasqal_query* query, int store_results);
/* graph patterns */ /* graph patterns */
RASQAL_API RASQAL_API
rasqal_graph_pattern* rasqal_query_get_query_graph_pattern(rasqal_query* qu ery); rasqal_graph_pattern* rasqal_query_get_query_graph_pattern(rasqal_query* qu ery);
RASQAL_API RASQAL_API
raptor_sequence* rasqal_query_get_graph_pattern_sequence(rasqal_query* quer y); raptor_sequence* rasqal_query_get_graph_pattern_sequence(rasqal_query* quer y);
RASQAL_API RASQAL_API
rasqal_graph_pattern* rasqal_query_get_graph_pattern(rasqal_query* query, i nt idx); rasqal_graph_pattern* rasqal_query_get_graph_pattern(rasqal_query* query, i nt idx);
RASQAL_API RASQAL_API
int rasqal_graph_pattern_add_sub_graph_pattern(rasqal_graph_pattern* graph_ pattern, rasqal_graph_pattern* sub_graph_pattern); int rasqal_graph_pattern_add_sub_graph_pattern(rasqal_graph_pattern* graph_ pattern, rasqal_graph_pattern* sub_graph_pattern);
RASQAL_API RASQAL_API
skipping to change at line 1076 skipping to change at line 1155
void rasqal_query_set_user_data(rasqal_query* query, void *user_data); void rasqal_query_set_user_data(rasqal_query* query, void *user_data);
RASQAL_API RASQAL_API
raptor_sequence* rasqal_query_get_bindings_variables_sequence(rasqal_query* query); raptor_sequence* rasqal_query_get_bindings_variables_sequence(rasqal_query* query);
RASQAL_API RASQAL_API
rasqal_variable* rasqal_query_get_bindings_variable(rasqal_query* query, in t idx); rasqal_variable* rasqal_query_get_bindings_variable(rasqal_query* query, in t idx);
RASQAL_API RASQAL_API
raptor_sequence* rasqal_query_get_bindings_rows_sequence(rasqal_query* quer y); raptor_sequence* rasqal_query_get_bindings_rows_sequence(rasqal_query* quer y);
RASQAL_API RASQAL_API
rasqal_row* rasqal_query_get_bindings_row(rasqal_query* query, int idx); rasqal_row* rasqal_query_get_bindings_row(rasqal_query* query, int idx);
RASQAL_API
rasqal_query_results_type rasqal_query_get_result_type(rasqal_query* query)
;
/* query results */ /* query results */
RASQAL_API RASQAL_API
rasqal_query_results* rasqal_new_query_results(rasqal_world* world, rasqal_ query* query, rasqal_query_results_type type, rasqal_variables_table* vars_ table); rasqal_query_results* rasqal_new_query_results(rasqal_world* world, rasqal_ query* query, rasqal_query_results_type type, rasqal_variables_table* vars_ table);
RASQAL_API RASQAL_API
void rasqal_free_query_results(rasqal_query_results *query_results); void rasqal_free_query_results(rasqal_query_results *query_results);
RASQAL_API RASQAL_API
rasqal_query* rasqal_query_results_get_query(rasqal_query_results* query_re sults); rasqal_query* rasqal_query_results_get_query(rasqal_query_results* query_re sults);
/* Bindings result format */ /* Bindings result format */
RASQAL_API RASQAL_API
rasqal_query_results_type rasqal_query_results_get_type(rasqal_query_result
s* query_results);
RASQAL_API
int rasqal_query_results_is_bindings(rasqal_query_results *query_results); int rasqal_query_results_is_bindings(rasqal_query_results *query_results);
RASQAL_API RASQAL_API
int rasqal_query_results_get_count(rasqal_query_results *query_results); int rasqal_query_results_get_count(rasqal_query_results *query_results);
RASQAL_API RASQAL_API
int rasqal_query_results_next(rasqal_query_results *query_results); int rasqal_query_results_next(rasqal_query_results *query_results);
RASQAL_API RASQAL_API
int rasqal_query_results_finished(rasqal_query_results *query_results); int rasqal_query_results_finished(rasqal_query_results *query_results);
RASQAL_API RASQAL_API
int rasqal_query_results_get_bindings(rasqal_query_results *query_results, const unsigned char ***names, rasqal_literal ***values); int rasqal_query_results_get_bindings(rasqal_query_results *query_results, const unsigned char ***names, rasqal_literal ***values);
RASQAL_API RASQAL_API
rasqal_literal* rasqal_query_results_get_binding_value(rasqal_query_results *query_results, int offset); rasqal_literal* rasqal_query_results_get_binding_value(rasqal_query_results *query_results, int offset);
RASQAL_API RASQAL_API
const unsigned char* rasqal_query_results_get_binding_name(rasqal_query_res ults *query_results, int offset); const unsigned char* rasqal_query_results_get_binding_name(rasqal_query_res ults *query_results, int offset);
RASQAL_API RASQAL_API
rasqal_literal* rasqal_query_results_get_binding_value_by_name(rasqal_query _results *query_results, const unsigned char *name); rasqal_literal* rasqal_query_results_get_binding_value_by_name(rasqal_query _results *query_results, const unsigned char *name);
RASQAL_API RASQAL_API
int rasqal_query_results_get_bindings_count(rasqal_query_results *query_res ults); int rasqal_query_results_get_bindings_count(rasqal_query_results *query_res ults);
RASQAL_API RASQAL_API
int rasqal_query_results_add_row(rasqal_query_results* query_results, rasqa l_row* row); int rasqal_query_results_add_row(rasqal_query_results* query_results, rasqa l_row* row);
RASQAL_API
rasqal_row* rasqal_query_results_get_row_by_offset(rasqal_query_results* qu
ery_results, int result_offset);
/* Boolean result format */ /* Boolean result format */
RASQAL_API RASQAL_API
int rasqal_query_results_is_boolean(rasqal_query_results *query_results); int rasqal_query_results_is_boolean(rasqal_query_results *query_results);
RASQAL_API RASQAL_API
int rasqal_query_results_get_boolean(rasqal_query_results *query_results); int rasqal_query_results_get_boolean(rasqal_query_results *query_results);
/* Graph result format */ /* Graph result format */
RASQAL_API RASQAL_API
int rasqal_query_results_is_graph(rasqal_query_results *query_results); int rasqal_query_results_is_graph(rasqal_query_results *query_results);
RASQAL_API RASQAL_API
raptor_statement* rasqal_query_results_get_triple(rasqal_query_results *que ry_results); raptor_statement* rasqal_query_results_get_triple(rasqal_query_results *que ry_results);
RASQAL_API RASQAL_API
int rasqal_query_results_next_triple(rasqal_query_results *query_results); int rasqal_query_results_next_triple(rasqal_query_results *query_results);
/* Syntax result format */ /* Syntax result format */
RASQAL_API RASQAL_API
int rasqal_query_results_is_syntax(rasqal_query_results* query_results); int rasqal_query_results_is_syntax(rasqal_query_results* query_results);
#if !defined(RASQAL_DISABLE_DEPRECATED)
RASQAL_API RASQAL_DEPRECATED
int rasqal_query_results_write(raptor_iostream *iostr, rasqal_query_results
*results, raptor_uri *format_uri, raptor_uri *base_uri);
#endif
RASQAL_API RASQAL_API
int rasqal_query_results_write2(raptor_iostream *iostr, rasqal_query_result int rasqal_query_results_write(raptor_iostream *iostr, rasqal_query_results
s *results, const char* name, const char* mime_type, raptor_uri *format_uri *results, const char* name, const char* mime_type, raptor_uri *format_uri,
, raptor_uri *base_uri); raptor_uri *base_uri);
#if !defined(RASQAL_DISABLE_DEPRECATED)
RASQAL_API RASQAL_DEPRECATED
int rasqal_query_results_read(raptor_iostream *iostr, rasqal_query_results
*results, raptor_uri *format_uri, raptor_uri *base_uri);
#endif
RASQAL_API RASQAL_API
int rasqal_query_results_read2(raptor_iostream *iostr, rasqal_query_results *results, const char* name, const char* mime_type, raptor_uri *format_uri, raptor_uri *base_uri); int rasqal_query_results_read(raptor_iostream *iostr, rasqal_query_results *results, const char* name, const char* mime_type, raptor_uri *format_uri, raptor_uri *base_uri);
/** /* One more time */
* RASQAL_QUERY_RESULTS_FORMAT_FLAG_READER: RASQAL_API
* int rasqal_query_results_rewind(rasqal_query_results* query_results);
* Flag for rasqal_query_results_formats_enumerate() to get query results f
ormats that can be read.
*/
#define RASQAL_QUERY_RESULTS_FORMAT_FLAG_READER 1
/** /**
* RASQAL_QUERY_RESULTS_FORMAT_FLAG_WRITER: * rasqal_query_results_format_flags:
* @RASQAL_QUERY_RESULTS_FORMAT_FLAG_READER: format can be read.
* @RASQAL_QUERY_RESULTS_FORMAT_FLAG_WRITER: format can be written.
* *
* Flag for rasqal_query_results_formats_enumerate() to get query results f ormats that can be written. * Bitflags for rasqal_query_results_formats_check() to find formats with f eatures.
*/ */
#define RASQAL_QUERY_RESULTS_FORMAT_FLAG_WRITER 2 typedef enum {
RASQAL_QUERY_RESULTS_FORMAT_FLAG_READER = 1,
RASQAL_QUERY_RESULTS_FORMAT_FLAG_WRITER = 2
} rasqal_query_results_format_flags;
RASQAL_API RASQAL_API
int rasqal_query_results_formats_enumerate(rasqal_world* world, unsigned in t counter, const char **name, const char **label, const unsigned char **uri _string, const char **mime_type, int* flags); int rasqal_query_results_formats_check(rasqal_world* world, const char *nam e, raptor_uri* uri, const char *mime_type, int flags);
RASQAL_API RASQAL_API
int rasqal_query_results_formats_check2(rasqal_world* world, const char *na rasqal_query_results_formatter* rasqal_new_query_results_formatter(rasqal_w
me, raptor_uri* uri, const char *mime_type, int flags); orld* world, const char *name, const char *mime_type, raptor_uri* format_ur
RASQAL_API RASQAL_DEPRECATED i);
int rasqal_query_results_formats_check(rasqal_world* world, const char *nam
e, raptor_uri* uri, const char *mime_type);
RASQAL_API RASQAL_API
rasqal_query_results_formatter* rasqal_new_query_results_formatter2(rasqal_ rasqal_query_results_formatter* rasqal_new_query_results_formatter_for_cont
world* world, const char *name, const char *mime_type, raptor_uri* format_u ent(rasqal_world* world, raptor_uri *uri, const char *mime_type, const unsi
ri); gned char *buffer, size_t len, const unsigned char *identifier);
#if !defined(RASQAL_DISABLE_DEPRECATED)
RASQAL_API RASQAL_DEPRECATED
rasqal_query_results_formatter* rasqal_new_query_results_formatter(rasqal_w
orld* world, const char *name, raptor_uri* format_uri);
RASQAL_API RASQAL_DEPRECATED
rasqal_query_results_formatter* rasqal_new_query_results_formatter_by_mime_
type(rasqal_world* world, const char *mime_type);
#endif
RASQAL_API RASQAL_API
void rasqal_free_query_results_formatter(rasqal_query_results_formatter* fo rmatter); void rasqal_free_query_results_formatter(rasqal_query_results_formatter* fo rmatter);
RASQAL_API RASQAL_API
int rasqal_query_results_formatter_write(raptor_iostream *iostr, rasqal_que ry_results_formatter* formatter, rasqal_query_results* results, raptor_uri *base_uri); int rasqal_query_results_formatter_write(raptor_iostream *iostr, rasqal_que ry_results_formatter* formatter, rasqal_query_results* results, raptor_uri *base_uri);
RASQAL_API RASQAL_API
int rasqal_query_results_formatter_read(rasqal_world* world, raptor_iostrea m *iostr, rasqal_query_results_formatter* formatter, rasqal_query_results* results, raptor_uri *base_uri); int rasqal_query_results_formatter_read(rasqal_world* world, raptor_iostrea m *iostr, rasqal_query_results_formatter* formatter, rasqal_query_results* results, raptor_uri *base_uri);
RASQAL_API
const char* rasqal_query_results_formatter_get_mime_type(rasqal_query_resul
ts_formatter *formatter);
RASQAL_API RASQAL_API
int rasqal_query_iostream_write_escaped_counted_string(rasqal_query* query, raptor_iostream* iostr, const unsigned char* string, size_t len); int rasqal_query_iostream_write_escaped_counted_string(rasqal_query* query, raptor_iostream* iostr, const unsigned char* string, size_t len);
RASQAL_API RASQAL_API
unsigned char* rasqal_query_escape_counted_string(rasqal_query* query, cons t unsigned char *string, size_t len, size_t* output_len_p); unsigned char* rasqal_query_escape_counted_string(rasqal_query* query, cons t unsigned char *string, size_t len, size_t* output_len_p);
/* Data graph class */ /* Data graph class */
RASQAL_API RASQAL_API
rasqal_data_graph* rasqal_new_data_graph_from_uri(rasqal_world* world, rapt or_uri* uri, raptor_uri* name_uri, int flags, const char* format_type, cons t char* format_name, raptor_uri* format_uri); rasqal_data_graph* rasqal_new_data_graph_from_uri(rasqal_world* world, rapt or_uri* uri, raptor_uri* name_uri, int flags, const char* format_type, cons t char* format_name, raptor_uri* format_uri);
RASQAL_API RASQAL_API
rasqal_data_graph* rasqal_new_data_graph_from_iostream(rasqal_world* world, raptor_iostream* iostr, raptor_uri* base_uri, raptor_uri* name_uri, int fl ags, const char* format_type, const char* format_name, raptor_uri* format_u ri); rasqal_data_graph* rasqal_new_data_graph_from_iostream(rasqal_world* world, raptor_iostream* iostr, raptor_uri* base_uri, raptor_uri* name_uri, int fl ags, const char* format_type, const char* format_name, raptor_uri* format_u ri);
RASQAL_API RASQAL_DEPRECATED
rasqal_data_graph* rasqal_new_data_graph(rasqal_world* world, raptor_uri* u
ri, raptor_uri* name_uri, int flags);
RASQAL_API RASQAL_API
rasqal_data_graph* rasqal_new_data_graph_from_data_graph(rasqal_data_graph* dg); rasqal_data_graph* rasqal_new_data_graph_from_data_graph(rasqal_data_graph* dg);
RASQAL_API RASQAL_API
void rasqal_free_data_graph(rasqal_data_graph* dg); void rasqal_free_data_graph(rasqal_data_graph* dg);
RASQAL_API RASQAL_API
int rasqal_data_graph_print(rasqal_data_graph* dg, FILE* fh); int rasqal_data_graph_print(rasqal_data_graph* dg, FILE* fh);
/** /**
* rasqal_compare_flags: * rasqal_compare_flags:
* @RASQAL_COMPARE_NOCASE: String comparisons are case independent. * @RASQAL_COMPARE_NOCASE: String comparisons are case independent.
skipping to change at line 1228 skipping to change at line 1295
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
rasqal_expression* rasqal_new_string_op_expression(rasqal_world* world, ras qal_op op, rasqal_expression* arg1, rasqal_literal* literal); rasqal_expression* rasqal_new_string_op_expression(rasqal_world* world, ras qal_op op, rasqal_expression* arg1, rasqal_literal* literal);
RASQAL_API RASQAL_API
rasqal_expression* rasqal_new_literal_expression(rasqal_world* world, rasqa l_literal* literal); rasqal_expression* rasqal_new_literal_expression(rasqal_world* world, rasqa l_literal* literal);
RASQAL_API RASQAL_API
rasqal_expression* rasqal_new_function_expression2(rasqal_world* world, rap rasqal_expression* rasqal_new_function_expression(rasqal_world* world, rapt
tor_uri* name, raptor_sequence* args, raptor_sequence* params, unsigned int or_uri* name, raptor_sequence* args, raptor_sequence* params, unsigned int
flags); flags);
#if !defined(RASQAL_DISABLE_DEPRECATED)
RASQAL_API RASQAL_DEPRECATED
rasqal_expression* rasqal_new_function_expression(rasqal_world* world, rapt
or_uri* name, raptor_sequence* args);
#endif
RASQAL_API RASQAL_API
rasqal_expression* rasqal_new_aggregate_function_expression(rasqal_world* w orld, rasqal_op op, rasqal_expression* arg1, raptor_sequence* params, unsig ned int flags); rasqal_expression* rasqal_new_aggregate_function_expression(rasqal_world* w orld, rasqal_op op, rasqal_expression* arg1, raptor_sequence* params, unsig ned int flags);
RASQAL_API RASQAL_API
rasqal_expression* rasqal_new_cast_expression(rasqal_world* world, raptor_u ri* name, rasqal_expression *value); rasqal_expression* rasqal_new_cast_expression(rasqal_world* world, raptor_u ri* name, rasqal_expression *value);
RASQAL_API RASQAL_API
rasqal_expression* rasqal_new_coalesce_expression(rasqal_world* world, rapt or_sequence* args); rasqal_expression* rasqal_new_expr_seq_expression(rasqal_world* world, rasq al_op op, raptor_sequence* args);
RASQAL_API RASQAL_API
rasqal_expression* rasqal_new_set_expression(rasqal_world* world, rasqal_op op, rasqal_expression* arg1, raptor_sequence* args); rasqal_expression* rasqal_new_set_expression(rasqal_world* world, rasqal_op op, rasqal_expression* arg1, raptor_sequence* args);
RASQAL_API RASQAL_API
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
skipping to change at line 1298 skipping to change at line 1361
RASQAL_API RASQAL_API
rasqal_literal* rasqal_new_simple_literal(rasqal_world* world, rasqal_liter al_type type, const unsigned char *string); rasqal_literal* rasqal_new_simple_literal(rasqal_world* world, rasqal_liter al_type type, const unsigned char *string);
RASQAL_API RASQAL_API
rasqal_literal* rasqal_new_boolean_literal(rasqal_world* world, int value); rasqal_literal* rasqal_new_boolean_literal(rasqal_world* world, int value);
RASQAL_API RASQAL_API
rasqal_literal* rasqal_new_variable_literal(rasqal_world* world, rasqal_var iable *variable); rasqal_literal* rasqal_new_variable_literal(rasqal_world* world, rasqal_var iable *variable);
RASQAL_API RASQAL_API
rasqal_literal* rasqal_new_decimal_literal(rasqal_world* world, const unsig ned char *string); rasqal_literal* rasqal_new_decimal_literal(rasqal_world* world, const unsig ned char *string);
RASQAL_API RASQAL_API
rasqal_literal* rasqal_new_decimal_literal_from_decimal(rasqal_world* world , const unsigned char *string, rasqal_xsd_decimal* decimal); rasqal_literal* rasqal_new_decimal_literal_from_decimal(rasqal_world* world , const unsigned char *string, rasqal_xsd_decimal* decimal);
RASQAL_API
rasqal_literal* rasqal_new_datetime_literal_from_datetime(rasqal_world* wor
ld, rasqal_xsd_datetime* dt);
RASQAL_API RASQAL_API
rasqal_literal* rasqal_new_literal_from_literal(rasqal_literal* l); rasqal_literal* rasqal_new_literal_from_literal(rasqal_literal* l);
RASQAL_API RASQAL_API
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);
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);
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);
skipping to change at line 1360 skipping to change at line 1427
RASQAL_API RASQAL_API
void rasqal_free_triple(rasqal_triple* t); void rasqal_free_triple(rasqal_triple* t);
RASQAL_API RASQAL_API
int rasqal_triple_print(rasqal_triple* t, FILE* fh); int rasqal_triple_print(rasqal_triple* t, FILE* fh);
RASQAL_API RASQAL_API
void rasqal_triple_set_origin(rasqal_triple* t, rasqal_literal *l); void rasqal_triple_set_origin(rasqal_triple* t, rasqal_literal *l);
RASQAL_API RASQAL_API
rasqal_literal* rasqal_triple_get_origin(rasqal_triple* t); rasqal_literal* rasqal_triple_get_origin(rasqal_triple* t);
/* Variable class */ /* Variable class */
RASQAL_API RASQAL_DEPRECATED
rasqal_variable* rasqal_new_variable_typed(rasqal_query* rq, rasqal_variabl
e_type type, unsigned char *name, rasqal_literal *value);
RASQAL_API RASQAL_DEPRECATED
rasqal_variable* rasqal_new_variable(rasqal_query* rq, unsigned char *name,
rasqal_literal *value);
RASQAL_API RASQAL_API
rasqal_variable* rasqal_new_variable_from_variable(rasqal_variable* v); rasqal_variable* rasqal_new_variable_from_variable(rasqal_variable* v);
RASQAL_API RASQAL_API
void rasqal_free_variable(rasqal_variable* v); void rasqal_free_variable(rasqal_variable* v);
RASQAL_API RASQAL_API
int rasqal_variable_print(rasqal_variable* v, FILE* fh); int rasqal_variable_print(rasqal_variable* v, FILE* fh);
RASQAL_API RASQAL_API
void rasqal_variable_set_value(rasqal_variable* v, rasqal_literal* l); void rasqal_variable_set_value(rasqal_variable* v, rasqal_literal* l);
/* Variables Table */ /* Variables Table */
skipping to change at line 1425 skipping to change at line 1488
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);
/* datetime functions */
RASQAL_API
rasqal_xsd_datetime* rasqal_new_xsd_datetime(rasqal_world* world, const cha
r *datetime_string);
RASQAL_API
rasqal_xsd_datetime* rasqal_new_xsd_datetime_from_unixtime(rasqal_world* wo
rld, time_t secs);
RASQAL_API
rasqal_xsd_datetime* rasqal_new_xsd_datetime_from_timeval(rasqal_world* wor
ld, struct timeval *tv);
RASQAL_API
void rasqal_free_xsd_datetime(rasqal_xsd_datetime* dt);
RASQAL_API
char* rasqal_xsd_datetime_to_counted_string(const rasqal_xsd_datetime *dt,
size_t *len_p);
RASQAL_API
char* rasqal_xsd_datetime_to_string(const rasqal_xsd_datetime *dt);
RASQAL_API
int rasqal_xsd_datetime_equals(const rasqal_xsd_datetime *dt1, const rasqal
_xsd_datetime *dt2);
RASQAL_API
int rasqal_xsd_datetime_compare(const rasqal_xsd_datetime *dt1, const rasqa
l_xsd_datetime *dt2);
RASQAL_API
rasqal_xsd_decimal* rasqal_xsd_datetime_get_seconds_as_decimal(rasqal_world
* world, rasqal_xsd_datetime* dt);
RASQAL_API
int rasqal_xsd_datetime_set_from_timeval(rasqal_xsd_datetime *dt, struct ti
meval *tv);
RASQAL_API
int rasqal_xsd_datetime_set_from_unixtime(rasqal_xsd_datetime* dt, time_t c
lock);
RASQAL_API
time_t rasqal_xsd_datetime_get_as_unixtime(rasqal_xsd_datetime* dt);
RASQAL_API
struct timeval* rasqal_xsd_datetime_get_as_timeval(rasqal_xsd_datetime *dt)
;
RASQAL_API
char* rasqal_xsd_datetime_get_timezone_as_counted_string(rasqal_xsd_datetim
e *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);
RASQAL_API RASQAL_API
skipping to change at line 1759 skipping to change at line 1852
*/ */
/** /**
* free_triples_source: * free_triples_source:
* @user_data: user data * @user_data: user data
* *
* Internal - see #rasqal_triples_source * Internal - see #rasqal_triples_source
*/ */
/** /**
* support_feature:
* @user_data: user data
* @feature: feature to test
*
* Internal - see #rasqal_triples_source
*/
/**
* rasqal_variables_table: * rasqal_variables_table:
* *
* Internal - for now * Internal - for now
*/ */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 46 change blocks. 
110 lines changed or deleted 218 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/