aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-12 13:23:59 -0400
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:07 -0500
commitda7940afb82d8d1dd5321b311f27340f5702aea2 (patch)
tree43f4caf75a0e49a59db03d129ec837ea4972cf25 /src
parent4339b6f9cb0da8a9d6519077f4a0ecc385cc382c (diff)
downloadserd-da7940afb82d8d1dd5321b311f27340f5702aea2.tar.gz
serd-da7940afb82d8d1dd5321b311f27340f5702aea2.tar.bz2
serd-da7940afb82d8d1dd5321b311f27340f5702aea2.zip
Split SERD_READ_VERBATIM into two more precise flags
Although the "verbatim" idea is nice and simple, more fine-grained control is necessary since these features (relative URI preservation and blank node label clash avoidance) are useful in different situations.
Diffstat (limited to 'src')
-rw-r--r--src/n3.c2
-rw-r--r--src/node_syntax.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index 6d4210b4..ff142976 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -374,7 +374,7 @@ read_IRIREF(SerdReader* const reader, SerdNode** const dest)
return st;
}
- return (reader->flags & SERD_READ_VERBATIM)
+ return (reader->flags & SERD_READ_RELATIVE)
? SERD_SUCCESS
: resolve_IRIREF(reader, *dest, string_start_offset);
}
diff --git a/src/node_syntax.c b/src/node_syntax.c
index edf5cbf5..1dadc7b8 100644
--- a/src/node_syntax.c
+++ b/src/node_syntax.c
@@ -58,7 +58,7 @@ serd_node_from_syntax_in(const char* const str,
SerdReader* const reader =
serd_reader_new(world,
syntax,
- SERD_READ_VERBATIM | SERD_READ_GENERATED,
+ SERD_READ_RELATIVE | SERD_READ_GLOBAL | SERD_READ_GENERATED,
env,
sink,
1024 + doc_len);