diff options
author | David Robillard <d@drobilla.net> | 2023-02-26 16:57:46 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 6ca012d4fb97c02a2206aebd42aef1f9cd5e1993 (patch) | |
tree | 4e69f79738c2a4e5c4533a173595a280a4e0fa14 /tools | |
parent | 2d5e6aa234faeb406911ed44f56038dc73f8ff8e (diff) | |
download | serd-6ca012d4fb97c02a2206aebd42aef1f9cd5e1993.tar.gz serd-6ca012d4fb97c02a2206aebd42aef1f9cd5e1993.tar.bz2 serd-6ca012d4fb97c02a2206aebd42aef1f9cd5e1993.zip |
[WIP] Partially resurrect CURIE nodes1.x
Diffstat (limited to 'tools')
-rw-r--r-- | tools/serd-pipe.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/serd-pipe.c b/tools/serd-pipe.c index 4fed5a1f..d837f6f3 100644 --- a/tools/serd-pipe.c +++ b/tools/serd-pipe.c @@ -190,6 +190,13 @@ main(const int argc, char* const* const argv) } } + // Enable direct CURIE transmission for lax streams where supported + if ((opts.common.input.flags & SERD_READ_LAX) && + opts.common.output.syntax != SERD_NTRIPLES && + opts.common.output.syntax != SERD_NQUADS) { + opts.common.input.flags |= SERD_READ_CURIES; + } + // Every argument past the last option is an input opts.inputs = argv + iter.a; opts.n_inputs = argc - iter.a; |