aboutsummaryrefslogtreecommitdiffstats
path: root/src/statement.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-28Add assertions for all non-null pointers in the public APIDavid Robillard1-0/+8
Clang issues warnings at build time based on the SERD_NONNULL annotations, which is a much better approach in general. However, it does not cover cases where the API is being used with another compiler, or without a compiler that can statically check things at all (such as Python or other dynamic language bindings). In those situations, getting a clear assertion message is a lot less confusing than a random crash somewhere in serd, and it makes it clear that the bug is in the caller, so I think it's worth the tedious verbosity.
2022-01-14Add modelDavid Robillard1-1/+7
2022-01-14Add serd_statement_matches()David Robillard1-0/+14
2022-01-14Remove SERD_CURIE node datatype entirelyDavid Robillard1-2/+1
2022-01-13Add support for parsing variablesDavid Robillard1-1/+2
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.
2022-01-13Add SerdStatementDavid Robillard1-0/+134