From 8c67f9eba47d30913749e607c440b170a5cbd804 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Apr 2021 17:52:44 -0400 Subject: [WIP] Expand URIs in reader This expands relative and prefixed URIs in the reader on the stack, rather than passing them to the caller to be dealt with. This pushes these context-full forms to the edge of the system as much as possible to minimise the headaches they can cause. Towards having stricter guarantees about nodes and eliminating the CURIE node type altogether. --- include/serd/reader.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/serd/reader.h') diff --git a/include/serd/reader.h b/include/serd/reader.h index 658193fb..b6b9cac3 100644 --- a/include/serd/reader.h +++ b/include/serd/reader.h @@ -32,6 +32,8 @@ typedef struct SerdReaderImpl SerdReader; typedef enum { SERD_READ_LAX = 1U << 0U, ///< Tolerate invalid input where possible SERD_READ_VARIABLES = 1U << 1U, ///< Support variable nodes + SERD_READ_PREFIXED = 1U << 2U, ///< Do not expand prefixed names + SERD_READ_RELATIVE = 1U << 3U, ///< Do not expand relative URI references } SerdReaderFlag; /// Bitwise OR of SerdReaderFlag values -- cgit v1.2.1