|
LMMS
|
Convert a file URI string to a local path string.
For example, "file://foo/bar%20one/baz.ttl" returns "/foo/bar one/baz.ttl". Return value must be freed by caller with lilv_free().
| uri | The file URI to parse. |
| hostname | If non-NULL, set to the hostname in the URI, if any. |
Create a new boolean value.
Returned value must be freed by caller with lilv_node_free().
Create a new file URI value.
Relative paths are resolved against the current working directory. Note that this may yield unexpected results if host is another machine.
| world | The world. |
| host | Host name, or NULL. |
| path | Path on host. |
Create a new floating point value.
Returned value must be freed by caller with lilv_node_free().
Create a new integer value.
Returned value must be freed by caller with lilv_node_free().
Create a new string value (with no language).
Returned value must be freed by caller with lilv_node_free().
Create a new URI value.
Returned value must be freed by caller with lilv_node_free().
Return this value as a blank node identifier, like "genid03".
Valid to call only if lilv_node_is_blank(value) returns true. Returned value is owned by value and must not be freed by caller.
Return value as a bool.
Valid to call only if lilv_node_is_bool(value) returns true.
Return value as a float.
Valid to call only if lilv_node_is_float(value) or lilv_node_is_int(value) returns true.
Return value as an integer.
Valid to call only if lilv_node_is_int(value) returns true.
Return this value as a URI string, like "http://example.org/foo".
Valid to call only if lilv_node_is_uri(value) returns true. Returned value is owned by value and must not be freed by caller.
Return whether two values are equivalent.
Free a LilvNode.
It is safe to call this function on NULL.
Return the path of a file URI node.
Returns NULL if value is not a file URI. Returned value must be freed by caller with lilv_free().
Return this value as a Turtle/SPARQL token.
Returned value must be freed by caller with lilv_free().
Example tokens:
Return whether the value is a blank node (resource with no URI).
Return whether this value is a decimal literal.
Return whether this value is an integer literal.
Return whether this value is a literal (that is, not a URI).
Returns true if value is a string or numeric value.
Return whether this value is a string literal.
Returns true if value is a string value (and not numeric).
Return whether the value is a URI (resource).
| LILV_API LILV_DEPRECATED const char * lilv_uri_to_path | ( | const char * | uri | ) |
Convert a file URI string to a local path string.
For example, "file://foo/bar/baz.ttl" returns "/foo/bar/baz.ttl". Return value is shared and must not be deleted by caller. This function does not handle escaping correctly and should not be used for general file URIs. Use lilv_file_uri_parse() instead.