diff options
author | David Robillard <d@drobilla.net> | 2021-08-12 13:42:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 8346ac7f529f5aeb8d8b0e48837e680ea14e8893 (patch) | |
tree | 0e1aa8f67135af24cbbfe5a5911b1a74e5699df6 /include | |
parent | 3ea3143632e3577ac5794faed1141e460a11a9fb (diff) | |
download | serd-8346ac7f529f5aeb8d8b0e48837e680ea14e8893.tar.gz serd-8346ac7f529f5aeb8d8b0e48837e680ea14e8893.tar.bz2 serd-8346ac7f529f5aeb8d8b0e48837e680ea14e8893.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')
-rw-r--r-- | include/serd/reader.h | 13 | ||||
-rw-r--r-- | include/serd/writer.h | 10 |
2 files changed, 0 insertions, 23 deletions
diff --git a/include/serd/reader.h b/include/serd/reader.h index 34af6d04..a2bde202 100644 --- a/include/serd/reader.h +++ b/include/serd/reader.h @@ -105,19 +105,6 @@ serd_reader_new(SerdWorld* ZIX_NONNULL world, const SerdSink* ZIX_NONNULL sink); /** - 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* ZIX_NONNULL reader, - const char* ZIX_NULLABLE prefix); - -/** Prepare to read some input. This sets up the reader to read from the given input, but will not read any diff --git a/include/serd/writer.h b/include/serd/writer.h index 812b1851..91baa7e8 100644 --- a/include/serd/writer.h +++ b/include/serd/writer.h @@ -103,16 +103,6 @@ SERD_CONST_API const SerdSink* ZIX_NONNULL serd_writer_sink(SerdWriter* ZIX_NONNULL writer); /** - 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* ZIX_NONNULL writer, - const char* ZIX_NULLABLE prefix); - -/** Set the current root URI. The root URI should be a prefix of the base URI. The path of the root URI |