Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-12-02 | Use SerdNodes to simplify some tests | David Robillard | 1 | -33/+27 | |
2023-12-02 | Make blank node prefixing automatic | David Robillard | 1 | -14/+0 | |
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. | |||||
2023-12-02 | [WIP] Generalize node construction API | David Robillard | 1 | -11/+12 | |
2023-12-02 | Add support for custom allocators | David Robillard | 1 | -32/+34 | |
This makes it explicit in the API where memory is allocated, and allows the user to provide a custom allocator to avoid the use of the default system allocator for whatever reason. | |||||
2023-12-02 | [WIP] Expand URIs in reader | David Robillard | 1 | -1/+1 | |
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. | |||||
2023-12-02 | [WIP] Move SerdEnv mutation from writer to reader | David Robillard | 1 | -3/+8 | |
Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader. | |||||
2023-12-02 | [WIP] Preserve long or short quoting from input documents | David Robillard | 1 | -2/+5 | |
2023-12-02 | Simplify output stream API | David Robillard | 1 | -15/+19 | |
2023-12-02 | Simplify input stream API | David Robillard | 1 | -9/+11 | |
2023-12-02 | Make SerdBuffer an output stream | David Robillard | 1 | -2/+3 | |
2023-12-02 | Use portable zix filesystem API in tests | David Robillard | 1 | -24/+14 | |
2023-12-02 | Replace serd_reader_set_strict() with SerdReaderFlags | David Robillard | 1 | -5/+5 | |
2023-12-02 | Split out simple reader unit tests | David Robillard | 1 | -317/+3 | |
2023-12-02 | Reduce complexity of statement writing functions | David Robillard | 1 | -1/+1 | |
2023-12-02 | Add a set of limits to the world | David Robillard | 1 | -8/+14 | |
The idea here is to remove the burden of passing things around like stack sizes (where most users don't care and will be happy with a reasonably large default) and keeping the call sites to things like serd_reader_new() clean. The cost is a bit more state, so it's both more powerful and more potentially flaky, since changing the limits has action at a distance that isn't clear from the call site. I think it's worth it for the cleaner API in the common case, and the much better forward compatibility. | |||||
2023-12-02 | Replace SERD_WRITE_STRICT flag with SERD_WRITE_LAX | David Robillard | 1 | -6/+5 | |
The unset value for flags should represent the best default, which in this case is strict parsing. Lax parsing is the riskier opt-in option. | |||||
2023-12-02 | Replace multiple stream callbacks with SerdEvent | David Robillard | 1 | -129/+87 | |
This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future. | |||||
2023-12-02 | Simplify writer style options and write UTF-8 by default | David Robillard | 1 | -2/+1 | |
2023-12-02 | Add SerdStatement | David Robillard | 1 | -10/+4 | |
2023-12-02 | Add SerdCaret | David Robillard | 1 | -2/+3 | |
2023-12-02 | Remove serd_reader_set_default_graph() | David Robillard | 1 | -14/+7 | |
2023-12-02 | Add SerdWorld for shared library state | David Robillard | 1 | -27/+31 | |
2023-12-02 | Clean up nodes in reader/writer tests | David Robillard | 1 | -12/+20 | |
2023-12-02 | Use a fixed-size reader stack | David Robillard | 1 | -8/+12 | |
2023-12-02 | Simplify reader interface | David Robillard | 1 | -32/+38 | |
2023-12-02 | Add SerdSink interface and hide implementations | David Robillard | 1 | -56/+53 | |
2023-12-02 | Bring read/write interface closer to the C standard | David Robillard | 1 | -7/+14 | |
2023-12-02 | Simplify literal construction API | David Robillard | 1 | -3/+2 | |
2023-12-02 | Simplify node construction API | David Robillard | 1 | -23/+32 | |
2023-12-02 | Merge datatype/language into node | David Robillard | 1 | -43/+15 | |
This moves closer to the sord API, and is more convenient in most cases. | |||||
2023-12-02 | Make nodes opaque | David Robillard | 1 | -59/+48 | |
2023-12-02 | Use more human-readable status codes | David Robillard | 1 | -1/+1 | |
2023-12-02 | Split up public API header | David Robillard | 1 | -1/+12 | |
2023-12-02 | Remove "get" from accessor names | David Robillard | 1 | -5/+5 | |
2023-12-02 | Rename function types for consistency | David Robillard | 1 | -4/+4 | |
2023-12-02 | Rename SerdStyle to SerdWriterFlags | David Robillard | 1 | -7/+8 | |
2023-12-02 | Add SerdBuffer type for mutable buffers | David Robillard | 1 | -11/+11 | |
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks. | |||||
2023-12-02 | Use char* for strings in public API | David Robillard | 1 | -31/+29 | |
The constant casting just makes user code a mess, for no benefit. | |||||
2023-05-03 | Make serd_reader_read_chunk() work with NQuads | David Robillard | 1 | -7/+101 | |
2023-04-16 | Gracefully handle errors when writing text | David Robillard | 1 | -0/+97 | |
2023-04-02 | Improve TriG pretty-printing and remove trailing newlines | David Robillard | 1 | -2/+2 | |
2022-11-25 | Avoid use of tmpfile() | David Robillard | 1 | -28/+35 | |
Somewhat temporary solution, since we'll soon be able to use zix here which has nice portable functions to create temporary files. | |||||
2022-11-25 | Avoid creating test files in the current directory | David Robillard | 1 | -1/+21 | |
2022-11-25 | Merge similar tests | David Robillard | 1 | -33/+119 | |
2022-11-24 | Check serd_writer_write_statement() return value | David Robillard | 1 | -2/+2 | |
2022-10-23 | Fix crash when trying to read chunks without starting | David Robillard | 1 | -0/+2 | |
2022-08-31 | Adopt REUSE machine-readable licensing standard | David Robillard | 1 | -15/+2 | |
2021-07-10 | Fix out of bounds read in test | David Robillard | 1 | -0/+4 | |
2021-07-10 | Clean up socket-like stream reading test | David Robillard | 1 | -5/+17 | |
2021-04-09 | Write statements with invalid URI characters in lax mode | David Robillard | 1 | -0/+1 | |