URI

URI — URI class and relative URI computation

Functions

raptor_uri * raptor_new_uri ()
raptor_uri * raptor_new_uri_from_counted_string ()
raptor_uri * raptor_new_uri_from_uri_local_name ()
raptor_uri * raptor_new_uri_from_uri_or_file_string ()
raptor_uri * raptor_new_uri_relative_to_base ()
raptor_uri * raptor_new_uri_relative_to_base_counted ()
raptor_uri * raptor_new_uri_from_id ()
raptor_uri * raptor_new_uri_for_rdf_concept ()
raptor_uri * raptor_new_uri_for_xmlbase ()
raptor_uri * raptor_new_uri_for_retrieval ()
void raptor_free_uri ()
int raptor_uri_compare ()
int raptor_uri_equals ()
raptor_uri * raptor_uri_copy ()
unsigned char * raptor_uri_as_string ()
unsigned char * raptor_uri_as_counted_string ()
unsigned char * raptor_uri_to_relative_counted_uri_string ()
unsigned char * raptor_uri_to_relative_uri_string ()
unsigned char * raptor_uri_to_counted_string ()
unsigned char * raptor_uri_to_string ()
size_t raptor_uri_resolve_uri_reference ()
unsigned char * raptor_uri_counted_filename_to_uri_string ()
unsigned char * raptor_uri_filename_to_uri_string ()
int raptor_uri_uri_string_is_absolute ()
int raptor_uri_uri_string_is_file_uri ()
char * raptor_uri_uri_string_to_filename ()
char * raptor_uri_uri_string_to_filename_fragment ()
char * raptor_uri_uri_string_to_counted_filename_fragment ()
int raptor_uri_print ()
raptor_world * raptor_uri_get_world ()
int raptor_uri_write ()
int raptor_uri_file_exists ()
int raptor_uri_filename_exists ()
unsigned char * raptor_uri_to_turtle_counted_string ()
unsigned char * raptor_uri_to_turtle_string ()
int raptor_uri_turtle_write ()

Types and Values

typedef raptor_uri

Description

A class for absolute URIs used inside raptor and relative URI computation utility functions used inside the main Redland librdf_uri class. Only absolute URIs are provided, with no current access to internals of URIs such as URI scheme, path, authority.

Functions

raptor_new_uri ()

raptor_uri *
raptor_new_uri (raptor_world *world,
                const unsigned char *uri_string);

Returns


raptor_new_uri_from_counted_string ()

raptor_uri *
raptor_new_uri_from_counted_string (raptor_world *world,
                                    const unsigned char *uri_string,
                                    size_t length);

Returns


raptor_new_uri_from_uri_local_name ()

raptor_uri *
raptor_new_uri_from_uri_local_name (raptor_world *world,
                                    raptor_uri *uri,
                                    const unsigned char *local_name);

Returns


raptor_new_uri_from_uri_or_file_string ()

raptor_uri *
raptor_new_uri_from_uri_or_file_string
                               (raptor_world *world,
                                raptor_uri *base_uri,
                                const unsigned char *uri_or_file_string);

Returns


raptor_new_uri_relative_to_base ()

raptor_uri *
raptor_new_uri_relative_to_base (raptor_world *world,
                                 raptor_uri *base_uri,
                                 const unsigned char *uri_string);

Returns


raptor_new_uri_relative_to_base_counted ()

raptor_uri *
raptor_new_uri_relative_to_base_counted
                               (raptor_world *world,
                                raptor_uri *base_uri,
                                const unsigned char *uri_string,
                                size_t uri_len);

Returns


raptor_new_uri_from_id ()

raptor_uri *
raptor_new_uri_from_id (raptor_world *world,
                        raptor_uri *base_uri,
                        const unsigned char *id);

Returns


raptor_new_uri_for_rdf_concept ()

raptor_uri *
raptor_new_uri_for_rdf_concept (raptor_world *world,
                                const unsigned char *name);

Returns


raptor_new_uri_for_xmlbase ()

raptor_uri *
raptor_new_uri_for_xmlbase (raptor_uri *old_uri);

Returns


raptor_new_uri_for_retrieval ()

raptor_uri *
raptor_new_uri_for_retrieval (raptor_uri *old_uri);

Returns


raptor_free_uri ()

void
raptor_free_uri (raptor_uri *uri);


raptor_uri_compare ()

