From 8dbb1edfd28c73b02b3295a4f7a01869bd2237ec Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Apr 2018 18:36:11 +0200 Subject: Add blank node API --- serd/serd.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'serd/serd.h') diff --git a/serd/serd.h b/serd/serd.h index 9688ad4e..be819d55 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -484,6 +484,16 @@ serd_node_new_literal(const char* str, const SerdNode* datatype, const char* lang); +/** + Create a new blank node. + + Note this function measures `str`, which is a common bottleneck. + Use sord_node_from_serd_node() instead if `str` is already measured. +*/ +SERD_API +SerdNode* +serd_node_new_blank(const char* str); + /** Simple wrapper for serd_node_new_uri() to resolve a URI node. */ -- cgit v1.2.1