Top | ![]() |
![]() |
![]() |
![]() |
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.
raptor_uri * raptor_new_uri (raptor_world *world
,const unsigned char *uri_string
);
raptor_uri * raptor_new_uri_from_counted_string (raptor_world *world
,const unsigned char *uri_string
,size_t length
);
raptor_uri * raptor_new_uri_from_uri_local_name (raptor_world *world
,raptor_uri *uri
,const unsigned char *local_name
);
raptor_uri * raptor_new_uri_from_uri_or_file_string (raptor_world *world
,raptor_uri *base_uri
,const unsigned char *uri_or_file_string
);
raptor_uri * raptor_new_uri_relative_to_base (raptor_world *world
,raptor_uri *base_uri
,const unsigned char *uri_string
);
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
);
raptor_uri * raptor_new_uri_from_id (raptor_world *world
,raptor_uri *base_uri
,const unsigned char *id
);
raptor_uri * raptor_new_uri_for_rdf_concept (raptor_world *world
,const unsigned char *name
);
unsigned char * raptor_uri_as_counted_string (raptor_uri *uri
,size_t *len_p
);
unsigned char * raptor_uri_to_relative_counted_uri_string (raptor_uri *base_uri
,raptor_uri *reference_uri
,size_t *length_p
);
unsigned char * raptor_uri_to_relative_uri_string (raptor_uri *base_uri
,raptor_uri *reference_uri
);
unsigned char * raptor_uri_to_counted_string (raptor_uri *uri
,size_t *len_p
);
size_t raptor_uri_resolve_uri_reference (const unsigned char *base_uri
,const unsigned char *reference_uri
,unsigned char *buffer
,size_t length
);
unsigned char * raptor_uri_counted_filename_to_uri_string (const char *filename
,size_t filename_len
);
unsigned char *
raptor_uri_filename_to_uri_string (const char *filename
);
int
raptor_uri_uri_string_is_absolute (const unsigned char *uri_string
);
int
raptor_uri_uri_string_is_file_uri (const unsigned char *uri_string
);
char *
raptor_uri_uri_string_to_filename (const unsigned char *uri_string
);
char * raptor_uri_uri_string_to_filename_fragment (const unsigned char *uri_string
,unsigned char **fragment_p
);
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
);
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
);
unsigned char * raptor_uri_to_turtle_string (raptor_world *world
,raptor_uri *uri
,raptor_namespace_stack *nstack
,raptor_uri *base_uri
);
int raptor_uri_turtle_write (raptor_world *world
,raptor_iostream *iostr
,raptor_uri *uri
,raptor_namespace_stack *nstack
,raptor_uri *base_uri
);