aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-18 19:09:49 -0500
committerDavid Robillard <d@drobilla.net>2022-01-13 23:05:26 -0500
commit5d43cb36087292a397992aa1b59326fc355d5247 (patch)
treef313f87fea160cd52af3bba8c3de77c25b0519bf /src/node.c
parent55e28966226268a57edb07419ac419ef53ac437d (diff)
downloadserd-5d43cb36087292a397992aa1b59326fc355d5247.tar.gz
serd-5d43cb36087292a397992aa1b59326fc355d5247.tar.bz2
serd-5d43cb36087292a397992aa1b59326fc355d5247.zip
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.
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index bd306875..70f53033 100644
--- a/src/node.c
+++ b/src/node.c
@@ -170,7 +170,8 @@ result(const SerdStatus status, const size_t count)
SerdNode*
serd_new_simple_node(const 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;
}