19 #ifndef __SLV2_VALUE_H__ 20 #define __SLV2_VALUE_H__ 27 #include "slv2/types.h" 126 slv2_value_is_qname(SLV2Value value);
137 slv2_value_as_qname(SLV2Value value);
const char * slv2_value_as_string(SLV2Value value)
Return value as a string.
bool slv2_value_equals(SLV2Value value, SLV2Value other)
Return whether two values are equivalent.
bool slv2_value_is_float(SLV2Value value)
Return whether this value is a decimal literal.
SLV2Value slv2_value_new_string(SLV2World world, const char *str)
Create a new string value (with no language).
SLV2Value slv2_value_new_uri(SLV2World world, const char *uri)
Create a new URI value.
SLV2Value slv2_value_duplicate(SLV2Value val)
Duplicate an SLV2Value.
SLV2Value slv2_value_new_int(SLV2World world, int val)
Create a new integer value.
const char * slv2_value_as_uri(SLV2Value value)
Return this value as a URI string, e.g.
bool slv2_value_is_literal(SLV2Value value)
Return whether this value is a literal (i.e.
bool slv2_value_is_int(SLV2Value value)
Return whether this value is an integer literal.
int slv2_value_as_int(SLV2Value value)
Return value as an integer.
bool slv2_value_is_string(SLV2Value value)
Return whether this value is a string literal.
void slv2_value_free(SLV2Value val)
Free an SLV2Value.
char * slv2_value_get_turtle_token(SLV2Value value)
Return this value as a Turtle/SPARQL token.
float slv2_value_as_float(SLV2Value value)
Return value as a float.
bool slv2_value_is_uri(SLV2Value value)
Return whether the value is a URI (resource).
SLV2Value slv2_value_new_float(SLV2World world, float val)
Create a new floating point value.