aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-12 13:42:25 -0400
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:07 -0500
commitd4aec28ba8ad24d5aef3ee12beeb1b805148eab1 (patch)
treee41d1aef4e492b0f06044ad611dc6c23defef34b /include/serd
parentda7940afb82d8d1dd5321b311f27340f5702aea2 (diff)
downloadserd-d4aec28ba8ad24d5aef3ee12beeb1b805148eab1.tar.gz
serd-d4aec28ba8ad24d5aef3ee12beeb1b805148eab1.tar.bz2
serd-d4aec28ba8ad24d5aef3ee12beeb1b805148eab1.zip
Make blank node prefixing automatic
Though potentially useful, I don't think the complexity cost of the old interface (both to the implementation and to the user) is worth it. A special tool to transform blank node labels (for example with regular expressions) would be a better approach to this if it's ever needed in the future.
Diffstat (limited to 'include/serd')
-rw-r--r--include/serd/serd.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index c30c656b..1f46e092 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -2338,20 +2338,6 @@ serd_reader_new(SerdWorld* SERD_NONNULL world,
const SerdSink* SERD_NONNULL sink,
size_t stack_size);
-/**
- Set a prefix to be added to all blank node identifiers.
-
- This is useful when multiple files are to be parsed into the same output (a
- model or a file). Since Serd preserves blank node IDs, this could cause
- conflicts where two non-equivalent blank nodes are merged, resulting in
- corrupt data. By setting a unique blank node prefix for each parsed file,
- this can be avoided, while preserving blank node names.
-*/
-SERD_API
-void
-serd_reader_add_blank_prefix(SerdReader* SERD_NONNULL reader,
- const char* SERD_NULLABLE prefix);
-
/// Prepare to read from a byte source
SERD_API
SerdStatus
@@ -2588,17 +2574,6 @@ char* SERD_NONNULL
serd_buffer_sink_finish(SerdBuffer* SERD_NONNULL stream);
/**
- Set a prefix to be removed from matching blank node identifiers.
-
- This is the counterpart to serd_reader_add_blank_prefix() which can be used
- to "undo" added prefixes.
-*/
-SERD_API
-void
-serd_writer_chop_blank_prefix(SerdWriter* SERD_NONNULL writer,
- const char* SERD_NULLABLE prefix);
-
-/**
Set the current output base URI, and emit a directive if applicable.
Note this function can be safely casted to SerdBaseSink.