From fc3e5a0a7c9c64d275fec498f0e80dc02444c12d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 Dec 2019 19:09:49 -0500 Subject: Add support for parsing variables This adds a reader flag and serdi option for extending a syntax with support for SPARQL-like variables, for storing things like patterns or simple queries. --- src/node.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/node.c') diff --git a/src/node.c b/src/node.c index 14f6490b..4c76ed9b 100644 --- a/src/node.c +++ b/src/node.c @@ -165,7 +165,8 @@ serd_node_zero_pad(SerdNode* node) SerdNode* serd_new_simple_node(SerdNodeType type, const SerdStringView str) { - if (type != SERD_BLANK && type != SERD_CURIE && type != SERD_URI) { + if (type != SERD_BLANK && type != SERD_CURIE && type != SERD_URI && + type != SERD_VARIABLE) { return NULL; } -- cgit v1.2.1