aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/reader.h
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Make blank node prefixing automaticDavid Robillard1-13/+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-02Split SERD_READ_VERBATIM into two more precise flagsDavid Robillard1-10/+19
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.
2023-12-02Add a reader flag to disable generated blank label avoidanceDavid Robillard1-0/+15
2023-12-02[WIP] Simplify reader and writer flagsDavid Robillard1-4/+37
[WIP] Testing?
2023-12-02[WIP] Expand URIs in readerDavid Robillard1-0/+2
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 readerDavid Robillard1-0/+2
Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader.
2023-12-02[WIP] Add support for reading and writing variablesDavid Robillard1-1/+2
[WIP] Command line option, move later? This adds a reader flag and serdi option for extending a syntax with support for SPARQL-like variables, for storing things like patterns or simple queries.
2023-12-02Simplify input stream APIDavid Robillard1-23/+14
2023-12-02Use Zix attributes directlyDavid Robillard1-24/+25
2023-12-02Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-10/+9
2023-12-02Add a set of limits to the worldDavid Robillard1-2/+1
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-02Add SerdCaretDavid Robillard1-3/+5
2023-12-02Remove serd_reader_set_default_graph()David Robillard1-12/+0
2023-12-02Add SerdWorld for shared library stateDavid Robillard1-13/+3
2023-12-02Use a fixed-size reader stackDavid Robillard1-1/+3
2023-12-02Simplify reader interfaceDavid Robillard1-45/+35
2023-12-02Add SerdSink interface and hide implementationsDavid Robillard1-11/+1
2023-12-02Bring read/write interface closer to the C standardDavid Robillard1-2/+2
2023-12-02Make nodes opaqueDavid Robillard1-2/+1
2023-12-02Split up public API headerDavid Robillard1-0/+180