diff options
author | David Robillard <d@drobilla.net> | 2019-12-18 19:09:49 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:59 +0100 |
commit | 7f508b89230b339684a4013dbbad741d9e16e40a (patch) | |
tree | 1c366ec60c6fcac68f96e01df06e4dc3c142f1ab /src/node.c | |
parent | b6b777a0c0145449bce9855bc3851ad1b5edf409 (diff) | |
download | serd-7f508b89230b339684a4013dbbad741d9e16e40a.tar.gz serd-7f508b89230b339684a4013dbbad741d9e16e40a.tar.bz2 serd-7f508b89230b339684a4013dbbad741d9e16e40a.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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |