Raptor RDF Syntax Parsing and Serializing Library Manual | ||||
---|---|---|---|---|
Top | Description |
raptor_uri * (*raptor_new_uri_func) (void *context, unsigned char *uri_string); raptor_uri * (*raptor_new_uri_from_uri_local_name_func) (void *context, raptor_uri *uri, unsigned char *local_name); raptor_uri * (*raptor_new_uri_relative_to_base_func) (void *context, raptor_uri *base_uri, unsigned char *uri_string); raptor_uri * (*raptor_new_uri_for_rdf_concept_func) (void *context, const char *name); void (*raptor_free_uri_func) (void *context, raptor_uri *uri); int (*raptor_uri_equals_func) (void *context, raptor_uri *uri1, raptor_uri *uri2); raptor_uri * (*raptor_uri_copy_func) (void *context, raptor_uri *uri); int (*raptor_uri_compare_func) (void *context, raptor_uri *uri1, raptor_uri *uri2);
A factory that allows registering an implementation for the URI class to override the simple internal one (raptor_uri are char*). Normally used by redland to replace raptor_uri with librdf_uri
raptor_uri * (*raptor_new_uri_func) (void *context, unsigned char *uri_string);
Handler function for implementing raptor_new_uri()
.
|
URI context data |
|
URI string |
Returns : |
new URI object or NULL on failure |
raptor_uri * (*raptor_new_uri_from_uri_local_name_func) (void *context, raptor_uri *uri, unsigned char *local_name);
Handler function for implementing raptor_new_uri_from_uri_local_name()
.
|
URI context data |
|
URI object |
|
local name string |
Returns : |
new URI object or NULL on failure |
raptor_uri * (*raptor_new_uri_relative_to_base_func) (void *context, raptor_uri *base_uri, unsigned char *uri_string);
Handler function for implementing raptor_new_uri_relative_to_base()
.
|
URI context data |
|
base URI object |
|
relative URI string |
Returns : |
new URI object or NULL on failure |
raptor_uri * (*raptor_new_uri_for_rdf_concept_func) (void *context, const char *name);
Handler function for implementing raptor_new_uri_for_rdf_concept()
.
|
URI context data |
|
RDF term |
Returns : |
new URI object or NULL on failure |
void (*raptor_free_uri_func) (void *context, raptor_uri *uri);
Handler function for implementing raptor_free_uri()
.
|
URI context data |
|
URI object |
int (*raptor_uri_equals_func) (void *context, raptor_uri *uri1, raptor_uri *uri2);
Handler function for implementing raptor_uri_equals()
.
|
URI context data |
|
URI object 1 |
|
URI object 2 |
Returns : |
non-0 if the URIs are equal |
raptor_uri * (*raptor_uri_copy_func) (void *context, raptor_uri *uri);
Handler function for implementing raptor_uri_copy()
.
|
URI context data |
|
URI object |
Returns : |
new URI object or NULL on failure |
int (*raptor_uri_compare_func) (void *context, raptor_uri *uri1, raptor_uri *uri2);
Handler function for implementing raptor_uri_equals()
.
|
URI context data |
|
URI object 1 |
|
URI object 2 |
Returns : |
-1 if uri1 < uri2, 0 if equal, 1 if uri1 > uri2 |
Navigation: Redland Home Page