int
raptor_uri_compare (raptor_uri *uri1,
                    raptor_uri *uri2);

Returns


raptor_uri_equals ()

int
raptor_uri_equals (raptor_uri *uri1,
                   raptor_uri *uri2);

Returns


raptor_uri_copy ()

raptor_uri *
raptor_uri_copy (raptor_uri *uri);

Returns


raptor_uri_as_string ()

unsigned char *
raptor_uri_as_string (raptor_uri *uri);

Returns


raptor_uri_as_counted_string ()

unsigned char *
raptor_uri_as_counted_string (raptor_uri *uri,
                              size_t *len_p);

Returns


raptor_uri_to_relative_counted_uri_string ()

unsigned char *
raptor_uri_to_relative_counted_uri_string
                               (raptor_uri *base_uri,
                                raptor_uri *reference_uri,
                                size_t *length_p);

Returns


raptor_uri_to_relative_uri_string ()

unsigned char *
raptor_uri_to_relative_uri_string (raptor_uri *base_uri,
                                   raptor_uri *reference_uri);

Returns


raptor_uri_to_counted_string ()

unsigned char *
raptor_uri_to_counted_string (raptor_uri *uri,
                              size_t *len_p);

Returns


raptor_uri_to_string ()

unsigned char *
raptor_uri_to_string (raptor_uri *uri);

Returns


raptor_uri_resolve_uri_reference ()

size_t
raptor_uri_resolve_uri_reference (const unsigned char *base_uri,
                                  const unsigned char *reference_uri,
                                  unsigned char *buffer,
                                  size_t length);

Returns


raptor_uri_counted_filename_to_uri_string ()

unsigned char *
raptor_uri_counted_filename_to_uri_string
                               (const char *filename,
                                size_t filename_len);

Returns


raptor_uri_filename_to_uri_string ()

unsigned char *
raptor_uri_filename_to_uri_string (const char *filename);

Returns


raptor_uri_uri_string_is_absolute ()

int
raptor_uri_uri_string_is_absolute (const unsigned char *uri_string);

Returns


raptor_uri_uri_string_is_file_uri ()

int
raptor_uri_uri_string_is_file_uri (const unsigned char *uri_string);

Returns


raptor_uri_uri_string_to_filename ()

char *
raptor_uri_uri_string_to_filename (const unsigned char *uri_string);

Returns


raptor_uri_uri_string_to_filename_fragment ()

char *
raptor_uri_uri_string_to_filename_fragment
                               (const unsigned char *uri_string,
                                unsigned char **fragment_p);

Returns


raptor_uri_uri_string_to_counted_filename_fragment ()

char *
raptor_uri_uri_string_to_counted_filename_fragment
                               (const unsigned char *uri_string,
                                size_t *len_p,
                                unsigned char **fragment_p,
                                size_t *fragment_len_p);

Returns


raptor_uri_print ()

int
raptor_uri_print (const raptor_uri *uri,
                  FILE *stream);

Returns


raptor_uri_get_world ()

raptor_world *
raptor_uri_get_world (raptor_uri *uri);

Returns


raptor_uri_write ()

int
raptor_uri_write (raptor_uri *uri,
                  raptor_iostream *iostr);

Returns


raptor_uri_file_exists ()

int
raptor_uri_file_exists (raptor_uri *uri);

Returns


raptor_uri_filename_exists ()

int
raptor_uri_filename_exists (const unsigned char *path);

Returns


raptor_uri_to_turtle_counted_string ()

unsigned char *
raptor_uri_to_turtle_counted_string (raptor_world *world,
                                     raptor_uri *uri,
                                     raptor_namespace_stack *nstack,
                                     raptor_uri *base_uri,
                                     size_t *len_p);

Returns


raptor_uri_to_turtle_string ()

unsigned char *
raptor_uri_to_turtle_string (raptor_world *world,
                             raptor_uri *uri,
                             raptor_namespace_stack *nstack,
                             raptor_uri *base_uri);

Returns


raptor_uri_turtle_write ()

int
raptor_uri_turtle_write (raptor_world *world,
                         raptor_iostream *iostr,
                         raptor_uri *uri,
                         raptor_namespace_stack *nstack,
                         raptor_uri *base_uri);

Returns

Types and Values

raptor_uri

raptor_uri* raptor_uri;

Raptor URI Class.