From 9b1139fe7045a0630e87501235af21803860b80c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 1 Dec 2023 21:59:18 -0500 Subject: [WIP] Add support for reading and writing variables [WIP] Command line option, move later? 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/statement.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/statement.c') diff --git a/src/statement.c b/src/statement.c index 434d41d4..9d2d4229 100644 --- a/src/statement.c +++ b/src/statement.c @@ -17,7 +17,8 @@ static bool is_resource(const SerdNode* const node) { const SerdNodeType type = node ? serd_node_type(node) : (SerdNodeType)0; - return type == SERD_URI || type == SERD_CURIE || type == SERD_BLANK; + return type == SERD_URI || type == SERD_CURIE || type == SERD_BLANK || + type == SERD_VARIABLE; } bool -- cgit v1.2.1