diff options
Diffstat (limited to 'slv2')
-rw-r--r-- | slv2/value.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/slv2/value.h b/slv2/value.h index fcb3143..86be450 100644 --- a/slv2/value.h +++ b/slv2/value.h @@ -124,6 +124,27 @@ const char* slv2_value_as_uri(SLV2Value value); +/** Return whether the value is a blank node (resource with no URI). + * + * Time = O(1) + */ +SLV2_API +bool +slv2_value_is_blank(SLV2Value value); + + +/** Return this value as a blank node identifier, e.g. "genid03". + * + * Valid to call only if slv2_value_is_blank(\a value) returns true. + * Returned value is owned by \a value and must not be freed by caller. + * + * Time = O(1) + */ +SLV2_API +const char* +slv2_value_as_blank(SLV2Value value); + + /** Return whether this value is a literal (i.e. not a URI). * * Returns true if \a value is a string or numeric value. |