From 7f508b89230b339684a4013dbbad741d9e16e40a 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 b33a03e9..66964556 100644 --- a/src/node.c +++ b/src/node.c @@ -156,7 +156,8 @@ serd_new_simple_node(SerdNodeType type, const char* str, const size_t len) { if (!str) { return NULL; - } else if (type != SERD_BLANK && type != SERD_CURIE && type != SERD_URI) { + } else if (type != SERD_BLANK && type != SERD_CURIE && type != SERD_URI && + type != SERD_VARIABLE) { return NULL; } -- cgit v1.2.1